{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
STAT 475 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
Image of page 1

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

View Full Document Right Arrow Icon
9. A. This is an INCORRECT answer as it does not define month.
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern