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 7

Writing Flexible Code with the SAS Macro Facility

Multiple Choice      

Short Answer      

Programming Exercises      

Multiple Choice

  1.   Which of the following is a valid macro variable name?

a.   01_01_1960

b.   _SP4EVR_

c.   Charlie'sPlace

d.   S.O.S.

  2.   If the following code is submitted and then followed by a PROC PRINT, what will be the resulting title in the output?

%LET title = The Amazing Race;

TITLE '&title';

a.   The Amazing Race

b.   &title

c.   title

d.   '&title'

  3.   If the following code is submitted and then followed by a PROC PRINT, what will be the resulting title in the output?

%LET title = The Amazing Race;

TITLE '&title';

a.   The Amazing Race

b.   &title

c.   title

d.   '&title'

  4.   If the following ...

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