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 1 question 30 discussion

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

The following SAS program is submitted:
data test;
set chemists;
jobcode = Chem2
then description = Senior Chemist;
else description = Unknown;
run;
The value for the variable JOBCODE is:

JOBCODE -
-------------
chem2
What is the value of the variable DESCRIPTION?

  • A. chem2
  • B. Unknown
  • C. Senior Chemist
  • D. ‘ ‘ (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
Lisa_L
11 months, 3 weeks ago
Selected Answer: B
Unknown is the answer. JOBCODE is chem2 (lowercase). In the IF statement: if jobcode = 'Chem2' then description = 'Senior Chemist';, C is in capital case. Since the condition does not meet, the ELSE statement would be executed.
upvoted 1 times
...
Misty2287
1 year, 3 months ago
why are so many code have typos and incorrect syntax. So frustrating and confusing to go through practices this way.
upvoted 1 times
...
mhminkov
3 years, 5 months ago
there is also a missing if statement, here the corrected code: data test; infile datalines; if jobcode = "Chem2" then description = "Senior Chemist"; else description = "Unknown"; input JOBCODE $; datalines; chem2 ;
upvoted 3 times
...
Kleinstone
3 years, 10 months ago
with quotation mark?
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 ...