Question : You have been given below SAS program, how many statements are there ? data hadoopexam.courses; infile hadoopexam1; input name $ price ; run;
1. 4
2. 5
3. 6
4. 7
Correct Answer : 1 Explanation: There are four statements as you know each statements end with the semicolon. First statement spans two line but consider as a single statement. Similarly line 3 has two statements in a single line.
Question : How do you define a SAS library? A. It is a collection of SAS files. B. It is a collection of physical SAS files. C. It is a group files in a folder D. It is a collection of folders
1. A,B,C 2. B,C,D 3. A,C,D 4. A,B,D
Correct Answer : 1 Explanation: SAS library is a collection of files, which represent a folder on OS.
Question : Which of the following is best suitable option on all the SAS platform, so that SAS ouput can be generated in HTML format?
1. You must use system options
2. You have to use dataset specific options
3. By default on all the platform it will be HTML format only
4. You should use proper programming statement to generate HTML format output
Correct Answer : 4 Explanation: For all the platform , option 4 is correct. You can use programming statement to generate output in HTML format.
What is the result? 1. data set SASUSER.ONE has 5 observations data set SASUSER.TWO has 5 observations data set WORK.OTHER has 3 observations 2. data set SASUSER.ONE has 2 observations data set SASUSER.TWO has 2 observations data set WORK.OTHER has 1 observations 3. data set SASUSER.ONE has 2 observations data set SASUSER.TWO has 2 observations data set WORK.OTHER has 5 observations 4. No data sets are output. The DATA step fails execution due to syntax errors