You are on page 1of 5

SAS Written test questions 2

1. WORK.TIME is referred as permanent dataset, while TIME is a


temporary dataset.
True/ False

2. Which of the following are permanent SAS library


a. Sasuser.class
b. Sashelp.work
c. Profit.class
d. All of the above

3. Format statement in the dataset changes the actual variable


values.
True/ False

4. What do you mean by SAS library?


a. a collection of SAS files, such as SAS data sets and catalogs
b. in some operating environments, a physical collection of
SAS files
c. in some operating environments, a logically related
collection of SAS files
d. all of the above

5. Which of the following statement is not used with raw data


a. Where
b. Input
c. Infile
d. Cards
e. Datalines

6. The dataset contains Subject ID, English, Maths, Hindi and Science
test scores of 10 students
No. of observations _______
No. of rows ________

7. LIBNAME statement once declared is only for the current SAS


session
True/ False

8. Default length of numeric data types(in bytes) is _____

9. Each SAS statement need not be ended with semicolon


True/ False

10. Proc contents data= sashelp.class;


Run;
This statement
a. Gives the data portion of class dataset in sashelp
b. Gives the descriptive portion of all datasets in sashelp
c. Gives the descriptive portion of sashelp.class only
11. True/ False
a. Many SAS statement can be written in one single line
b. One single statement can be written in different line
c. Libname once declared to libref applies only to the current
SAS session

12. What does the following statement do?


libname osiris spss 'c:\myfiles\sasdata\data';
a. defines a library called Spss using the OSIRIS engine
b. defines a library called Osiris using the SPSS engine
c. defines two libraries called Osiris and Spss using the default
engine
d. defines the default library using the OSIRIS and SPSS engines

13. What does the following OPTIONS statement do?


options pagesize=15 nodate;
a. suppresses the date and limits the page size of the log
b. suppresses the date and limits the vertical page size for text
output
c. suppresses the date and limits the vertical page size for text and
HTML output
d. suppresses the date and limits the horizontal page size for text
output
13. Which statement prints a summary of all the files stored in
the library named Area51?
a. proc contents data=area51._all_ nods;
b. proc contents data=area51 _all_ nods;
c. proc contents data=area51 _all_ noobs;
d. proc contents data=area51 _all_.nods;

15. SAS program contains the following


a. Data step
b. Proc step
c. Data step and Proc step
d. a/ b/ c

16. Which of the following are valid SAS names?


_Item_
Temp-one
1Sam
$total

17. which of the following prints the report with descriptive


information
a. PUT_all_; and other statements in the datastep
b. proc contents
c. Input statement with DESCRIPTOR option
d. None of them
18. In a DATA step, how can you reference a temporary SAS data set
named Forecast?
a. Forecast
b. Work.Forecast
c. Sales.Forecast (after assigning the libref Sales)
d. only a and b above

19. What does PROC PRINT display by default?


a. PROC PRINT does not create a default report; you must specify the
rows and columns to be displayed.
b. PROC PRINT displays all observations and variables in the data set.
If you want an additional column for observation numbers, you can
request it.
c. PROC PRINT displays columns in the following order: a column for
observation numbers, all character variables, and all numeric
variables.
d. PROC PRINT displays all observations and variables in the data set,
a column for observation numbers on the far left, and variables in
the order in which they occur in the data set.

You might also like