O'Reilly logo

Exercises and Projects for The Little SAS Book, Fifth Edition by Susan J. Slaughter, Lora D. Delwiche, Rebecca A. Ottesen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 4

Sorting, Printing, and Summarizing Your Data

Multiple Choice

Short Answer

Programming Exercises

Multiple Choice

  1.   Which PROC requires a BY statement?

a.   PRINT

b.   SORT

c.   FREQ

d.   All of the above

  2.   Which WHERE statement using a mnemonic operator is equivalent to the following WHERE statement using a symbolic operator?

WHERE Temp ~= . ;

a.   WHERE Temp IS NOT MISSING ;

b.   WHERE Temp CONTAINS . ;

c.   WHERE Temp IN (.) ;

d.   All of the above

  3.   Suppose that you have a data set that includes the gender, age, and height of students in a class. Which BY statement will tell SAS to sort the data so that within each age (youngest to oldest), the data will be organized by males (tallest to shortest), followed by females ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required