Chapter 3

Working with Your Data

Multiple Choice

Short Answer

Programming Exercises

Multiple Choice

1. Which DATA step will not overwrite a temporary SAS data set called TOYS?

a. DATA WORK.toys; SET WORK.toys; RUN;

b. DATA ‘c:\MySASLib\toys’; SET ‘c:\MySASLib\toys’; RUN;

c. DATA toys; SET toys; RUN;

d. None of the above

2. Which SAS statement can be used to read a SAS data set?

a. SET

b. INFILE

c. INPUT

d. All of the above

3. 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’;

4. 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 ...

Get Exercises and Projects for The Little SAS Book, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.