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;

Practice More Questions From: Essentials Review

Q:

Steps begin with a ____ or ____ statement and end with a ____ or ____ statement.

Q:

Steps must begin with a DATA or PROC statement and typically end with either a RUN or QUIT statement.

Q:

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;

Q:

Running a SAS program can create which of the following? Select all that apply.

Q:

If results are generated after a program is run, the program ran successfully and you do not need to review the log.

Q:

Running a SAS program will always produce which of the following?

Q:

Which of the following is a SAS syntax requirement?

Q:

Which of the following statements is true regarding SAS syntax? Select all that apply.

Q:

Which of the following statements about SAS syntax requirements is incorrect?

Q:

PROC steps generally perform which of the following tasks? Select all that apply.

Q:

Which of the following steps is typically used to generate reports and graphs?

Q:

The DATA step typically performs which functions? Select all that apply.

Q:

Does this comment contain syntax errors? *Report created for costpresentation; revised November 9;proc print data=work.newloan;run;

Q:

When can you use an asterisk and a semicolon to comment out code?

Q:

Does this comment contain syntax errors? /*Report created for budgetpresentation; revised October 15. */proc print data=work.newloan;run;

Q:

What result would you expect from submitting this step? proc print data=work.newsalesempsrun;

Q:

Submitting this step would create an error message in the log. proc print data=work.newsalesemps;run;

Q:

Submitting this step would create an error message in the log. proc print data=work.newsalesempsrun;

Q:

Question 7 What happens if you submit the following program? daat mygolfcarts; set sashelp.golfcarts; AvgMPG=mean(mpg_pavement, mpg_offroad);run;

Q:

What happens if you submit the following program? porc print data=work.newsalesemps;run;

Q:

SAS will not execute the following step because PROC is misspelled. porc print data=work.newsalesemps;run;

Q:

Quoted values are case sensitive.

Q:

This program contains a syntax error because BatAvg is in different cases. data Seasonal; set sashelp.baseball; BatAvg=nHits/nAtBat;run; proc means data=Seasonal; var BATAVG;run;

Q:

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;

Q:

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;

Q:

How many statements does the following PROC step contain? title “European Cars Priced Over 25K”;footnote “Internal Use Only”;proc print data=sashelp.cars; where Origin=’Europe’ and MSRP>25000; var Make Model Type Mpg_City Mpg_Highway;run;

Q:

How many statements does this program contain? title “American Cars Priced Over 50K”;footnote “Internal Use Only”;proc print data=sashelp.cars; where Origin=‘USA’ and MSRP>50000; var Make Model Type Mpg_City Mpg_Highway;run;

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments