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 2 question 31 discussion

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

The contents of the raw data file EMPLOYEE are listed below:
--------10-------20-------30

Ruth 39 11 -

Jose 32 22 -

Sue 30 33 -

John 40 44 -
The following SAS program is submitted:
data test;
infile 'employee';
input employee_name $ 1-4;
if employee_name = 'Sue' then input age 7-8;
else input idnum 10-11;
run;
Which one of the following values does the variable AGE contain when the name of the employee is "Sue"?

  • A. 30
  • B. 33
  • C. 40
  • D. . (missing numeric value)
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mhminkov
2 years, 10 months ago
this question and answers make no sense to me, .. the input statement is wrong, one can not predict the program behavior. When I run the code result is 0, which is not in the listed answers. I think given answer is wrong.
upvoted 1 times
...
Kleinstone
3 years, 3 months ago
why is 40? should be D missing?
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 ...