SAS_Institute
A00-240 · Question #48
A00-240 Question #48: Real Exam Question with Answer & Explanation
Sign in or unlock A00-240 to reveal the answer and full explanation for question #48. The question stem and answer options stay visible for context.
Question
This question will ask you to provide a segment of missing code.
The following code is used to create missing value indicator variables for input variables, fred1 to fred7.
data work.train_mi;
set work.train;
array mi{*} MI_fred1-MI_fred7;
array x{*} fred1-fred7;
<insert code here>
run;
Which segment of code would complete the task?Options
- Ado i=1 to dim(mi); mi{i}=(x{i}=' '); end;
- Bdo i=1 to dim(mi); mi{i}=(x{i}=.); end;
- Cdo i=1 to 7; if missing(array(x{))) then array(mi{})=1; end;
- Ddo i=1 to 7; array(mi)=missing(array(x)); end;
Unlock A00-240 to see the answer
You've previewed enough free A00-240 questions. Unlock A00-240 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.