Question : You have been working following SAS files, you need to find which of the following a permanent file is?
1. SASHELP.PrdSale
2. SASUSER.HESALES
3. SUBSCRIBER.COURSES
4. All of the above
Correct Answer : 4 Explanation: If you miss or do not provide the libref than all the files will go in temporary library called Work. However, in all three option 1, 2 and 3, it had been provided with the valid library name other than work hence all will be stored permanently. Libref.filename is the syntax. If you have reference like below than it will be temporary - Work.hadoopexam - Hadoopexam
Question : You have been working with the HadoopExam subscriber data. You need to work on some temporary data for the all the subscriber in last one year and named as HESUBSCRIBER. How can you reference a temporary SAS data set named HESUBSCRIBER? A. HESUBSCRIBER B. Work. HESUBSCRIBER C. HE. HESUBSCRIBER D. HE.SUBSCRIBER
1. A,B 2. B,C 3. C,D 4. A,D 5. B,D
Correct Answer : 1 Explanation: As you know all the temporary data stored in Work library and they can be reverenced either using Work libref or without any libref. Hence option A and B are correct.
Question : You have been given below SAS dataset
What is the default length of the variable fee?
1. 5
2. 6
3. 7
4. 8
5. Looking at sample data, we cannot default length.
Correct Answer : 4 Explanation: For numeric data default length will always be 8 bytes. However, you can change it if you want it. As question is asking for default length which will be 8 only.
1. SAS converts the values of SalaryRate to numeric values. No message is written to the log. 2. SAS converts the values of SalaryRate to numeric values. A message is written to the log. 3. SAS converts the values of Time to character values. No message is written to the log. 4. SAS converts the values of Time to character values. A message is written to the log.