Summer Sale - Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpt65

A00-212 Questions and Answers

Note! Following A00-212 Exam is Retired now. Please select the alternative replacement for your Exam Certification.

A00-212 Questions and Answers

Question # 6

Which one of the following options is available for SAS macro debugging?

A.

MLOGIC

B.

MDEBUG

C.

MSGLEVEL

D.

MAUTOSOURCE

Full Access
Question # 7

Which one of the following statements about compressed SAS data sets is always true?

A.

Each observation is treated as a single string of bytes.

B.

Each observation occupies the same number of bytes.

C.

An updated observation is stored in its original location.

D.

New observations are added to the end of the SAS data set.

Full Access
Question # 8

The following SAS program is submitted:

data temp;

set sasuser.history(kep=date);

format date qtr

if first.date then total=0;

total+1;

if last.date;

run;

proc print data=temp;

run

SASUSER.HISTORY is sorted by the SAS date variable DATE.

The following output is required:

Date Total

1 13

3 15

4 25

Which By statement completes the data step and successfully generates the required output?

A.

by groupformat date;

B.

by formateed date;

C.

by notsorted date;

D.

by date qtr

Full Access
Question # 9

Given the following SAS data set named WORK.INTERNAT:

WORK.INTERNAT

LOCATION SUM

USA 30

EUR 40

The following SAS program is submitted:

%let LOC = Usa;

proc sql;

select *

from internat

where location = "&Loc";

quit;

Which one of the following is the result when the above code is executed on the above data set?

A.

A report is generated with one destination.

B.

No report is generated as the case of the compared values is different.

C.

No report is generated as the case of the macro variable name is different.

D.

A report is generated with the two original observations as the where clause does not work.

Full Access
Question # 10

The following SAS program is submitted:

%let lib = %upcase(sasuser);

proc sql;

select nvar

from dictionary.tables

where libname = "&lib";

quit;

Given that several SAS data sets exist in the SASUSER library, which one of the following is generated as output?

A.

no result set

B.

a syntax error in the log

C.

a report showing the names of each table in SASUSER

D.

a report showing the number of columns in each table in SASUSER

Full Access
Question # 11

Which SQL procedure program deletes rows from the data set CLASS?

A.

proc sql;

Select * from class

Where age<(select stop_age from threshold);

Quit;

B.

proc sql;

Modify table class

Delete where age<(select stop_age from threshold);

Quit

C.

proc sql;

Delete from class

Where age<(select stop_age from threshold);

Quit;

D.

proc sql;

Alter from class

Delete where age<(select stop_age from threshold);

Quit;

Full Access
Question # 12

Given the data set SASHELP.CLASS:

The following SAS program is submitted:

The PROC steps execute successfully?

A.

PROC PRINT only

B.

PROC MEANS and PROC PRINT

C.

PROC MEANS only

D.

No PROC steps execute successfully

Full Access
Question # 13

Given has SAS dataset ONE:

The following SAS program is submitted:

Proc sql;

from one;

quit;

The following output is desired:

Which SQL procedure clause completes the program and generates the desired output?

A.

Select salary, salary*.10 var=BONUS

B.

Select salary, salary*.10 label='BONUS'

C.

Select salary, salary *.10 column='BONUS'

D.

Select salary, salary*.10 name='BONUS'

Full Access
Question # 14

Given the following SAS data set ONE:

ONE

LEVEL AGE

1 10

2 20

3 20

2 10

1 10

2 30

3 10

2 20

3 30

1 10

The following SAS program is submitted:

proc sql;

select level, max(age) as MAX

from one

group by level

having max(age) > (select avg(age) from one);

quit;

Which one of the following reports is generated?

A.

LEVEL AGE

2 20

3 20

B.

LEVEL AGE

2 30

3 30

C.

LEVEL MAX

2 20

3 30

D.

LEVEL MAX

2 30

3 30

Full Access
Question # 15

This question will ask you to provide missing option.

Which option is required to complete the program correctly?

