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 24 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 24 Discussion

Actual exam question for SAS's A00-231 exam
Question #: 24
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
Milly
5 days ago
Definitely, but it’s standard practice in data analysis.
upvoted 0 times
...
Cherelle
10 days ago
Just a heads up, rounding can change your results significantly!
upvoted 0 times
...
Jacquelyne
15 days ago
I think I need to double-check the order of operations for this question. I hope I remember to multiply VAR1 and VAR2 before summing the other variables!
upvoted 0 times
...
Jerilyn
20 days ago
I'm a bit confused about how to ignore missing values when summing VAR12 to VAR19. Did we cover that in our last session?
upvoted 0 times
...
Shenika
26 days ago
This question seems similar to one we did in class where we had to calculate a new variable based on rounded values. I think I can handle it!
upvoted 0 times
...
Lennie
1 month ago
I remember we practiced rounding numbers in SAS, but I'm not entirely sure how to apply it to VAR1 and VAR2 specifically.
upvoted 0 times
...

Save Cancel