Labour Day Special - 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: c4sdisc65

Note! A00-212 has been withdrawn.

A00-212 Practice Exam Questions with Answers SAS Advanced Programming Certification

Question # 6

The following SAS program is submitted:

proc contents data = testdata.one;

run;

Which SQL procedure program produces similar information about the column attributes of the dataset TESTDATA.ONE?

A.

proc sql;

Contents table testdata.one;

Quit;

B.

proc sql;

Describe table testdata.one;

Quit;

C.

proc sql;

describe testdata.one;

Quit;

D.

proc sql;

Contents testdata.one;

Quit;

Full Access
Question # 7

The following SAS program is submitted:

%let first = yourname;

%let last = first;

%put &&&last;

Which one of the following is the result in the log of the %PUT statement?

A.

first

B.

&first

C.

yourname

D.

&yourname

Full Access
Question # 8

Given the following SAS data set ONE:

ONE

COUNTRY CITY VISIT

USA BOSTON 10

UK LONDON 5

USA DALLAS 10

UK MARLOW 10

USA BOSTON 20

UK LONDON 15

USA DALLAS 10

The following SAS program is submitted:

proc sql;

select country, city, sum(visit) as TOTAL

from one

group by country, city

order by country, total desc;

quit;

Which one of the following reports is generated?

A.

COUNTRY CITY TOTAL

UK MARLOW 10

UK LONDON 20

USA BOSTON 50

USA DALLAS 20

B.

COUNTRY CITY TOTAL

UK LONDON 20

UK MARLOW 10

USA BOSTON 50

USA DALLAS 20

C.

COUNTRY CITY TOTAL

USA BOSTON 50

D.

COUNTRY CITY TOTAL

UK MARLOW 10

UK LONDON 20

USA DALLAS 20

USA BOSTON 50

Full Access
Question # 9

Given the following partial SAS log:

NOTE: SQL table SASHELP.CLASS was created line

Create table SASHELP.CLASS(bufsize=4096)

(

Name char(8);

Gender Char(1);

Age num;

Height num;

Weight num

);

Which SQL procedure statement generated this output?

A.

DESCRIBE TABLE

B.

LIST TABLE

C.

VALIDATE TABLE

D.

CREATE TABLE

Full Access
Question # 10

The following SAS program is submitted:

data temp;

array points{3,2}_temporary_ (10,20,30,40,50,60);

score = points{2,1}

run;

Which one of the following is the value of the variable SCORE in the data set TEMP?

A.

10

B.

20

C.

30

D.

40

Full Access
Question # 11

Which one of the following is true regarding the KEEP statement?

A.

The KEEP statement is available in both the DATA and the PROC steps.

B.

The KEEP statement selects the variables read from the input data set(s).

C.

The KEEP statement applies to all data sets created within the same DATA step.

D.

The KEEP statement applies only to the first data set created within the same DATA step if more than one data set is created.

Full Access
Question # 12

The following SAS program is submitted:

%let value=9;

%let add=5;

%let newval=%eval(&value/&add);

What is the value of the macro variable NEWVAL?

A.

null

B.

2

C.

1

D.

1.8

Full Access
Question # 13

The SAS set WORK CHECK has an index on the variable Code and the following SAS program is submitted.

proc sort data=WORK.CHECK;

by Code;

run;

What describes the result of submitting SAS program?

A.

The index on Code is updates

B.

The sort does not execute

C.

The index on Code is deleted

D.

The index on the Code unaffected

Full Access
Question # 14

The following SAS program is submitted:

%let dept=prod;

%let prod=merchandise;

The following message is written to the SAS log:

The value is "merchandise"

Which SAS System option writes this message to the SAS log?

A.

%put the value is "&&&dept";

B.

%put the value is "&&&dept";

C.

%put the value is "&&&dept";

D.

%put the value is %quote (&&&dept);

Full Access
Question # 15

This question will ask you to provide missing option.

A00-212 question answer

Which option is required to complete the program correctly?

A.

CAMPLIB

B.

FMTSEARCH

C.

LIBREF

D.

UTILLOC

Full Access
Question # 16

The following SAS program is submitted:

date view=sauser.ranch;

describe;

run;

What is the result?

A.

The program creates a DATA step view called SASUSER.RANCH and places the program cod in the current editor window

B.

The program retrieves the SAS source code that creates the view and places it in the output window

C.

The program creates a DATA step view called SASUSER.RANCH and places it in the

SAS log

D.

the program retrieves the SAS source code that creates the view and places it in the

SAS log

Full Access
Question # 17

