Question : You have been given below SAS dataset, what is the type of the name variable 1. Numeric
2. Character
3. Floating Point Number
4. Variable
Correct Answer : 2 Explanation: As you can see, it contains all the character values. Hence, it will be a character type. In the character type variable you can have all the values as numeric.
Question : In the given dataset, what is the datatype of date variable?
1. Date
2. Character
3. Numeric
4. Floating Point
Correct Answer : 3 Explanation: As you can see all the values are numeric and missing value is shown as a . (dot), which is in case of only numeric values and for character type missing value is shown as a blank space. And there are no data types like Date and Floating point in SAS.
Question : You have set a system option like VALIDVARNAME=ANY. Which of the following is a valid variable name?
1. 4HadoopExam
2. $Price
3. _HadoopExam_
4. Hadoop-Exam
5. All of the above are fine
Correct Answer : 3 Explanation: Rules are the same, when you use the SAS variables name. It can contain any characters a to z, underscore and numbers. Must start with either character or underscore. You can not have " in between, hence option 4 is out.