A) What value will be stored in macro variable total?
%let total = 111+222;
- 111
- 333
- 222
- 111+222
B) How would you store value 333 in macro variable total?
- %let total = %eval(111+222);
- %let total = (111+222);
- %let total = “111+222";
- %let = add(111, 222);
C) What delimiter is used to recognize end of macro
reference?
- Ampersand &
- Period .
- Percent %
D) What is the data structure called where macro variables along with their values are stored?
- Input stack
- Symbol table
- Macro Processor
- Word scanner
- Compiler
E) Following options can be used with which % statement to
display names of macro variables: _ALL_ _AUTOMATIC_ _GLOBAL_ _LOCAL_ _USER_
- %mend
- %let
- %put
- %macro
F) What is the appropriate way to invoke macro named
checkdates?
- %let checkdates
- %checkdates
- %macro checkdates
G) How would you insert comments in macro?
- /* Insert Comment Here */
- %* Insert Comment Here ;
- None of the above
- Both first and second option
H) Some advantages of using parameters in macro definition is
- It results in fewer %LET statements
- Ensures that variables never interfere with parts of your program outside macro
- Both of the above
I) What is printed in SAS Log?
%macro names(first= ,last= );%put Your first name is &first;
%mend
%names(first=Jim,last=Goodnight);
- Jim
- Jim Goodnight
- Your first name is Jim
- Nothing
J) Which system option would you use to display resolution
of macro variables?
- Options gen ;
- Options symbolgen;
- Options symbol;
No comments:
Post a Comment