Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam A00-211 All Questions

View all questions & answers for the A00-211 exam

Exam A00-211 topic 2 question 30 discussion

Actual exam question from SAS Institute's A00-211
Question #: 30
Topic #: 2
[All A00-211 Questions]

A SAS PRINT procedure output of the WORK.LEVELS data set is listed below:

Obs name level -
1 Frank 1
2 Joan 2
3 Sui 2
4 Jose 3
5 Burt 4
6 Kelly .
7 Juan 1
The following SAS program is submitted:
data work.expertise;
set work.levels;
if level = . then
expertise = 'Unknown';
else if level = 1 then
expertise = 'Low';
else if level = 2 or 3 then
expertise = 'Medium';
else
expertise = 'High';
run;
Which of the following values does the variable EXPERTISE contain?

  • A. Low, Medium, and High only
  • B. Low, Medium, and Unknown only
  • C. Low, Medium, High, and Unknown only
  • D. Low, Medium, High, Unknown, and ' ' (missing character value)
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mhminkov
3 years, 5 months ago
the given answer is correct, but it is tricky to guess the effect of wrong syntax ("else if level = 2 or 3 then ..." should be: "else if level = 2 or level = 3 then ...") on the program behavior.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...