Multiple choice technology programming languages

p = 5461;x='1001';a=x ||'/'||pWhat is the value of a?

  1. 1001/ 5461

  2. Error because of concatenating character and numeric variable

  3. 1001/ 5461

  4. 1001/5461

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

In SAS, when using the concatenation operator || with a numeric variable like p, SAS automatically converts p to a character string using the BEST12. format, which is right-aligned with leading spaces. Thus, p becomes 8 spaces followed by 5461, yielding 1001/ 5461.