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

Note! SAS Institute has retired the A00-212 Exam Contact us through Live Chat or email us for more information.

A00-212 SAS Advanced Programming Questions and Answers

Questions 4

What is an advantage of using a hash object in a SAS DATA step?

Options:

A.

The hash object persists after the DATA step has executed

B.

The hash object key values can be multiple numeric and character data values

C.

The hash object automatically sorts the data

D.

The hash object does not require unique keys

Buy Now
Questions 5

Given the non-indexed SAS data set TEMP:

TEMP

X Y

- -

P 52

P 45

A 13

A 56

R 34

R 12

R 78

The following SAS program is submitted:

Proc print data=temp;

run;

Which BY statement completes the program, creates a listing report that is grouped by X and completes without errors?

Options:

A.

By X notsorted;

B.

By X grouped;

C.

By Descending X;

D.

By X;

Buy Now
Questions 6

Which DICTIONARY table provides information on all the tables containing a variable named LASTNAME?

Options:

A.

DICTIONARY.COLUMNS

B.

DICTIONARY.VARIABLES

C.

DICTIONARY.MEMBERS

D.

DICTIONARY.TABLES

Buy Now
Questions 7

Given the SAS data sets:

The following SAS DATA step is submitted:

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

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 8

Given the non-indexed SAS data set TEMP:

TEMP

X Y

P 52

P 45

A 13

A 56

R 34

R 12

R 78

The following SAS program is submitted:

Proc print data=temp;

Run;

Which by statement completes the program, create a listing report that is grouped by X and completes without errors?

Options:

A.

X;

B.

By X groupd;

C.

By X notsorted;

D.

By descending X;

Buy Now
Questions 9

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?

Options:

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;

Buy Now
Questions 10

The following SAS program is submitted:

data new (bufnp=4);

set old(bufno=4);

run;

Why are the BUFNO options used?

Options:

A.

To reduce the number I/O operations

B.

To reduce network traffic

C.

To reduce memory usage

D.

To reduce the amount of data read

Buy Now
Questions 11

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?

Options:

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'

Buy Now
Questions 12

Given the following SAS data sets ONE and TWO:

ONE TWO

NUM CHAR1 NUM CHAR2

1 A1 2 X1

1 A2 2 X2

2 B1 3 Y

2 B2 5 V

4 D

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

proc sql;

create table three as

select one.num, char1, char2

from one, two

where one.num = two.num;

quit;

THREE

NUM CHAR1 CHAR2

2 B1 X1

2 B1 X2

2 B2 X1

2 B2 X2

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

Options:

A.

data three;

merge one two;

by num;

run;

B.

data three;

set one;

set two;

by num;

run;

merge one two;

by num;

run;

C.

data three;

set one;

set two;

by num;

run;

by num;

run;

D.

data three;

set one;

do i = 1 to numobs;

set two(rename = (num = num2)) point = i

nobs = numobs;

if num2 = num then output;

end;

drop num2;

run;

Buy Now
Questions 13

The following SAS program is submitted:

options yearcutoff = 1950;

%macro y2kopt(date);

%if &date >= 14610 %then %do;

options yearcutoff = 2000;

%end;

%else %do;

options yearcutoff = 1900;

%end;

%mend;

data _null_ ;

date = "01jan2000"d;

call symput("date",left(date));

run;

%y2kopt(&date)

The SAS date for January 1, 2000 is 14610 and the SAS system option for

YEARCUTOFF is set to 1920 prior to submitting the above program.

Which one of the following is the value of YEARCUTOFF when the macro finishes execution?

Options:

A.

1900

B.

1920

C.

1950

D.

2000

Buy Now
Questions 14

Given the SAS data sets ONE and TWO:

The following SAS program is submitted:

Proc sql;

Select two.*,budget from one two on one.year=two.year,

Quit;

The following output is desired:

Which JOIN operator completes the program and generates the desired output?

Options:

A.

FULL JOIN

B.

INNER JOIN

C.

LEFT JOIN

D.

RIGHT JOIN

Buy Now
Questions 15

The following SAS FORMAT procedure is submitted:

proc format lib = sasuser;

value tempc low < 0 = 'BELOW FREEZING'

0 < 5 = 'COLD'

5 < 10 = 'MILD'

10 < 15 = 'WARM'

15 high = 'HOT';

run;

