hw4solSTAT475F11 (1)

hw4solSTAT475F11 (1) - STAT 475 HOMEWORK 4 SOLUTION...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
HOMEWORK 4 SOLUTION Exercises for Handout 19: Quiz for Chapter 21 in the textbook: Questions 1-10. 1. A. This is an INCORRECT answer as other answers are also true about @@. B. This is an INCORRECT answer as other answers are also true about @@. C. This is an INCORRECT answer as other answers are also true about @@. D. This is the CORRECT answer because all the statements are true about @@. 2. A. This is an INCORRECT answer as the record will be automatically released at the next iteration of the DATA step. B. This is the CORRECT answer because the next iteration of the DATA step releases a record held by @. C. This is an INCORRECT answer as the record will be released in the next DATA step iteration. D. This is an INCORRECT answer as reading in another value will not release the record. 3. A. This is an INCORRECT answer as it is missing @@. B. This is an INCORRECT answer as it is missing @@. C. This is the CORRECT answer because it correctly utilizes @@. D. This is an INCORRECT answer as @@ is not appropriate for the infile statement. 4. A. This is an INCORRECT answer as it does not utilize the ‘@’ option. B. This is an INCORRECT answer as @@ is not appropriate in this case. C. This is an INCORRECT answer as ‘@’ is not used in the input statement. D. This is the CORRECT answer because it correctly holds the record to create 3 observations. 5. A. This is the CORRECT answer because it correctly counts the range from 1 to 50 by increments of 5. B. This is an INCORRECT answer as the do while statement is not needed here. C. This is an INCORRECT answer as the ‘+’ is not necessary here. D. This is an INCORRECT answer as the do while statement is not appropriate in this case. 6. A. This is the CORRECT answer because it writes an observation to the data set after each value for activity has been read. B. This is an INCORRECT answer as the output statement needs to precede the end statement in order to write an observation after each value read. C. This is an INCORRECT answer as it is missing an output statement. D. This is an INCORRECT answer as only answer A is correct. 7. A. This is an INCORRECT answer as the do while statement is necessary here. B. This is an INCORRECT answer as the do while statement is necessary here. C. This is the CORRECT answer because this correctly executes several statements while the value of Cholesterol is greater than 200. D. This is an INCORRECT answer as there is a syntax error (missing parenthesis). 8. A. This is an INCORRECT answer as this is not a sum statement. B. This is the CORRECT answer because it correctly utilizes ‘+’. C. This is an INCORRECT answer as this is not a sum statement. D. This is an INCORRECT answer as this is not a sum statement. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/14/2011 for the course STAT 475 taught by Professor Olgak during the Fall '11 term at CSU Long Beach.

Page1 / 10

hw4solSTAT475F11 (1) - STAT 475 HOMEWORK 4 SOLUTION...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online