Chapter Quiz
Select the best answer
for each question. Check your answers using the answer key in the
appendix.
-
Which statement is false regarding an ARRAY statement?
-
It is an executable statement.
-
It can be used to create variables.
-
It must contain either all numeric or all character elements.
-
It must be used to define an array before the array name can be referenced.
-
-
What belongs within the braces of this ARRAY statement?
array contrib{?} qtr1-qtr4;
-
quarter
-
quarter*
-
1-4
-
4
-
-
For the program below, select an iterative DO statement to process all elements in the contrib array.
data work.contrib; array contrib{4} qtr1-qtr4; ... contrib{i}=contrib{i}*1.25; end; run;
-
do i=4;
-
do ...
-
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.