The SAS data set TEMP has the following distribution of values for variable A:

A Frequency

1 500,000

2 500,000

6 7,000,000

8 3,000

Which one of the following SAS programs requires the least CPU time to be processed?

A.

data new;

set temp;

if a = 8 then

b = 'Small ';

else if a in(1, 2) then

b = 'Medium';

else if a = 6 then

b = 'Large';

run;

B.

data new;

set temp;

if a in (1, 2) then

b = 'Medium';

else if a = 8 then

b = 'Small';

else if a = 6 then

b = 'Large';

run;

C.

data new;

set temp;

if a = 6 then

b = 'Large ';

else if a in (1, 2) then

b = 'Medium';

else if a = 8 then

b = 'Small';

D.

data new;

set temp;

if a = 6 then

b = 'Large ';

if a in (1, 2) then

b = 'Small';

run;

Full Access
Question # 18

The following SAS program is submitted:

%let first=yourname;

%let last=first;

%put &&&last;

What is written to the SAS Log?

A.

First

B.

Yourname

C.

&&First

D.

&yourname

Full Access
Question # 19

CORRECT TEXT

The following SAS program is submitted:

%macro check(num=4);

%let result=%sysevalf(&num+0.5);

%put result is &result;

%mend;

%check(num=10)

What is the written to the SAS log?

Full Access
Question # 20

Given the following SAS program:

proc sql;

select product, type, sum(sales) as revenue

from one

group by product, type;

quit;

Which one of the following clauses should be added to the program to sort the output by PRODUCT and decreasing REVENUE?

A.

order by 1, 3

B.

order by 1, 3 desc

C.

orderby product, revenue desc

D.

order by product, desc revenue

Full Access
Question # 21

Given the following SAS program:

A00-212 question answer

What will be the output from the PRINT Procedure?

A00-212 question answer

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 22

This question will ask you to provide a missing reference.

Given the SAS data set SASUSER HIGHWAY:

A00-212 question answer

The following SAS program is submitted:

A00-212 question answer

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

A.

& Status & Count

B.

& & Status & i

C.

& & Status & Count

D.

& Status & i

Full Access
Question # 23

Which MACRO option is responsible for this partial SAS log?

A00-212 question answer

A.

MAUTOLOCDISPLAY

B.

MLOGIC

C.

MPRINTNEST

D.

MPRINT

Full Access
Question # 24

When is it appropriate to create indexes on a SAS data set for efficient processing?

A.

if small subsets of data are often retrieved

B.

if the key variable has very few unique values

C.

if the data are often used for BY group processing

D.

if the SAS data set file page count is less than three pages

Full Access
Question # 25

Which option forces the use of a specific index from a data set?

A.

INDEX

B.

IDXNAME

C.

IDXWHERE

D.

INDEX

Full Access
Question # 26

Given the following SAS data set SASUSER.HIGHWAY:

SASUSER.HIGHWAY

STEERING SEATBELT SPEED STATUS COUNT

absent no 0-29 serious 31

absent no 0-29 not 1419

absent no 30-49 serious 191

absent no 30-49 not 2004

absent no 50+ serious 216

The following SAS program is submitted:

%macro highway;

proc sql noprint;

select count(distinct status)

into :numgrp

from sasuser.highway;

%let numgrp = &numgrp;

select distinct status

into :group1-:group&numgrp

from sasuser.highway;

quit;

%do i = 1 %to &numgrp;

proc print data = sasuser.highway;

where status = "&&group&i" ;

run;

%end;

%mend;

%highway

How many reports are produced by the above program?

A.

0

B.

1

C.

2

D.

5

Full Access
Question # 27

The SAS data set ONE consists of five million observations and has 25 variables.

Which one of the following SAS programs successfully creates three new variables

TOTREV, TOTCOST, and PROFIT and requires the least CPU time to be processed?

A.

data two;

set one;

totrev = sum(price * quantity);

totcost = sum(fixed,variable);

profit = sum(totrev,otcost);

if totrev > 1000;

run;

B.

data two;

set one;

totrev = sum(price * quantity);

if totrev > 1000;

totcost = sum(fixed,variable);

profit = sum(totrev,otcost);

run;

C.

data two;

set one;

totrev = sum(price * quantity);

where totrev > 1000;

totcost = sum(fixed,variable);

profit = sum(totrev,otcost);

run;

D.

data two;

set one;

where totrev > 1000;

totrev = sum(price * quantity);

totcost = sum(fixed,variable);

profit = sum(totrev,otcost);

run;

Full Access