SAS Institute A00-212 Exam Practice Questions (P. 1)
- Full Access (184 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #1
The following SAS program is submitted:
Data sasuser.history;
Set sasuser.history(keep=state x y
Rename = (state=ST));
Total=sum(x, y);
Run;
The SAS data set SASUSER.HISTORY has an index on the variable STATE.
Which describes the result of submitting the SAS program?
Data sasuser.history;
Set sasuser.history(keep=state x y
Rename = (state=ST));
Total=sum(x, y);
Run;
The SAS data set SASUSER.HISTORY has an index on the variable STATE.
Which describes the result of submitting the SAS program?
- AThe index on STATE is deleted and an index on ST is created
- BThe index on STATE is recreated as an index on ST
- CThe index on STATE is deleted
- DThe index on STATE is updated as an index on ST
Correct Answer:
C
C
send
light_mode
delete
Question #2
The following SAS program is submitted:
%macro one (input);
%two;
%put the value is &date;
%mend;
%macro two;
data _null_;
call symput('date','12SEP2008');
run;
%mend;
%let date=31DEC2006;
%one(&date)
What is the result when the %PUT statement executes?
%macro one (input);
%two;
%put the value is &date;
%mend;
%macro two;
data _null_;
call symput('date','12SEP2008');
run;
%mend;
%let date=31DEC2006;
%one(&date)
What is the result when the %PUT statement executes?
- AA macro variable DATE with the value 12SEP2008 is retrieved from the local symbol table for the ONE macro
- BA macro variable DATE with the value 12SEP2008 is retrieved from the local symbol table for the TWO macro
- CA macro variable DATE with the value 12SEP2008 is retrieved from the global symbol table
- DA macro variable DATE with the value 31DEC2006 is retrieved from the global symbol table
Correct Answer:
C
C
send
light_mode
delete
Question #3
Which SET statements option names a variable that contains the number of the observation to read during the current iteration of the DATA step?
send
light_mode
delete
Question #4
When reading a SAS data file, what does the NOBS=option on the SET statement represent?
- AA variable that represents the total number of observation in the output data set(s)
- BA variable that represents a flag indicating the end of the file
- CA variable that represents the total number of observations in the input data set(s)
- DA variable that represents the current observation number
Correct Answer:
C
C
send
light_mode
delete
Question #5
CORRECT TEXT -
The following SAS program is submitted:
%macro check(num=4);
%let result=%sysevalf(&num+0.5);
%put result is &result;
%mend;
%check(num=10)
What is the written to the SAS log?
The following SAS program is submitted:
%macro check(num=4);
%let result=%sysevalf(&num+0.5);
%put result is &result;
%mend;
%check(num=10)
What is the written to the SAS log?
send
light_mode
delete
All Pages