Skip to main content

A00-212 Real Exam Questions

SAS Advanced Programming Exam for SAS 9

184 questions available · Page 1 of 19

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Single choice

Given the SAS data sets:

The following SAS program is submitted:

What data values are stored in data set WORK.COMBINE?

  1. A

    Option A

  2. B

    Option B

  3. C

    Option C

  4. D

    Option D

Show answer and explanation

Correct answer: A

Question 2 Single choice

This question will ask you to provide a segment of missing code.

Given the SAS data set SASUSER.HIGHWAY:

The following SAS program is submitted:

Which SQL clause stores the text 0-29, 30-49, 60+ in the macro variable GROUPS?

  1. A

    into : GROUPS separated by ` , '

  2. B

    : into GROUPS separated = ` , '

  3. C

    Into : GROUPS delimited by ` , '

  4. D

    : into GROUPS delimited by ` , '

Show answer and explanation

Correct answer: A

Explanation

References:
http://analytics.ncsu.edu/sesug/2006/CC01_06.PDF
(page 2, creating the macro variable)

Question 3 Single choice

The SAS data set ONE contains the variables X, Y, Z, and W.

The following SAS program is submitted:

proc transpose data = one

out = trans

name = new;

by x;

var y;

run;

Which one of the following contains all the names of the columns created by the TRANSPOSE procedure?

  1. A

    X, Y, Z, and W

  2. B

    _NAME_, X, and Y

  3. C

    new, X, and COL1

  4. D

    new, X, Y, and_COL1_

Show answer and explanation

Correct answer: C

Question 4 Single choice

Given the data sets shown on the left, the SAS program shown on the right is submitted.

What will be output by the program?

  1. A

    ERROR: Subquery evaluated to more than one row

  2. B

    Average of Employment 6

  3. C

    Average of Employment 5

  4. D

    Average of employment 7

Show answer and explanation

Correct answer: C

Question 5 Single choice

This question will ask you to provide a missing reference.

Given the SAS data set SASUSER HIGHWAY:

The following SAS program is submitted:

What macro variable reference completes the program to create the WORK.NOT and WORK SERIOUS data sets?

  1. A

    & Status & Count

  2. B

    & & Status & i

  3. C

    & & Status & Count

  4. D

    & Status & i

Show answer and explanation

Correct answer: B

Question 6 Single choice

Given the following SAS data sets ONE and TWO:

ONE TWO
NUM COUNTRY NUM CITY

1 CANADA 3 BERLIN

2 FRANCE 5 TOKYO

3 GERMANY 4 BELGIUM

5 JAPAN

The following SAS program is submitted:

proc sql;

select country

from one

where not exists

(select *

from two

where one.num = two.num);

quit;

Which one of the following reports is generated?

  1. A

    COUNTRY
    GERMANY
    JAPAN

  2. B

    COUNTRY
    FRANCE
    BELGIUM

  3. C

    COUNTRY
    CANADA
    FRANCE
    BELGIUM

  4. D

    COUNTRY
    CANADA
    FRANCE
    GERMANY

Show answer and explanation

Correct answer: C

Question 7 Single choice

Given the following SAS data set ONE:

ONE

DIVISION SALES

A 1234

A 3654

B 5678

The following SAS program is submitted:

data _null_;

set one;

by division;

if first.division then

call symput('mfirst',sales);

if last.division then

call symput('mlast',sales);
run;

Which one of the following is the value of the macro variable MFIRST when the above program finishes execution?

  1. A

    null

  2. B

    1234

  3. C

    3654

  4. D

    5678

Show answer and explanation

Correct answer: D

Question 8 Single choice

The following SAS program is submitted:

The current system date macro variable is 30JUL2013.

Which output will be written to the log by the program?

  1. A

    In two years it will be: 2014+1

  2. B

    Error: Required operator not found in expression in two years it will be: 2013+12+1

  3. C

    In two years it will be: 2013+1+1+1

  4. D

    In two years it will be: 2014+1+1

Show answer and explanation

Correct answer: D

Question 9 Fill in the blank

Given a data set with the following characteristics:
50000 observations
200 character variables
In the text below, enter the compression option that will provide the most compression Case is ignored and
standard SAS syntax rules apply.

Show answer and explanation

Accepted answer: CHAR

Explanation

The YES or CHAR setting for the COMPRESS= option uses the RLE compression algorithm. RLE compresses observations by reducing repeated consecutive characters (including blanks) to two-byte or three-byte representations. Therefore, RLE is most often useful for character data that contains repeated blanks. The YES or CHAR setting is also good for compressing numeric data in which most of the values are zero

Question 10 Single choice

The following SAS program is submitted:

proc sort data = sales tagsort;

by month year;

run;

Which of the following resource(s) is the TAGSORT option reducing?

  1. A

    I/O usage only

  2. B

    CPU usage only

  3. C

    I/O and CPU usage

  4. D

    temporary disk usage

Show answer and explanation

Correct answer: D