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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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
3 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
7 months, 4 weeks 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
2 years, 9 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, 2 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 ...