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 32 discussion

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

Given the raw data file EMPLOYEE:
----I----1 0---I----20---I----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 = Ruth then input idnum 10-11;
else input age 7-8;
run;
What value does the variable IDNUM contain when the name of the employee is "Ruth"?

  • A. 11
  • B. 22
  • C. 33
  • D. (missing numeric 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
CHENTEPE
8 months, 3 weeks ago
D IS THE ANSWER
upvoted 1 times
...
mhminkov
2 years, 10 months ago
this question is a mess, .. with corrected code (s. below, especialli adding a @) I get a result of 1. data EMPLOYEE; infile datalines; input employee_name $ 1-4 @; if employee_name = "Ruth" then input idnum 10-11; else input age 7-8; datalines; Ruth 39 11 Jose 32 22 Sue 30 33 John 40 44 ;
upvoted 1 times
...
Kleinstone
3 years, 3 months ago
is the answer D?
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 ...