Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

SAS A00-231 Exam - Topic 3 Question 22 Discussion

SIMULATIONScenario:This project will use data setcert.input04. At any time, you may save your program asprogram04incert\programs. Write a SAS program that will create the data setresults.output04.In this program, complete the following mathematical actions, in the following order:Round VAR1 and VAR2 to the nearest integer values.Multiply the rounded VAR1b y the rounded VAR2 and assign the new value to VAR3.Add VAR12 through VAR19 (8 variables) together, ignoring missing values. Assign the sum to VAR20.For observation 16, what is the value ofVAR3? Enter your numeric answer in the space below:
A) 80136

SAS A00-231 Exam - Topic 3 Question 22 Discussion

Actual exam question for SAS's A00-231 exam
Question #: 22
Topic #: 3
[All A00-231 Questions]

SIMULATION

Scenario:

This project will use data setcert.input04. At any time, you may save your program asprogram04incert\programs. Write a SAS program that will create the data setresults.output04.

In this program, complete the following mathematical actions, in the following order:

Round VAR1 and VAR2 to the nearest integer values.

Multiply the rounded VAR1b y the rounded VAR2 and assign the new value to VAR3.

Add VAR12 through VAR19 (8 variables) together, ignoring missing values. Assign the sum to VAR20.

For observation 16, what is the value ofVAR3? Enter your numeric answer in the space below:

Show Suggested Answer Hide Answer
Suggested Answer: A

SAS code that could be used to solve this project:

data results.output04;

set cert.input04;

var3=round(var1,1)*round(var2,1);

var20=sum(of var12-var19);

run;

proc print data=results.output04 (obs=16 firstobs=16);

var var3 var20;

run;

The 'obs' option controls the last observation SAS processes. If you set obs=16, SAS would read and process only up to the 16th observation in the data set.

The 'firstobs' option controls the starting observation. If you set firstobs=16, SAS would start reading and processing from the 16th observation.


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel