Multiple choice technology programming languages

data quote; infile datalines dlm=','; input x y$; datalines; 10,"100" ; run; What will be the output?

  1. x y {10 }

  2. Syntax Error due to the double quotes

  3. x y { 10 "100" }

  4. x y { 10 100 }

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

The code reads x as numeric (10) and y as character ($ indicates character type). The double quotes around 100 are preserved as part of the character value for y. The output shows x=10 and y="100" with the quotes included, which is option C. SAS preserves quotation marks in character fields during datalines input.