Multiple choice technology programming languages

length(string) - returns number of characters in a string

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The length() function in SAS returns the number of characters in a string, counting all characters including spaces and special characters. This is a fundamental string function.

AI explanation

A length() function (as found in many programming and scripting languages) is designed specifically to count and return the number of characters contained in a string. That is exactly its defined purpose, so the statement is true.