SAS Base Programming for SAS 9 Free Practice Exam Questions

38 real SAS Base Programming for SAS 9 exam questions with answers and AI explanations. SAS Institute certification prep — page 3 of 4.

  1. Question 26: The following SAS program is submitted: data test; set chemists; jobcode = Chem2 then description = Senior Chemist; else description = Unknown; run; The value…
  2. Question 27: The contents of the raw data file EMPLOYEE are listed below: --------10-------20-------30 Ruth 39 11 - Jose 32 22 - Sue 30 33 - John 40 44 - The following SAS…
  3. Question 28: The following SAS program is submitted: data work.staff; JobCategory = 'FA'; JobLevel = '1'; JobCategory = JobCategory || JobLevel; run; Which one of the follo…
  4. Question 29: The SAS data sets WORK.EMPLOYEE and WORK.SALARY are shown below: WORK.EMPLOYEE WORK.SALARY - fname age name salary Bruce 30 Bruce 25000 - Dan 40 Bruce 35000 -…
  5. Question 30: The following SAS program is submittad: data work.sales; do year = 1 to 5; do month=1 to 12; x+1; output end; end; run; How many observations are written the W…
  6. Question 31: The following SAS program is submitted: data work.retail; cost = '20000'; total = .10 * cost; run; Which one of the following is the value of the variable TOTA…
  7. Question 32: A raw data file is listed below: --------10-------20-------30 John McCloskey 35 71 - June Rosesette 10 43 - Tineke Jones 9 37 - The following SAS program is su…
  8. Question 34: The contents of the raw data file PRODUCT are listed below: --------10-------20-------30 24613 $25.31 The following SAS program is submitted: data inventory; i…
  9. Question 36: The SAS data set SASUSER.HOUSES contains a variable PRICE which has been assigned a permanent label of "Asking Price". Which SAS program temporarily replaces t…
  10. Question 37: The following SAS program is submitted: data work.accounting; set work.dept1 work.dept2; jobcode = FA1; length jobcode $ 8; run; A character variable named JOB…