Which step temporarily assign a format to the sales variable?
- A . Proc format; Formatsales comma12.; Run;
- B . Data sasuer. Shoes Set sashelp,sheoes; Format sales comma12.;
- C . Proc contents data=sashelp.shoes; Format Sales comma12.; Run;
- D . Proc print data= sashelp. Shoes Format sales comma12.; Run;
Which PROC PRINT option displays variable labels in the report?
- A . SHOWLABELS
- B . COLS
- C . LABELS=
- D . LABEL
You submit a program and the SAS log is shown below:
Which statement is true regarding the submitted program?
- A . The error in the PROC SORT step caused the program to stop processing
- B . All three steps ran successfully
- C . The DATA step and PROC PRINT steps ran without errors.
- D . The PROC SORT and PROC PRINT steps failed.
The data set Snacks contains three variables (productName, Flavor, and Price).
Given the program shown below:
What is the type and length of SnackType?
- A . Numeric, 8
- B . Character, 7
- C . Character, 8
- D . Character, 5
Which statement is true regarding variable names?
- A . Variable names are case sensitive.
- B . Variable names are from 1 to 32 characters in length.
- C . Variable names are optional when you create a data set
- D . Variable names can start with a number or an underscore
Which PROC SORT option allows you to create an output data set of the sorted data?
- A . Data=
- B . SORTOUT=
- C . OUTPUT=
- D . OUT=
Given the following code:
Which variables are created with the BY statement?
- A . State. First and State. Last
- B . First. State and Last. State
- C . First_State and Last_State
- D . First. and Last.
Given the display of the CITIES data set:
Which program creates the PROC PRINT report below?
- A . proc print data=cities showlabelse; label Name= ‘ Employee Name City =Birth City
- B . proc print data-cities label noobs; label Name=’Employee Name’ City=’ Birth City’; run;
- C . proc print data=cities; Name=’ Employee Name’; City=’Birth City’; run;
- D . options noobs labels; proc print data=cities; display Name=’ Employee Name* city=’Birth City’, run;
Which statements read the input data set SASHELP. SHOES and create the output data set WORK. TOTAL?
- A . data sashalp.shoes; out work.total;
- B . data sashelp.shoes; output work.total;
- C . data work.total; set sashelp.shoes;
- D . data out=work.total; input sasholp.shoes
The sashelp. class data set has 19 observations.
Given the frequency information about the Age, shown below:
How many observations are written to output data set when the following code is submitted?
- A . preteen will have 7 observations and teen will have 19 observations
- B . preteen will have 7 observations and teen will have 12 observations
- C . preteen will have 26 observations and teen will have 31 observations
- D . preteen will have 10 observations and teen will have 9 observations
The SAS log of a submitted DATA step is shown below:
Which action resolve the error messages?
- A . Remove the period after the value of Inc.
- B . Enclose the value of ABC Inc. in quotation marks.
- C . Add a LENGTH statement to declare the company variable as character
- D . Enclose the value of ABC Inc. in parentheses.
Which statement is true regarding a variable?
- A . A character variable can contain alphabetic characters, numeric digits, and other special characters.
- B . A numeric value must be specified in single or double quotes.
- C . A character value cannot exceed 200 bytes.
- D . A numeric variable can contain digits, decimal point, minus sign, currency symbol, and E for scientific notation.
Given the SAS data set WORK PRODUCTS:
The following SAS program is submitted:
How many variables does the WORK REVENUE data set contains?
- A . 4
- B . 5
- C . 2
- D . 3
How does SAS display missing values?
- A . a period for missing numeric and a blank for missing character
- B . an N for missing numeric and C for missing character
- C . a blank for Doth numeric and character missing
- D . a blank for missing numeric and a $ for missing character
CORRECT TEXT
Given the following DATA step:
What is the value of average? Enter your numeric answer in the space above.
The following program is summited:
The following report is created:
However, the desired report is shown below:
What change is needed to display the desired formatted values for the Answer varia?
- A . Change the unformatted values on the VALUE statement to upper case letters
- B . Remove the comma located on the VALUE statement
- C . Add a period to the end of the format name on the VALUE statement.
- D . Remove the dollar sign located at the front of the format name
What type of error does NOT produce the expected results and does NOT generate errors or warnings in the log?
- A . Syntax error
- B . Logic error
- C . Special error
- D . Data error
Which statement is true about the DROP statement during the compilation phase of the DATA step?
- A . The DROP statement flags the variables in the Program Data Vector to be dropped at output.
- B . The DROP statement determines the order of the variables in the Program Data Vector
- C . Variables on the DROP statement are removed from the input data set.
- D . Variables on the DROP statement are not created in the Program Data Vector
Which statement is true regarding the XLSX engine in the LIBNAME statement?
- A . The individual worksheets are automatically concatenated when reading a Microsoft Excel workbook.
- B . The XLSX engine can road and write data in Microsoft Excel workbooks.
- C . The XLSX engine can road Microsoft workbooks with both XLSX and XLS extensions
- D . The XLSX extension in the Microsoft Excel workbook name is optional in the LIBNAME statement
Given the report shown below:
Which PROC PREQ step creates the frequency report?
- A . proc freq data= cars; tables make drivetrain; run;
- B . proc freq data= cars; tables make *drivetrain; run;
- C . proc freq data- cars; tables drivetrain make; run;
- D . proc freq data- cars; tables drivetrain* make; run;