SAS Quiz: Lesson 1

Quiz: Lesson 1


Select the best answer for each question. When you are finished, click Submit Quiz.

  1. How many steps does this program contain?data national; set sashelp.baseball; BatAvg=nHits/nAtBat; run; proc contents data=national; run; proc print data=national; run; proc means data=national; var BatAvg; run;
     a.  one b.  two c.  four d.  eight
  2. Running a SAS program can create which of the following? a.  log b.  output data c.  results d.  all of the above
  3. Which of the following is a SAS syntax requirement? a.  Begin each statement in column one. b.  Put only one statement on each line. c.  Separate each step with a line space. d.  End each statement with a semicolon.
  4. Which of the following steps is typically used to generate reports and graphs? a.  DATA b.  PROC c.  REPORT d.  RUN
  5. Does this comment contain syntax errors? /* Report created for budget presentation; revised October 15. */ proc print data=work.newloan; run;
     a.  No. The comment is correctly specified. b.  Yes. Every comment line must end with a semicolon. c.  Yes. The comment is on more than one line. d.  Yes. There is a semicolon in the middle of the comment.
  6. What result would you expect from submitting this step?proc print data=work.newsalesemps run;
     a.  a report of the work.newsalesemps data set b.  an error message in the log c.  the creation of a table named work.newsalesemps
  7. What happens if you submit the following program?porc print data=work.newsalesemps; run;
     a.  SAS does not execute the step. b.  SAS assumes that PROC is misspelled and executes the step.
  8. This program contains a syntax error because National is in different cases.data national; set sashelp.baseball; BatAvg=nHits/nAtBat; run; proc means data=NATIONAL; var BatAvg; run;
     a.  True b.  False
  9. How many statements does this program contain?*Create a cars report; title “European Cars Priced Over 30K”; footnote “Internal Use Only”; proc print data=sashelp.cars; where Origin=’Europe’ and MSRP>30000; var Make Model Type Mpg_City Mpg_Highway; run;
     a.  five b.  six c.  seven d.  eight
  10. Which of the following is not a SAS programming interface? a.  SAS Enterprise Guide b.  SAS Manager c.  SAS Studio d.  SAS windowing environment
Click here to order similar paper @Udessaywriters.com.100% Original.Written from scratch by professional writers.

You May Also Like

About the Author: admin