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?
  1.    rawdata1
  2.    rawdata2
  3.    'rawdata1'
  4.    '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?
  1.    Gender
  2.    Race
  3.    Both a and b
  4.    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?
  1.    Output
  2.    Weight
  3.    Set
  4.    Tables
Explanation:-
Answer: Option C. -> Set





Question 4. Which of the following keywords is used in SAS to store values in variables?
  1.    Input
  2.    Data
  3.    Datalines
  4.    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;
  1.    3
  2.    4
  3.    5
  4.    6
Explanation:-
Answer: Option B. -> 4





Question 6. Which of the following are correct PROC statements?
  1.    PROC contents
  2.    PROC means
  3.    PROC freq
  4.    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?
  1.    DATA and SET
  2.    DATA, SET and INFILE
  3.    DATA, SET and INPUT
  4.    DATA, INFILE and INPUT
Explanation:-
Answer: Option D. -> DATA, INFILE and INPUT





Question 8. Which of the following analysis explains "what has happened"?
  1.    Descriptive
  2.    Diagnostic
  3.    Predictive
  4.    Prescriptive
Explanation:-
Answer: Option A. -> Descriptive





Question 9. Which of the following keywords is used to define the variables in SAS Dataset?
  1.    Assign
  2.    Create
  3.    Input
  4.    Data
Explanation:-
Answer: Option C. -> Input





Question 10. What happens If the value of the observation weight variable is ZERO?
  1.    Observation is kept from analysis
  2.    Observation is skipped from analysis
  3.    Observation is deleted from analysis
  4.    None of the above
Explanation:-
Answer: Option C. -> Observation is deleted from analysis