STAT 330 Midterm Exam
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
In SAS data sets, missing numeric data are represented by which of the following?
a. A single space
b. A single period
c. Any number of spaces
d. Any of the above
Which of the following assignment statements is valid for the numeric variable Score?
a. Score / 100;
b. Score = Score / 100;
c. Score = 'Score' / 100;
d. 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?
a. IF EyeColor = 'blue' OR 'brown' THEN Flag = 1;
b. IF EyeColor = 'blue' OR EyeColor = 'brown' THEN Flag = 1; Incorrect
c. IF EyeColor IN ('blue', 'brown') THEN Flag = 1;
d. All of the above will work
Which set of IF-THEN/ELSE statements will run without errors?
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';
Category | Study Material |
Comments | 0 |
Rating | |
Sales | 0 |