Aii SAS Programming Quiz

A quiz to test general knowledge in SAS Programming

Question Title

* 1. What is the name of the input data set in the program below?

data eval.uk;
  set sales.inventory;
    where Country=’UK’;
run;

Question Title

* 2. In SAS, one can test single or joint hypothesis after successful completion of

Question Title

* 3. The data set sales.inventory contains nine variables. Given this DATA step, how many variables does the descriptor portion of eval.comp contain?

data eval.comp;
  set sales.inventory;
    drop Gender Salary Birth_Date;
run;

Question Title

* 4. Which procedure can be used to view the permanent labels and formats stored in a data set?

Question Title

* 5. Which of the following determines the length of a new variable at compile time?

Question Title

* 6. If you run this DATA step, what observations does the dataset payroll contain?

data payroll;
  merge managers (in=M) staff (in=S);
  by EmpID;
    if M=0 and S=1;
run;

T