SAS_Institute
A00-201 · Question #18
A00-201 Question #18: Real Exam Question with Answer & Explanation
Sign in or unlock A00-201 to reveal the answer and full explanation for question #18. The question stem and answer options stay visible for context.
Question
A raw data record is listed below:
----|----10----|----20----|----30
Printing 750
The following SAS program is submitted:
data bonus;
infile 'file-specification';
input dept $ 1 - 11 number 13 - 15;
<insert code here>
run;
Which one of the following SAS statements completes the program and results in a value of
'Printing750' for the DEPARTMENT variable?
Options
- Adepartment = trim(dept) || number;
- Bdepartment = dept || input(number,3.);
- Cdepartment = trim(dept) || put(number,3.);
- Ddepartment = input(dept,11.) || input(number,3.);
Unlock A00-201 to see the answer
You've previewed enough free A00-201 questions. Unlock A00-201 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.