A00-211 Exam QuestionsBrowse all questions from this exam

A00-211 Exam - Question 36


The contents of the raw data file SIZE are listed below:

--------10-------20-------30

72 95

The following SAS program is submitted:

data test;

infile 'size';

input @1 height 2. @4 weight 2;

run;

Which one of the following is the value of the variable WEIGHT in the output data set?

Show Answer
Correct Answer: AC

The SAS program reads the raw data file 'SIZE' where the line of data is '72 95'. The `input` statement specifies that `height` should be read from columns 1-2 and `weight` from columns 4-5. The value in columns 4-5 is '95', making the value of the variable WEIGHT in the output data set 95.

Discussion

2 comments
Sign in to comment
Kleinstone
Jan 10, 2021

this question is very strange.

mhminkovOption: A
Jun 4, 2021

one has to be extremely careful with punctuation when reading the questions. There is a missing . before the semicolon in the input statement, which is making answer A indeed correct. If the format of the second variable would have been written correctly (2.), then the answer would be 95.