Sas(Engineering > Computer Science And Engineering ) Questions and Answers
Question 1. The following SAS program is submitted:libname rawdata1 'location of SAS data library';filename rawdata2 'location of raw data file';data work.testdata;infileinput sales1 sales2;run; Which one of the following is needed to complete the program correctly?
rawdata1
rawdata2
'rawdata1'
'rawdata2'
Explanation:-
Answer: Option B. -> rawdata2
Question 2. For which of the following type of variables, it will make utmost sense to create dummy variables?
Gender
Race
Both a and b
Date of birth
Explanation:-
Answer: Option C. -> Both a and b
Question 3. Which one of the following statement can't be part of "PROC FREQ?
Output
Weight
Set
Tables
Explanation:-
Answer: Option C. -> Set
Question 4. Which of the following keywords is used in SAS to store values in variables?
Input
Data
Datalines
Run
Explanation:-
Answer: Option C. -> Datalines
Question 5. How many variables would be in table "AV after executing the below SAS program?data AV; merge Employee Salary; by name; totsal + salary;run;
3
4
5
6
Explanation:-
Answer: Option B. -> 4
Question 6. Which of the following are correct PROC statements?
PROC contents
PROC means
PROC freq
All of the above
Explanation:-
Answer: Option D. -> All of the above
Question 7. Which of the following statements are used to read delimited raw data file and create an SAS data set?
DATA and SET
DATA, SET and INFILE
DATA, SET and INPUT
DATA, INFILE and INPUT
Explanation:-
Answer: Option D. -> DATA, INFILE and INPUT
Question 8. Which of the following analysis explains "what has happened"?
Descriptive
Diagnostic
Predictive
Prescriptive
Explanation:-
Answer: Option A. -> Descriptive
Question 9. Which of the following keywords is used to define the variables in SAS Dataset?
Assign
Create
Input
Data
Explanation:-
Answer: Option C. -> Input
Question 10. What happens If the value of the observation weight variable is ZERO?
Observation is kept from analysis
Observation is skipped from analysis
Observation is deleted from analysis
None of the above
Explanation:-
Answer: Option C. -> Observation is deleted from analysis