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 Exam A00-231 Topic 1 Question 6 Discussion

Actual exam question for SAS's A00-231 exam
Question #: 6
Topic #: 1
[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 ofVAR20? Enter your numeric answer in the space below. Round your answer to the nearest whole number. Save your program asprogram04.sasincert\programs before continuing with the next project

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;

If you got this question wrong because you didn't round to the nearest whole number, please know that the actual exam will restrict you to entering only a whole number to prevent this from occurring. The correct answer is: 3175


Contribute your Thoughts:

Thad
1 months ago
Wait, did they say we can save our program as program04.sas? I'm going to name mine 'program04_the_best.sas' just to be sure.
upvoted 0 times
Carole
19 days ago
That's a good idea, I'll name mine 'program04_final.sas' just to keep it organized.
upvoted 0 times
...
...
Joseph
1 months ago
Alright, let's do this. Rounding, multiplying, and adding - easy peasy. As long as I don't make any silly mistakes, I should be good to go.
upvoted 0 times
Holley
23 days ago
Let's start by rounding VAR1 and VAR2.
upvoted 0 times
...
Troy
26 days ago
I'm ready to tackle this task.
upvoted 0 times
...
...
Douglass
1 months ago
Haha, I bet the answer is something like 'the value of VAR20 for observation 16 is 42' or something equally ridiculous. Let's see what the actual answer is!
upvoted 0 times
Jolene
27 days ago
Let's run the program and find out!
upvoted 0 times
...
Nicholle
1 months ago
I think the answer is 3175.
upvoted 0 times
...
...
Tashia
2 months ago
Okay, let's see. Round VAR1 and VAR2, then multiply them to get VAR3. Add VAR12 to VAR19 and assign the sum to VAR20. For observation 16, the value of VAR20 should be 3175. Sounds straightforward enough!
upvoted 0 times
...
Melodie
2 months ago
I think the answer might be 3175 because of the mathematical operations specified.
upvoted 0 times
...
Dierdre
2 months ago
I agree, it requires careful attention to detail.
upvoted 0 times
...
Melodie
2 months ago
I found the question about the SAS program challenging.
upvoted 0 times
...

Save Cancel