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 3

Working with Your Data

Multiple Choice

Short Answer

Programming Exercises

Multiple Choice

  1.   Which of the following assignment statements is valid for the numeric variable Score?

a.   Score / 100;

b.   Score = Score / 100;

c.   Score = 'Score' / 100;

d.   Score = 'Score / 100';

  2.   Given the following raw data and program, what will be the value of Total1 for the second observation in the resulting SAS data set?

----+----1----+----2

1  160 50  202  150 55  .3  120 40  304  140 50  25

DATA cholesterol;

  INFILE 'c:\MyRawData\Patients.dat';

  INPUT ID Ldl Hdl Vldl;

  Total1 = Ldl + Hdl + Vldl;RUN;

a.   230

b.   205

c.   .

d.   215

  3.   Given the following raw data and program, what will be the value of Total2 for the second observation ...

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