Updated:EXAM 52QUESTIONS WITH
ACCURATE ANSWERS
| GET IT RIGHT!!
Which of the following is not a comment in SAS?
a. /* I am not a comment */
b. * I am not a comment ;
c. /* * I am not a comment ; */
d. All of the above are valid comments - CORRECT ANSWERS d. All of the above are valid
comments
In SAS data sets, missing numeric data are represented by which of the following?
Select one:
a. A single space
b. A single period
c. Any number of spaces
d. Any of the above - CORRECT ANSWERS b. A single period
Which of the following assignment statements is valid for the numeric variable Score?
Select one:
a. Score / 100;
b. Score = Score / 100;
c. Score = 'Score' / 100;
,d. Score = 'Score / 100'; - CORRECT ANSWERS b. Score = Score / 100;
Which of the following IF-THEN statements will not assign a value of 1 to the variable named Flag for
patients with an eye color of blue or brown?
Select one:
a. IF EyeColor = 'blue' OR 'brown' THEN Flag = 1;
b. IF EyeColor = 'blue' OR EyeColor = 'brown' THEN Flag = 1;
c. IF EyeColor IN ('blue', 'brown') THEN Flag = 1;
d. All of the above will work - CORRECT ANSWERS a. IF EyeColor = 'blue' OR 'brown' THEN Flag
=1
Which set of IF-THEN/ELSE statements will run without errors?
Select one:
a. IF 0 <= Age <= 50 THEN Group = 'A';
ELSE 50 < Age <= 70 THEN Group = 'B';
ELSE Age > 70 THEN Group = 'C';
b. IF 0 <= Age <= 50 THEN Group = 'A';
ELSE IF 50 < Age <= 70 THEN Group = 'B';
ELSE Age > 70 THEN Group = 'C';
c. IF 0 <= Age <= 50 THEN Group = 'A';
ELSE IF 50 < Age <= 70 THEN Group = 'B';
ELSE IF Age > 70 THEN Group = 'C';
d. All of the above will work - CORRECT ANSWERS c. IF 0 <= Age <= 50 THEN Group = 'A';
ELSE IF 50 < Age <= 70 THEN Group = 'B';
, ELSE IF Age > 70 THEN Group = 'C';
The following code will create the variables: car1, car2, car3.
array car (3);
Select one:
True
False - CORRECT ANSWERS True
Which symbol is needed to create a character array instead of a numeric array?
Select one:
a. @
b. $
c. & - CORRECT ANSWERS b. $
What is the value of x in the resulting data set? Enter a single digit.
data temp;
x = 1;
do i = 1 to 5;