aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Enterprise IT Technologies: IBM CM, Unix/Linux, and DataStage
  • What would be the result of the below expression? Len(Arg...
Multiple choice technology

What would be the result of the below expression? Len(Arg1) where Arg1 is NULL

  1. NULL

  2. Empty

  3. Zero

  4. Causes Run Time Error

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

The LEN() function in SAS returns 0 when applied to a NULL or missing value, not NULL itself. This is consistent with SAS treatment of missing values in length functions - missing values have zero length.

Keep practicing — related questions

  • what would be the result of the below expression? If Num(Arg1) Then 'Y' Else 'N' where Arg1 = '' [Empty]
  • Given: 11. public static void main(String[] args) { 12. String str = “null’; 13. if (str == null) { 14. Sys...
  • Given: 11. public static void main(String[] args) { 12. String str = “null’; 13. if (str == null) { 14. Sys...
  • public static void main(String[] args) { String str = "null"; if (str == null) { System.out.println("null")...
  • public static void main(String[] args) { String str = "null"; if (str == null) { System.out.println("null")...
  • public static void main(String[] args) { String str = "null"; if (str == null) { System.out.println("null")...
  • How can we represent the Null string?
  • Which function can return a non-NULL value if passed a NULL argument?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Output Evaluation (1721 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy