Multiple choice technology programming languages

first = 'London,england'; city=substr(first,1,6); new_city=city||","||'England'; What is the value of new_city?

  1. Syntax Error

  2. london ,England

  3. london,england

  4. london, England

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

SAS character variables have fixed lengths. When substr extracts 'London' from first, it preserves trailing spaces to fill the variable's defined length, resulting in 'London ' followed by concatenated ',England'.