How is the value 10 displayed when the format TEMPC is applied?

Options:

A.

10

B.

MILD

C.

WARM

D.

BELOW FREEZING

Buy Now
Questions 16

Given the SAS data sets:

The following SAS program is submitted:

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

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 17

Which one of the following is an advantage of creating and using a SAS DATA step view?

Options:

A.

It can store an index.

B.

It always accesses the most current data.

C.

It works quickly through multiple passes of the data.

D.

It is useful when the underlying data file structure changes.

Buy Now
Questions 18

Given the SAS data set ONE:

ONE

REP COST

SMITH 200

SMITH 400

JONES 100

SMITH 600

JONES 100

The following SAS program is submitted:

Proc sql;

Select rep, avg(cost) as AVERAGE

From one

Group by rep

quit;

The following output is desired:

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

Options:

A.

having avg(cost) < select avg(cost) from one);

B.

Having avg(cost)>(select avg(cost) from one);

C.

Where avg(cost)>(select avg(cost) from one);

D.

Where calculated average > (select avg(cost) from one);

Buy Now
Questions 19

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

Options:

A.

INDEX

B.

IDXNAME

C.

IDXWHERE

D.

INDEX

Buy Now
Questions 20

Given the following SAS data set ONE:

ONE

CATEGORY AGE SALARY BONUS

M 28 200 20

M 25 100 10

M 28 300 10

M 33 300 30

F 18 100 50

F 25 200 10

F 35 400 50

The following SQL program is submitted:

proc sql;

create table two as

select distinct age

from one

where age < 33;

quit;

How many rows are written to the SAS data set TWO?

Options:

A.

3

B.

4

C.

5

D.

6

Buy Now
Questions 21

The following SAS program is submitted:

options reuse=YES;

data sasuser RealEstate(compress=CHAR);

set sasuser houses;

run;

What is the effect of the REUSE=YES SAS system option?

Options:

A.

It tracks and recycles free space

B.

It allows a permanently stored SAS data set to be replaced

C.

It allows users to access the same SAS data set concurrently

D.

It allows updates in place

Buy Now
Questions 22

Given the following SAS data set ONE:

ONE

CATEGORY AGE SALARY BONUS

----

M 28 200 .

M 25 100 10

F 18 100 50

F 25 200 10

The following SAS program is submitted:

proc sql;

create table two as

select category, salary + bonus as EARNINGS

from one; quit;

Which one of the following represents the data values stored in the data set TWO?

Options:

A.

CATEGORY EARNINGS

M 200

M 110

F 150

F 210

B.

CATEGORY EARNINGS

M .

M 110

F 150

F 210

C.

CATEGORY SALARY BONUS EARNINGS

M 200 . 200

M 100 10 110

F 100 50 150

F 200 10 210

D.

CATEGORY SALARY BONUS EARNINGS

M 200 . .

M 100 10 110

M 200 . 200

M 100 10 110

F 100 50 150

F 200 10 210

Buy Now
Questions 23

Which one of the following SAS procedures changes a permanent format of a variable stored in a SAS data set?

Options:

A.

MODIFY

B.

FORMAT

C.

CONTENTS

D.

DATASETS

Buy Now
Questions 24

The following SAS program is submitted:

;

%let development = ontime;

proc print data = sasuser.highway;

title "For &dept";

title2 "This project was completed &development";

run;

Which one of the following statements completes the above and resolves title1 to "For

research&development"?

Options:

A.

%let dept = %str(research&development);

B.

%let dept = %str(research%&development);

C.

%let dept = %nrstr(research&development);

D.

%let dept = %nrstr(research%&development);

Buy Now
Questions 25

The DICTIONARY.MACROS table stores information about which of the following?

Options:

A.

user defined macro variables only

B.

system defined macro variables only

C.

both user and system defined macro variables

D.

macros stored in the autocall macro library only

Buy Now
Questions 26

Given the SAS data set WORK.ONE:

The following SAS program is submitted;

Which result set would be generated?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 27

Which one of the following SAS integrity constraint types ensures that a specific set or range of values are the only values in a variable?

Options:

A.

CHECK

B.

UNIQUE

C.

FORMAT

D.

DISTINCT

Buy Now
Exam Code: A00-212
Exam Name: SAS Advanced Programming
Last Update: Apr 24, 2023
Questions: 184