A.

CAMPLIB

B.

FMTSEARCH

C.

LIBREF

D.

UTILLOC

Full Access
Question # 16

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?

A.

into : GROUPS separated by ‘ , ’

B.

: into GROUPS separated = ‘ , ’

C.

Into : GROUPS delimited by ‘ , ’

D.

: into GROUPS delimited by ‘ , ’

Full Access
Question # 17

Given a SAS data set with the following characteristics:

  • 200 million observations
  • 300 variables
  • Compressed
  • Resides on a network location

A SAS DATA Step program is written that will retrieve 20% of the data using a search based on a range of a character variable.

Which type of statement is the best choice to minimize computer resource utilization when subsetting this data?

A.

KEEP/DROP

B.

WHERE

C.

CASE

D.

IF/THEN/ELSE

Full Access
Question # 18

Which SET statements option names a variable that contains the number of the observation to read during the current iteration of the DATA step?

A.

OBS=pointobs

B.

POINT=pointobs

C.

KEY=pointobs

D.

NOBS=pointobs

Full Access
Question # 19

The following SAS program is submitted:

%let a = cat;

%macro animal(a = frog);

%let a = bird;

%mend;

%animal(a = pig)

%put a is &a;

Which one of the following is written to the SAS log?

A.

a is &a

B.

a is cat

C.

a is pig

D.

a is bird

Full Access
Question # 20

Given the following SAS data sets ONE and TWO:

ONE TWO

NUM CHAR1 NUM CHAR2

1 A 2 X

2 B 3 Y

4 D 5 V

The following SAS program is submitted creating the output table THREE:

data three;

set one two;

run;

THREE

NUM CHAR1 CHAR2

1 A

2 B

4 D

2 X

3 Y

5 V

Which one of the following SQL programs creates an equivalent SAS data set THREE?

A.

proc sql;

create table three as

select *

from one

outer union corr

select *

from two;

quit;

B.

proc sql;

create table three as

select *

from one

outer union

select *

from two;

quit;

C.

proc sql;

create table three as

select *

from one

outer union

select *

quit;

D.

proc sql;

create table three as

select *

from one

union corr

select *

from two;

quit;

Full Access
Question # 21

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 # 22

The following SAS program is submitted:

What is written to the SAS log?

A.

Mv is bicycle

B.

Mv is shoes

C.

Mv is tents

D.

Mv is clothes

Full Access
Question # 23

Given the SAS data set ONE:

ONE

NUM VAR

1 A

2 B

3 C

Which SQL procedure program deletes the data set ONE?

A.

proc sql;

Drop table one;

Quit;

B.

proc sql;

Remove table one;

Quit;

C.

proc sql;

Delete table one;

Quit;

D.

proc sql;

Delete from one;

Quit;

Full Access
Question # 24

The following SAS program is submitted:

%let value = .5;

%let add = 5;

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

Which one of the following is the resulting value of the macro variable NEWVAL?

A.

5

B.

5.5

C.

.5 + 5

D.

null

Full Access
Question # 25

The following SAS program is submitted:

%micro test(var);

%let jobs=BLACKSMITH WORDSMITH SWORDSMITH;

%let type=%index(&jobs, &var);

%put type = &type;

%mend;

%test(SMITH)

What is the value of the macro variable TYPE when the %PUT statement executes?

A.

0

B.

Null

C.

6

D.

3

Full Access
Question # 26

Which one of the following statements is true?

A.

The WHERE statement can be executed conditionally as part of an IF statement.

B.

The WHERE statement selects observations before they are brought into the PDV.

C.

The subsetting IF statement works on observations before they are read into the PDV.

D.

The WHERE and subsetting IF statements can be used interchangeably in all SAS programs.

Full Access
Question # 27

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

Given data sets ONE and TWO with the same variables, the following SAS program is submitted:

In the text below, complete the following program so that it will produce the same results as the above program:

Case is ignored and standard SAS syntax rules apply.

Full Access