SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address =...

206
Test-king.A00-211.246 questions Number : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 6.3 http://www.gratisexam.com/ SAS Institute A00-211 SAS Base Programming for SAS (r) 9 These are the most accurate study questions. Just focus on these and sit in your exam. My problem had solved because the products of it was very reliable. Finally, I got right questions for this exam and share with you guys. Best Wishes. It was one and only which took me towards the biggest success without finding too much issues or worries in any way. Modified few questions, fixed few spelling mistakes and types.

Transcript of SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address =...

Page 1: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Test-king.A00-211.246 questions

Number: A00-211Passing Score: 800Time Limit: 120 minFile Version: 6.3

http://www.gratisexam.com/

SAS Institute A00-211

SAS Base Programming for SAS (r) 9

These are the most accurate study questions. Just focus on these and sit in your exam.

My problem had solved because the products of it was very reliable.

Finally, I got right questions for this exam and share with you guys. Best Wishes.

It was one and only which took me towards the biggest success without finding too much issues or worries in any way.

Modified few questions, fixed few spelling mistakes and types.

Page 2: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?
Page 3: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Exam A

QUESTION 1The SAS data set SASUSER.HOUSES contains a variable PRICE which has been assigned a permanent label of "Asking Price". Which SAS program temporarilyreplaces the label "Asking Price" with the label "Sale Price" in the output?

A. proc print data = sasuser.houses; label price = "Sale Price"; run;B. proc print data = sasuser.houses label; label price "Sale Price"; run;C. proc print data = sasuser.houses label; label price = "Sale Price"; run;D. proc print data = sasuser.houses; price = "Sale Price"; run;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:real answer.

QUESTION 2The following SAS program is submitted:

data work.empsalary;

set work.people (in = inemp)

work.money (in = insal);

if insal and inemp;

run;

The SAS data set WORKPEOPLE has 5 observations, and the data set WORKMONEY has 7 observations. How many observations will the data setWORK.EMPSALARY contain?

A. 0B. 5C. 7D. 12

Correct Answer: A

Page 4: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Section: (none)Explanation

Explanation/Reference:

QUESTION 3The following SAS program is submitted:

data work.accounting;

set work.dept1 work.dept2;

jobcode = `FA1';

length jobcode $ 8;

run;

A character variable named JOBCODE is contained in both the WORK.DEPT1 and WORK.DEPT2 SAS data sets. The variable JOBCODE has a length of 5 in theWORK.DEPT1 data set and a length of 7 in the WORK.DEPT2 data set. What is the length of the variable JOBCODE in the output data set?

A. 3B. 5C. 7D. 8

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 4Given the SAS data set SASDATA TWO:

SASDATA TWO

XY

Page 5: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

----The following SAS program is submitted:

data sasuser.one two sasdata.three;

set sasdata two;

if x = 5 then output sasuser.one;

else output sasdata two;

run;

What is the result?

A. data set SASUSER.ONE has 5 observationsdata set SASUSER.TWO has 5 observationsdata set WORK.OTHER has 3 observations

B. data set SASUSER.ONE has 2 observationsdata set SASUSER.TWO has 2 observationsdata set WORK.OTHER has 1 observations

C. data set SASUSER.ONE has 2 observationsdata set SASUSER.TWO has 2 observationsdata set WORK.OTHER has 5 observations

D. No data sets are output.The DATA step fails execution due to syntax errors.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 5

Page 6: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

http://www.gratisexam.com/

The following SAS program is submitted:

footnote1 `Sales Report for Last Month';

footnote2 `Selected Products Only';

footnote3 `All Regions';

footnote4 `All Figures in Thousands of Dollars';

proc print data = sasuser.shoes;

footnote2 `All Products';

run;

Which footnote(s) is/are displayed in the report?

A. All ProductsB. Sales Report for Last Month All ProductsC. All Products All Regions All Figures in Thousands of DollarsD. Sales Report for Last Month All Products All Regions All Figures in Thousands of Dollars

Correct Answer: BSection: (none)Explanation

Explanation/Reference:appropriate answer.

QUESTION 6Given the raw data record DEPT:

Page 7: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

----|----10---|----20---|----30

Printing 750

The following SAS program is submitted:

data bonus;

infile `dept';

inputdept$ 1-11 number 13- 15;

<insert statement here>

run;

Which SAS statement completes the program and results in a value of `Printing750' for the DEPARTMENT variable?

A. department = dept II number;B. department = left(dept) II number;C. department = trim(dept) number;D. department=trim(dept)||put(number,3.);

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

QUESTION 7The following SAS program is submitted:

data one;

addressl = `214 London Way';

run;

data one;

Page 8: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

set one;

address = tranwrd(address1, `Way', `Drive'); run;

What are the length and value of the variable ADDRESS?

A. Length is 14; value is `214 London Dri'.B. Length is 14; value is `214 London Way'.C. Length is 16; value is `214 London Drive'.D. Length is 200; value is `214 London Drive'.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 8The following SAS program is submitted:

data work.sets;

do until (prod gt 6);

prod + 1;

end;

run;

What is the value of the variable PROD in the output data set?

A. 6B. 7C. 8D. (missing numeric)

Correct Answer: B

Page 9: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Section: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 9The following SAS program is submitted:

data work.passengers;

if OrigPassengers = . then'

OrigPassengers = 100;

TransPassengers = 100;

OrigPassengers = .;

TotalPassengers = sum (OrigPassengers, TransPassengers) +0;

run;

What is the value of the TOTALPASSENGERS variable in the output data set?

A. 0B. 100C. 200D. (missing numeric value)

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 10Given the SAS data set PRICES:

PRICES

Page 10: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Prodid priceproducttypesalesreturns

K1255.10NETWORK152

B132S 2.34HARDWARE30010

R18KY2 1.29SOFTWARE255

3KL8BY 6.37HARDWARE12515

DY65DW 5.60HARDWARE455

DGTY23 4.55HARDWARE672

The following SAS program is submitted:

data hware inter cheap;

set prices(keep = productype price);

if producttype = `HARDWARE' then output hware; else if producttype = `NETWORK' then output

inter; if price le 5.00;

run;

if producttype = `HARDWARE' then output hware; else if producttype = `NETWORK' then output

inter; if price le 5.00;

run;

How many observations does the HWARE data set contain?

A. 0B. 2C. 3D. 4

Correct Answer: D

Page 11: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Section: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 11The following SAS program is submitted:

How many observations are written to the WORK.SALES data set?

A. 0B. 1C. 5D. 60

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 12The following SAS program is submitted:

Page 12: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

The program fails execution due to syntax errors. What is the cause of the syntax error?

A. The variable MONTHSALES does not exist.B. An array cannot be referenced on a KEEP data set option.C. The KEEP= data set option should be (KEEP = MONTHSALES).D. The KEEP= data set option should be the statement KEEP MONTHSALES{12}.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 13Given the SAS data set EMPLOYEES:

EMPLOYEES

NAME SALARY

-------- ------------

Innis60000

Jolli50000

Ellis55000

Liu45000

The following SAS program is submitted:

Page 13: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

proc print data = employees; where name like `_i%';

run;

What is contained in the output?

A. Liu onlyB. Innis and Ellis onlyC. Innis, Ellis, and Liu onlyD. Innis, Jolli, Ellis, and Liu

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 14Given the SAS data set ONE:

ONE

ObsDte

-------------

109JAN2005

212JAN2005

The following SAS program is submitted:

data two;

set one;

day = <insert expression here>;

Page 14: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

format dte date9.;

run;

The data set TWO is created:

TWO

ObsDteDay

109JAN20051

12JAN20054

Which expression successfully completed the program and created the variable DAY?

A. day(dte)B. weekday(dte)C. dayofweek(dte)D. datdif(dte,'01jan2005'd,'act/act')

Correct Answer: BSection: (none)Explanation

Explanation/Reference:best suitable answer.

QUESTION 15Read the table:

Page 15: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Given the SAS data set SASUSER.HOUSES:

Obsstylebedroomsbathspricesqteetstreet

1CONDO21.5800501200MAIN

2CONDO32.5793501300ELM

3CONDO42.51271501400OAK

4CONDO22.01107001100FIFTH

5TWOSTORY43.01072502100SECOND

6TWOSTORY21.0556501600WEST

7TWOSTORY21.0692501450NORTH

6TWOSTORY42.5102950 2000SOUTH

The following SAS program is submitted:

proc report data = sasuser.houses nowd headline;

Page 16: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

column style price;

where price It 100000;

<insert DEFINE statement here>

define price / mean width = 9 format = dollar12.;

title;

run;

The following output is desired:

styleprice

-------------

CONDO$79,700

TWOSTORY$62550

Which DEFINE statement completes the program and produces the desired output?

A. define style / width = 9,B. define style / orderwidth = 9;C. define style / group width = 9;D. define style / display width = 9;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 16Given the SAS data set WORKAWARDS:

WORK.AWARDS

Page 17: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

FNAMEPOINTSMONTH

----------------------------------

Amy24

Amy17

Gerard33

Wang33

Wang112

Wang18

The following SAS program is submitted:

proc sort data = work.awards;

by descending fname points;

run;

How are the observations sorted?

A. ENAME POINTS MONTHWang33Wang112Wang18Gerard33Amy24Amy17

B. ENAME POINTS MONTHAmy24Amy17Gerard33Wang33Wang18Wang112

C. ENAME POINTS MONTH Wang33Wang18

Page 18: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Wang112Gerard33Amy24Amy17

D. ENAME POINTS MONTHWang112Wang18Wang33Gerard33Amy17Amy24

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 17The following SAS program is submitted:

libname temp `SAS data library';

data work.new;

set temp.jobs;

format newdate mmddw10.;

mdate = month(newdate);

ddate = weekday(newdate);

run;

proc print data = work.new; run;

The variable NEWDATE contains the SAS date value for April 15. 2005. What output is produced if April 15, 2005 falls on a Friday?

A. Obsnewdate mdate ddate

Page 19: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

104/15/2005 APR 6B. Obs newdate mdate ddate

104/15/2005 4 6C. Obs newdate mdate ddate

104/15/2005 APR 7D. Obs newdate mdate ddate

104/15/2005 4 7

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 18The contents of the raw data file PRODUCT are listed below:

--------10-------20-------30

24613 $25.31

The following SAS program is submitted:

data inventory;

infile 'product';

input idnum 5. @10 price;

run;

Which one of the following is the value of the PRICE variable?

A. 25.31B. $25.31C. . (missing numeric value)D. No value is stored as the program fails to execute due to errors.

Correct Answer: C

Page 20: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Section: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 19The value 110700 is stored in a numeric variable named SALARY.

Which FORMAT statement displays the value as $110,700.00 in a report?

A. format salary comma11.2;B. format salary dollar8.2;C. format salary dollar11.2;D. format salary comma8.2 dollar8.2;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 20Given the raw data file YEARAMT:

----|---10---|---20---|----30

1901 2

1905 1

1910 6

1925 .

1941 1

The following SAS program is submitted:

data coins;

Page 21: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

infile `yearamt';

input year quantity;

<insert statement(s) here>

run;

Which statement(s) completed the program and produced a non-missing value for the variable

TOTQUANTITY in the final observation of the output data set?

A. totquantity + quantity;B. totquantity = sum(totquantity + quantity);C. retain totquantity; totquantity = totquantity + quantity;D. retain totquantity0; totquantity = totquantity + quantity;

Correct Answer: ASection: (none)Explanation

Explanation/Reference:definite answer.

QUESTION 21Given the SAS data set EMPLOYEE INFO:

EMPLOYEE_INFO

IDNumber

Expenses100.00133.15234.34111.12

The following SAS program is submitted:

proc sort data = employee_info;

Page 22: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

<insert BY statement here>

run;

Which BY statement completes the program and sorts the data sequentially by ascending expense values within each ascending IDNUMBER value?

A. by Expenses IDNumber;B. by IDNumber Expenses;C. by ascending Expenses IDNumber;D. by ascending IDNumber ascending Expenses;

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 22The following SAS program is submitted:

proc format

value score 1 - 50 = `Fail'

51 - 100 = `Pass';

run;

proc report data = work.courses nowd;

column exam;

define exam / display format = score.;

run;

The variable EXAM has a value of 50.5.

How will the EXAM variable value be displayed in the REPORT procedure output?

Page 23: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. FailB. PassC. 50.5D. . (missing numeric value)

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 23What is the purpose or the MISSOVER option on the INFILE statement?

A. It prevents SAS from loading a new record when the end of the current record is reached.B. It enables SAS to scan the input data records until the character string that is specified in the @`character-string' expression is round.C. It enables SAS to continue to read the next input data record if it does not find values in the current input tine for all the variables in the statement.D. It causes the DATA step to stop processing if an INPUT statement reaches the end of the current record without finding values for all variables in the statement.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 24The following SAS program is submitted:

data work.test;

set work.staff (keep = jansales febsales marsales);

array diff_sales{3} difsales1 - difsales3;

array monthly{3} jansales febsales marsales;

run;

Page 24: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

What new variables are created?

A. JANSALES, FEBSALES and MARSALESB. MONTHLY1, MONTHLY2 and MONTHLY3C. DIFSALES1, DIFSALES2 and DIFSALES3D. DIFF_SALES1, DIFF_SALES2 and DIFF_SALES3

Correct Answer: CSection: (none)Explanation

Explanation/Reference:good answer.

QUESTION 25What describes the SAS automatic _ERROR_ variable?

A. The _ERROR_ variable contains the values `TRUE' or `FALSE.'B. The _ERROR variable maintains a count of the number of data errors.C. The _ERROR_ variable can be used in expressions or calculations in the DATA step.D. The ERROR_variable contains the number or the observation that caused the error.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 26Given the following raw data record:

07Jan2005

Which INFORMAT reads this raw data and stores it as a SAS date value?

A. dmy9.B. date9.

Page 25: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

C. ddMMMyy9.D. ddmmmyyyy9.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 27Which statement correctly computes the average of four numerical values?

A. average = mean(num1, num4);B. average = mean(num1 - num4);C. average = mean(ofnum1 - num4)D. average = mean(num1 num2 num3 num4);

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 28Read the table

Page 26: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

The following SAS program is submitted:

proc freq data = sales;

<insert TABLES statement here>

run;

The following output is created by the FREQUENCY procedure:

Page 27: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which TABLES statement(s) completed the program and produced the output?

A. tables region product;B. tables region * product;C. tables product * region;D. tables product; tables region;

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 29The following SAS program is submitted:

data one;

date = `04juI2005'd;

Page 28: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

format date weekdate.; run;

proc print data = one; run;

What output is generated?

A. Obs date1 Monday, July 4, 2005

B. Obs date1 July4, 2005

C. Obs date1 04Jul2005

D. Obs date1 Monday, 07/04/2005

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 30The following SAS program is submitted:

data test;

set sasuser.employees;

if 2 le years_service le 10 then

amount = 1000;

else amount = 0;

amount_per_year = years_service / amount

run;

What is the value of the variable AMOUNT_PER_YEAR if an employee has been with the company for one year?

Page 29: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. 0B. 0.001C. 1D. . (missing numeric value)

Correct Answer: DSection: (none)Explanation

Explanation/Reference:accurate answer.

QUESTION 31Given the SAS data set PERM.STUDENTS:

PERM.STUDENTS NAMEAGE

---------------- Alfred14

Alice13

Barbara13

Carol14

The following SAS program is submitted:

libname perm `SAS data library';

data students;

set perm.students;

file `file specification';

put name $ age;

<insert statement here>

run;

Page 30: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

The following double-spaced file is desired as output

Alfred 14

Alice 13

Barbara 13

Carol 14

Which statement completes the program and creates the desired file?

A. putB. put/;C. double;D. put _null_;

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 32The following SAS program is submitted:

data work.total;

set work.salary(keep = department wagerate);

by department;

if first.department

then payroll = 0;

payroll + wagerate;

if last.department;

Page 31: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

run;

The SAS data set named WORKSALARY contains 10 observations for each department, and is currently ordered by DEPARTMENT.

Which statement is true?

A. The BY statement in the DATA step causes a syntax error.B. The statement payroll + wagerate; in the DATA step causes a syntax error.C. The values of the variable PAYROLL represent the total for each department in the WORK.SALARY data set.D. The values of the variable PAYROLL represent a total for all values of WAGERATE in the WORKSALARY data set.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 33Given the contents of the raw data file EMPLOYEE:

----|----10----|----20----|----30

Alan

19/2/2004

ACCT

Rob

22/5/2004

MKTG

MaryJane

14/3/2004

EDUC

Page 32: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

The following SAS program is submitted:

data emps;

infile `employee';

input@1 name$

@15 date <insert INFORMAT here>

@25 department$;

run;

Which INFORMAT correctly completes the program?

A. date9.B. ddmmyyyy9.C. ddmmyy10.D. ddmmyyyy10.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 34The following SAS program is submitted:

data test;

infile `file specification';

input name $ amount@@;

run;

Which of the following is true?

Page 33: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Two @@ together are the same as one c.B. Two @@ hold the data records until the bottom of the DATA step.C. Two @@ hold the raw data record across iterations of the DATA step.D. Two @@ are invalid syntax and will cause the program to fail to execute.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 35Given the SAS data set QTR 1_REVENUE:

destinationrevenue

YYZ53634

FRA62129

FRA75962

RDU76254

YYZ82174

The following SAS program is submitted:

proc sort data = qtr1_revenue;

by destination descending revenue; run;

What is the first observation in the output data set?

A. destination revenueFRA 62129

B. destination revenueFRA 75962

C. destination revenue

Page 34: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

YYZ 53634D. destination revenue

YYZ 82174

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 36The following SAS program is submitted:

data numrecords;

infile `file specification';

input@1 patient $15.

relative$ 16-26@;

if relative = `children' then

input @54 diagnosis $15. @;

else if relative = `parents' then

input @28 doctor $15.

clinic $ 44-53

@54 diagnosis $15. @;

input age;

run;

How many raw data records are read during each iteration of the DATA step execution?

A. 1

Page 35: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

B. 2C. 3D. 4

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 37Given the SAS data set ONE:

Given the SAS data set WORK.ONE:

The following SAS program is submitted:

Which report is produced?

Page 36: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Option AB. Option BC. Option CD. Option D

Correct Answer: B

Page 37: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Section: (none)Explanation

Explanation/Reference:valid answer.

QUESTION 38After a SAS program is submitted, the following is written to the SAS log:

105 data january;

106 set allmonths(keep = product month num_sold cost);

107 if month = `Jan' then output january;

108 sales = cost * num_sold;

109 keep = product sales;

------ERROR 22-322: Syntax error, expecting one of the following:!,

!!, &, *,**, +, -,/, <,< =, <>, =, >, ><, >=,

AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL,

NOTIN, OR,^=,|,II,

110 run;

What changes should be made to the KEEP statement to correct the errors in the LOG?

A. keep product sales;B. keep product, sales;C. keep = product, sales;D. keep = (product sales);

Correct Answer: ASection: (none)Explanation

Page 38: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:Explanation:

QUESTION 39The following SAS program is submitted:

data combine;

prefix='505';

middle='6465 `;

end='09090';

<insert statement here>;

run;

Which statement successfully completes the program so that TOTAL has a value of 505-6465-

09090?

A. total = cat('-', prefix, middle, end);B. total = catx('-', prefix, middle, end);C. total = prefix !!'-'!! middle ``!!'-'!! end;D. total = prefix!!'-'!! left(middle)!!'-'!! end;

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 40The following SAS program is submitted:

<insert ODS statement here>

proc means data = sasuser.shoes;

Page 39: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

where product in (`Sandal' , `Slipper' , `Boot');

run;

<insert ODS statement here>

Which ODS statements complete the program and send the report to an HTML file?

A. ods html = `sales.html'; ods html close;B. ods file = `sales.html'; ods file close;C. ods file html = `sales.html'; ods file close;D. ods html file = `sales.html'; ods html close;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 41Given the raw data file AMOUNT:

----I---- 10---I----20---I----30

$1,234

The following SAS program is submitted:

data test;

infile `amount';

input@1 salary 6.;

if_error_then description = `Problems';

else description = `No Problems';

run;

Page 40: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

What is the result?

A. The value of the DESCRIPTION variable is No Probl.B. The value of the DESCRIPTION variable is Problems.C. The value of the DESCRIPTION variable is No Problems.D. The value of the DESCRIPTION variable can not be determined.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 42Given the SAS data set PEPM.STUDENTS:

PERM.STUDENTS NAME AGE

--------- ------ Alfred 14

Alice13

Barbara13

Carol14

The following SAS program is submitted:

libname perm `SAS data library';

data students;

set perm.students;

file `file specification';

put name $15. @5 age 2.;

run;

Page 41: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

What is written to the output raw data file?

A. ----I----10---I----20---I----30Alfred 14Alice 13Barbara 13Carol 14

B. ----I----10---I----20---I----30Alfr14Alic13Barb13aCarol 4

C. ----I----10---I----20---I----30Alfr14edAlic130Barb13araCaro141

D. ----I----10---I----20---I----30Alfred14Alice13Barbara13Carol14

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 43The following SAS program is submitted:

data work.total;

set work.salary(keep = department wagerate);

by department;

if first.department

Page 42: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

then payroll = 0;

payroll + wagerate;

if last.department

run;

The SAS data set WORK.SALARY, currently ordered by DEPARTMENT, contains 100 observations for each of 5 departments.

What is the result?

A. The WORK.TOTAL data set contains 5 observations.B. The WORKTDTAL data set contains 100 observations.C. The WORKTOTAL data set contains 500 observations.D. The program fails to execute due to errors.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:updated answer.

QUESTION 44The following SAS program is submitted;

data combine;

country = `Italy, Russia, ireland';

found = find(country, `i');

run;

What is the value of the variable FOUND in the output data set?

A. 1B. 12C. Italy

Page 43: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

D. Russia

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 45Given the following code:

proc print data=SASHELP.CLASS(firstobs=5 obs=15);

where Sex='M';

run;

How many observations will be displayed?

A. 11B. 15C. 10 or fewerD. 11 or fewer

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 46The SAS data set named WORK.SALARY contains 10 observations for each department, and is currently ordered by Department. The following SAS program issubmitted:

Page 44: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which statement is true?

A. The by statement in the DATA step causes a syntax error.B. The statement Payroll+(MonthlyWageRate*12); in the data step causes a syntax error.C. The values of the variable Payroll represent the monthly total for each department in the WORK.SALARY data set.D. The values of the variable Payroll represent a monthly total for all values of WAGERATE in the WORK.SALARY data set.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 47Given the contents of the raw data file TYPECOLOR.DAT:

The following SAS program is submitted:

What are the values of the variables Type and Color?

Page 45: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Type=daisy, Color=yellowB. Type=daisy, Color=wC. Type=daisy, Color=daisyyellowD. Type=daisy, Color=

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 48The following SAS program is submitted:

What new variables are created?

A. Difcount1, Difcount2 and Difcount3B. Diff1, Diff2 and Diff3C. Janpt, Febpt, and MarptD. Patients1, Patients2 and Patients3

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 49Given the raw data record in the file phone.txt:

Page 46: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which SAS statement completes the program and results in a value of "James Stevens" for the

variableFullName?

A. FullName=CATX(' ',EmpFName,EmpLName);B. FullName=CAT(' ',EmpFName,EmpLName);C. FullName=EmpFName!!EmpLName;D. FullName=EmpFName + EmpLName;

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 50Which statement specifies that records 1 through 10 are to be read from the raw data file customer.txt?

A. infile 'customer.txt' 1-10;B. input 'customer.txt' stop@10;C. infile 'customer.txt' obs=10;D. input 'customer.txt' stop=10;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

Page 47: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation:

QUESTION 51The following SAS program is submitted:

data WORK.ONE;

Text='Australia, US, Denmark';

Pos=find(Text,'US','i',5);

run;

What value will SAS assign to Pos?

A. 0B. 1C. 2D. 12

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 52Given the following raw data records in DATAFILE.TXT:

Page 48: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which output is correct based on the submitted program?

Page 49: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Option AB. Option BC. Option CD. Option D

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 53The SAS data set WORK.ONE contains a numeric variable named Num ana character variable named Char:

WORK.ONE

Num Char

------ ------

1 23

3 23

1 77

The following SAS program is submitted:

proc print data=WORK.ONE;

where Num='1';

run;

What is output?

A. Num Char--- ----1 23

Page 50: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

B. Num Char--- ----1 231 77

C. Num Char--- ----1 233 231 77

D. No output is generated.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:selected option is true.

QUESTION 54The following output is created by the FREQUENCY procedure:

Page 51: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which TABLES statement was used to completed the following program that produced the output?

proc freq data=sales;

<_insert_code_>

run;

A. tables region product;

Page 52: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

B. tables region,productC. tables region/product;D. tables region*product;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 55The following SAS program is submitted:

<_insert_ods_code_>

proc means data=SASUSER.SHOES;

where Product in ('Sandal' , 'Slipper' , 'Boot');

run;

<_insert_ods_code_>

Which ODS statements inserted, respectively, in the two location above creates a report stored in an html file?

A. ods html open='sales.html';ods html close;

B. ods file='sales.html' / html;ods file close;

C. ods html file='sales.html';ods html close;

D. ods file html='sales.html';ods file close;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

Page 53: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation:

QUESTION 56Given the following data step:

After data step execution, what will data set WORK.GEO contain?

Page 54: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Option AB. Option BC. Option CD. Option D

Correct Answer: ASection: (none)Explanation

Page 55: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:Explanation:

QUESTION 57Which of the following choices is an unacceptable ODS destination for producing output that can be viewed in Microsoft Excel?

A. MSOFFICE2KB. EXCELXPC. CSVALLD. WINXP

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 58Which statement describes a characteristic of the SAS automatic variable _ERROR_?

A. The _ERROR_ variable maintains a count of the number of data errors in a DATA step.B. The _ERROR_ variable is added to the program data vector and becomes part of the data set being created.C. The _ERROR_ variable can be used in expressions in the DATA step.D. The _ERROR_ variable contains the number of the observation that caused the data error.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 59The Excel workbook REGIONS.XLS contains the following four worksheets:

EAST

WEST

Page 56: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

NORTH

SOUTH

The following program is submitted:

libname MYXLS 'regions.xls';

Which PROC PRINT step correctly displays the NORTH worksheet?

A. proc print data=MYXLS.NORTH;run;

B. proc print data=MYXLS.NORTH$;run;

C. proc print data=MYXLS.'NORTH'e;run;

D. proc print data=MYXLS.'NORTH$'n;run;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 60Given the data set WORK.EMPDATA:

Which one of the following where statements would display observations with job titles containing the word 'Manager'?

A. where substr(Job_Title,(length(Job_Title)-6))='Manager';

Page 57: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

B. where upcase(scan(Job_Title,-1,' '))='MANAGER';C. where Job_Title='% Manager ';D. where Job_Title like '%Manager%';

Correct Answer: DSection: (none)Explanation

Explanation/Reference:best answer.

QUESTION 61The following SAS program is submitted:

data WORK.DATE_INFO;

X="01Jan1960" D;

run;

What variable X contains what value?

A. the numeric value 0B. the character value "01Jan1960"C. the date value 01011960D. the code contains a syntax error and does not execute.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 62Given the SAS data set WORK.EMP_NAME:

Page 58: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Given the SAS data set WORK.EMP_DEPT:

The following program is submitted:

How many observations are in data set WORK.ALL after submitting the program?

A. 1B. 2C. 3D. 5

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 63The following program is submitted:

proc contents data=_all_;

Page 59: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

run;

Which statement best describes the output from the submitted program?

A. The output contains only a list of the SAS data sets that are contained in the WORK library.B. The output displays only the contents of the SAS data sets that are contained in the WORK library.C. The output displays only the variables in the SAS data sets that are contained in the WORK library.D. The output contains a list of the SAS data sets that are contained in the WORK library and displays the contents of those data sets.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 64The following SAS program is submitted:

How will the Exam variable value be displayed in the FREQ procedure output?

A. FailB. PassC. 50.5D. . (missing numeric value)

Correct Answer: C

Page 60: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Section: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 65The following program is submitted:

proc sort data=SASUSER.PROJECTS out=PSORT;

by Code descending Date Cost;

run;

Which of the following is true concerning the submitted program?

A. The descending option applies to the variable Code.B. The variable Code is sorted by ascending order.C. The PSORT data set is stored in the SASUSER library.D. The descending option applies to the Date and Cost variables.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:right answer.

QUESTION 66The following code was modified to generate the results further below:

proc format;

value agegrp

low-12 ='Pre-Teen'

13-high = 'Teen';

run;

Page 61: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

proc means data=SASHELP.CLASS;

var Height;

class Sex Age;

format Age agegrp.;

run;

The following results were generated to display only specific statistics and limit the decimals with the modification: Which statement below was modified or added togenerate the results above:

A. var Height / nobs min max mean maxdec=1;B. proc means data=SASHELP.CLASS maxdec=1 ;C. proc means data=SASHELP.CLASS min max mean maxdec=1;D. output nobs min max mean maxdec=1;

Correct Answer: CSection: (none)Explanation

Page 62: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:Explanation:

QUESTION 67The following SAS program is submitted:

What types of variables are DayOfMonth, MonthOfYear, and Year?

A. DayOfMonth, Year, and MonthOfYear are character.B. DayOfMonth, Year, and MonthOfYear are numeric.C. DayOfMonth and Year are numeric. MonthOfYear is character.D. DayOfMonth, Year, and MonthOfYear are date values.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 68The following SAS program is submitted:

data ONE TWO SASUSER.TWO

set SASUSER.ONE;

run;

Assuming that SASUSER.ONE exists, how many temporary and permanent SAS data sets are created?

A. 2 temporary and 1 permanent SAS data sets are createdB. 3 temporary and 2 permanent SAS data sets are createdC. 2 temporary and 2 permanent SAS data sets are created

Page 63: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

D. there is an error and no new data sets are created

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 69Which statement is true concerning the SAS automatic variable _ERROR_?

A. It cannot be used in an if/then condition.B. It cannot be used in an assignment statement.C. It can be put into a keep statement or keep= option.D. It is automatically dropped.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 70Given the SAS data set WORK.TEMPS:

The following program is submitted:

Page 64: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which output is correct?

Page 65: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?
Page 66: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Option AB. Option BC. Option CD. Option D

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 71The following SAS program is submitted:

data WORK.ACCOUNTING;

set WORK.DEPARTMENT;

label Jobcode='Job Description';

run;

Which statement is true about the output dataset?

A. The label of the variable Jobcode is Job (only the first word).B. The label of the variable Jobcode is Job Desc (only the first 8 characters).C. The label of the variable Jobcode is Job Description.D. The program fails to execute due to errors. Labels must be defined in a PROC step.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 72Which is a valid LIBNAME statement?

Page 67: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. libname "_SAS_data_library_location_";B. sasdata libname "_SAS_data_library_location_";C. libname sasdata "_SAS_data_library_location_";D. libname sasdata sas "_SAS_data_library_location_";

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 73The following output is created by the FREQUENCY procedure:

Page 68: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which TABLES option(s) would be used to eliminate the row and column counts and just see the frequencies and percents?

A. norowcount nocolcountB. freq percentC. norow nocolD. nocounts

Correct Answer: C

Page 69: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Section: (none)Explanation

Explanation/Reference:fine answer.

QUESTION 74The Excel workbook QTR1.XLS contains the following three worksheets:

JAN

FEB

MAR

Which statement correctly assigns a library reference to the Excel workbook?

A. libname qtrdata 'qtr1.xls';B. libname 'qtr1.xls' sheets=3;C. libname jan feb mar 'qtr1.xls';D. libname mydata 'qtr1.xls' WORK.heets=(jan,feb,mar);

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

Topic 2, Volume B

QUESTION 75The following SAS program is submitted:

Page 70: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

What is produced as output?

A. A file named test.cvs that can only be opened in Excel.B. A text file named test.cvs that can be opened in Excel or in any text editor.C. A text file named test.cvs that can only be opened in a text editor.D. A file named test.cvs that can only be opened by SAS.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 76You're attempting to read a raw data file and you see the following messages displayed in the SAS Log:

What does it mean?

A. A compiler error, triggered by an invalid character for the variable Salary.B. An execution error, triggered by an invalid character for the variable Salary.C. The 1st of potentially many errors, this one occurring on the 4th observation.D. An error on the INPUT statement specification for reading the variable Salary.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

Page 71: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

QUESTION 77The following SAS program is submitted:

What will the data set WORK.TEST contain?

Page 72: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Option AB. Option BC. Option CD. Option D

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 78Given the SAS data set WORK.ONE:

Page 73: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

And the SAS data set WORK.TWO:

The following program is submitted:

What is the first observation in the SAS data set WORK.BOTH?

Page 74: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Option AB. Option BC. Option CD. Option D

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 79The following SAS program is submitted:

data WORK.DATE_INFO;

Day="01" ;

Page 75: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Yr=1960 ;

X=mdy(Day,01,Yr) ;

run;

What is the value of the variable X?

A. the numeric value 0B. the character value "01011960"C. a missing value due to syntax errorsD. the step will not compile because of the character argument in the mdy function.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:absolute answer.

QUESTION 80The following SAS program is submitted:

data WORK.AUTHORS;

array Favorites{3} $ 8 ('Shakespeare','Hemingway','McCaffrey');

run;

What is the value of the second variable in the dataset WORK.AUTHORS?

A. HemingwayB. HemingwaC. ' ' (a missing value)D. The program contains errors. No variables are created.

Correct Answer: BSection: (none)Explanation

Page 76: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:Explanation:

QUESTION 81The SAS data set Fed.Banks contains a variable Open_Date which has been assigned a permanent label of "Open Date". Which SAS program temporarilyreplaces the label "Open Date" with the label "Starting Date" in the output?

A. proc print data=SASUSER.HOUSES label;label Open_Date "Starting Date";run;

B. proc print data=SASUSER.HOUSES label;label Open_Date="Starting Date";run;

C. proc print data=SASUSER.HOUSES;label Open_Date="Starting Date";run;

D. proc print data=SASUSER.HOUSES;Open_Date="Starting Date";run;

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 82Consider the following data step:

In filtering the values of the variable X in data set WORK.OLD, what value new value would be assigned to X if its original value was a missing value?

Page 77: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. X would get a value of 1.B. X would get a value of 3.C. X would retain its original value of missing.D. This step does not run because of syntax errors.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 83The following program is submitted:

Why does the program fail?

A. The PAGENO option is invalid in the OPTIONS statement.B. The RUN statement is missing after the FORMAT procedure.C. The format name contains a period in the VALUE statement.D. The LABEL option is missing from the PROC PRINT statement.

Correct Answer: C

Page 78: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Section: (none)Explanation

Explanation/Reference:sophisticated answer.

QUESTION 84Given the SAS data set WORK.PRODUCTS:

How many observations does the WORK.OUTDOOR data set contain?

A. 1B. 2C. 3D. 6

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 85

Page 79: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Given the following raw data records in TEXTFILE.TXT:

The following output is desired:

Which SAS program correctly produces the desired output?

Page 80: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Option A

Page 81: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

B. Option BC. Option CD. Option D

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 86Given the SAS data set WORK.PRODUCTS:

How many variables does the WORK.REVENUE data set contain?

A. 2B. 3C. 4D. 6

Correct Answer: ASection: (none)Explanation

Page 82: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:Explanation:

QUESTION 87The following SAS program is submitted:

What is the initial value of the variable Total in the following program?

A. 0B. MissingC. The value of the first observations WagerateD. Cannot be determined from the information given

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 88Consider the following data step:

data WORK.NEW;

set WORK.OLD;

Count+1;

run;

The varaible Count is created using a sum statement. Which statement regarding this variable is true?

Page 83: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. It is assigned a value 0 when the data step begins execution.B. It is assigned a value of missing when the data step begins execution.C. It is assigned a value 0 at compile time.D. It is assigned a value of missing at compile time.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:general answer.

QUESTION 89The data set WORK.REALESTATE has the variable LocalFee with a format of 9. and a variable

CountryFee with a format of 7.;

The following SAS program is submitted:

What are the formats of the variables LOCALFEE and COUNTRYFEE in the output dataset?

A. LocalFee has format of 9. and CountryFee has a format of 7.B. LocalFee has format of 9. and CountryFee has a format of percent7.2C. Both LocalFee and CountryFee have a format of percent7.2D. The data step fails execution; there is no format for LocalFee.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

Page 84: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

QUESTION 90Given the following raw data records:

The following output is desired:

Which SAS program correctly reads in the raw data?

Page 85: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Option AB. Option BC. Option CD. Option D

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 91Which of the following programs correctly invokes the DATA Step Debugger?

Page 86: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Option AB. Option BC. Option CD. Option D

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

Page 87: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

QUESTION 92Which step sorts the observations of a permanent SAS data set by two variables and stores the sorted observations in a temporary SAS data set?

A. proc sort out=EMPLOYEES data=EMPSORT;by Lname and Fname;run;

B. proc sort data=SASUSER.EMPLOYEES out=EMPSORT;by Lname Fname;run;

C. proc sort out=SASUSER.EMPLOYEES data=WORK.EMPSORT; by Lname Fname;run;

D. proc sort data=SASUSER.EMPLOYEES out=SASUSER.EMPSORT; by Lname and Fname;run;

Correct Answer: BSection: (none)Explanation

Explanation/Reference:okay with the answer.

QUESTION 93Consider the data step:

Which of the following assignment statements for variable group are functionally equivalent to the original statement used in the above data step?

A. if Age not in(15,16) then Group=1; else Group=2;B. if (Age NE 16) or (Age NE 15) then Group=1; else Group=2;C. where Age not between 15 and 16 then Group=1; else Group=2;D. both A or C will work.

Correct Answer: ASection: (none)

Page 88: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation

Explanation/Reference:Explanation:

QUESTION 94The following SAS program is submitted:

data WORK.ACCOUNTING;

set WORK.DEPARTMENT;

length EmpId $6;

CharEmpid=EmpId;

run;

If data set WORK.DEPARTMENT has a numeric variable EmpId. Which statement is true about the output dataset?

A. The type of the variable CharEmpid is numeric.B. The type of the variable CharEmpid is unknown.C. The type of the variable CharEmpid is character.D. The program fails to execute due to errors.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 95The following SAS program is submitted:

data WORK.OUTDS;

do until(Prod GT 6);

Prod + 1;

Page 89: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

end;

run;

What is the value of the variable Prod in the output data set?

A. . (missing)B. 6C. 7D. Undetermined, infinite loop.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 96The following SAS program is submitted:

The SAS data set WORK.SALARY is currently ordered by Gender within Department. Which inserted code will accumulate subtotals for each Gender withinDepartment?

A. GenderB. DepartmentC. Gender DepartmentD. Department Gender

Correct Answer: ASection: (none)Explanation

Page 90: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:Explanation:

QUESTION 97Which step displays a listing of all the data sets in the WORK library?

A. proc contents lib=WORKrun;

B. proc contents lib=WORK.all;run;

C. proc contents data=WORK._all_;run;

D. proc contents data=WORK _ALL_;run;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

http://www.gratisexam.com/

QUESTION 98Given the SAS data set WORK.ORDERS:

Page 91: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

The variable order_id is numeric; customer is character; and shipped is numeric, contains a SAS date value, and is shown with the DATE9. format. A programmerwould like to create a new variable, ship_note, that shows a character value with the order_id, shipped date, and customer name. For example, given the firstobservation ship_note would have the value "Order 9341 shipped on 02FEB2009 to Josh Martin".

Which of the following statement will correctly create the value and assign it to ship_note?

A. ship_note=catx(' ','Order',order_id,'shipped on',input(shipped,date9.),'to',customer);B. ship_note=catx(' ','Order',order_id,'shipped on',char(shipped,date9.),'to',customer);C. ship_note=catx(' ','Order',order_id,'shipped on',transwrd(shipped,date9.),'to',customer);D. ship_note=catx(' ','Order',order_id,'shipped on',put(shipped,date9.),'to',customer);

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 99The following SAS program is submitted:

options pageno = 1;

proc print data = sasuser.houses;

run;

proc means data = sasuser.shoes;

run;

The report created by the PRINT procedure step generates 5 pages of output.

What is the page number on the first page of the report generated by the MEANS procedure step?

A. 1B. 2C. 5D. 6

Page 92: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Correct Answer: DSection: (none)Explanation

Explanation/Reference:real answer.

QUESTION 100Which one of the following SAS system options displays the time on a report?

A. TIMEB. DATEC. TODAYD. DATETIME

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

QUESTION 101Which one of the following SAS system options prevents the page number from appearing on a report?

A. NONUMB. NOPAGEC. NONUMBERD. NOPAGENUM

Correct Answer: CSection: (none)Explanation

Explanation/Reference:best answer.

QUESTION 102

Page 93: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

The following SAS program is submitted:

data work.new;

length word $7;

amount = 7;

if amount = 5 then word = 'CAT';

else if amount = 7 then word = 'DOG';

else word = 'NONE!!!';

amount = 5;

run;

Which one of the following represents the values of the AMOUNT and WORD variables?

A. amount word5 DOG

B. amount word5 CAT

C. amount word7 DOG

D. amount word7 ' ' (missing character value)

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 103The following SAS program is submitted:

proc means data = sasuser.houses std mean max;

Page 94: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

var sqfeet;

run;

Which one of the following is needed to display the standard deviation with only two decimal places?

A. Add the option MAXDEC = 2 to the MEANS procedure statement.B. Add the statement MAXDEC = 7.2; in the MEANS procedure step.C. Add the statement FORMAT STD 7.2; in the MEANS procedure step.D. Add the option FORMAT = 7.2 option to the MEANS procedure statement.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 104Unless specified, which variables and data values are used to calculate statistics in the MEANS procedure?

A. non-missing numeric variable values onlyB. missing numeric variable values and non-missing numeric variable values onlyC. non-missing character variables and non-missing numeric variable values onlyD. missing character variables, non-missing character variables, missing numeric variable values, and non-missing numeric variable values

Correct Answer: ASection: (none)Explanation

Explanation/Reference:accurate answer.

QUESTION 105The following SAS program is submitted:

proc sort data = sasuser.houses out = houses;

by style;

Page 95: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

run;

proc print data = houses;

run;

Click on the Exhibit button to view the report produced.

style bedrooms baths price

CONDO 2 1.5 80050

3 2.5 79350

4 2.5 127150

2 2.0 110700

RANCH 2 1.0 64000

3 3.0 86650

3 1.0 89100

1 1.0 34550

SPLIT 1 1.0 65850

4 3.0 94450

3 1.5 73650

TWOSTORY 4 3.0 107250

2 1.0 55850

2 1.0 69250

4 2.5 102950

Which of the following SAS statement(s) create(s) the report?

Page 96: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. id style;B. id style;

var style bedrooms baths price;C. id style;

by style;var bedrooms baths price;

D. id style;by style;var style bedrooms baths price;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 106A realtor has two customers. One customer wants to view a list of homes selling for less than $60,000. The other customer wants to view a list of homes selling forgreater than $100,000.

Assuming the PRICE variable is numeric, which one of the following PRINT procedure steps will select all desired observations?

A. proc print data = sasuser.houses;where price lt 60000;where price gt 100000;run;

B. proc print data = sasuser.houses;where price lt 60000 or price gt 100000;run;

C. proc print data = sasuser.houses;where price lt 60000 and price gt 100000;run;

D. proc print data = sasuser.houses;where price lt 60000 or where price gt 100000;run;

Correct Answer: BSection: (none)Explanation

Page 97: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:Explanation:

QUESTION 107The SAS data set BANKS is listed below:

BANKS

name rate

FirstCapital 0.0718

DirectBank 0.0721

VirtualDirect 0.0728

The following SAS program is submitted:

data newbank;

do year = 1 to 3;

set banks;

capital + 5000;

end;

run;

Which one of the following represents how many observations and variables will exist in the SAS data set NEWBANK?

A. 0 observations and 0 variablesB. 1 observations and 4 variablesC. 3 observations and 3 variablesD. 9 observations and 2 variables

Correct Answer: BSection: (none)Explanation

Page 98: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:choice of answer is appropriate.

QUESTION 108The following SAS program is submitted:

data work.clients;

calls = 6;

do while (calls le 6);

calls + 1;

end;

run;

Which one of the following is the value of the variable CALLS in the output data set?

A. 4B. 5C. 6D. 7

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 109The following SAS program is submitted:

data work.pieces;

do while (n lt 6);

n + 1;

Page 99: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

end;

run;

Which one of the following is the value of the variable N in the output data set?

A. 4B. 5C. 6D. 7

Correct Answer: CSection: (none)Explanation

Explanation/Reference:correct answer.

QUESTION 110A raw data record is listed below:

--------10-------20-------30

1999/10/25

The following SAS program is submitted:

data projectduration;

infile 'file-specification';

input date $ 1 - 10;

run;

Which one of the following statements completes the program above and computes the duration of the project in days as of today's date?

A. duration = today( ) - put(date,ddmmyy10.);B. duration = today( ) - put(date,yymmdd10.);

Page 100: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

C. duration = today( ) - input(date,ddmmyy10.);D. duration = today( ) - input(date,yymmdd10.);

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 111The following SAS program is submitted:

data work.month;

date = put('13mar2000'd,ddmmyy10.);

run;

Which one of the following represents the type and length of the variable DATE in the output data set?

A. numeric, 8 bytesB. numeric, 10 bytesC. character, 8 bytesD. character, 10 bytes

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

QUESTION 112The following SAS program is submitted:

data work.month;

date = input('13mar2000',date9.);

Page 101: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

run;

Which one of the following represents the type and length of the variable DATE in the output data set?

A. numeric, 8 bytesB. numeric, 9 bytesC. character, 8 bytesD. character, 9 bytes

Correct Answer: ASection: (none)Explanation

Explanation/Reference:definite answer.

QUESTION 113The following SAS program is submitted:

data work.products;

Product_Number = 5461;

Item = '1001';

Item_Reference = Item'/'Product_Number;

run;

Which one of the following is the value of the variable ITEM_REFERENCE in the output data set?

A. 1001/5461B. 1001/ 5461C. . (missing numeric value)D. The value can not be determined as the program fails to execute due to errors.

Correct Answer: DSection: (none)Explanation

Page 102: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:choice of answer is right.

QUESTION 114The following SAS program is submitted:

data work.retail;

cost = '20000';

total = .10 * cost;

run;

Which one of the following is the value of the variable TOTAL in the output data set?

A. 2000B. '2000'C. . (missing numeric value)D. ' ' (missing character value)

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 115The following SAS program is submitted:

data work.test;

Author = 'Agatha Christie';

First = substr(scan(author,1,' ,'),1,1);

run;

Which one of the following is the length of the variable FIRST in the output data set?

Page 103: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. 1B. 6C. 15D. 200

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 116The following SAS program is submitted:

data work.test;

Author = 'Christie, Agatha';

First = substr(scan(author,2,' ,'),1,1);

run;

Which one of the following is the value of the variable FIRST in the output data set?

A. AB. CC. AgathaD. ' ' (missing character value)

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 117The following SAS program is submitted:

Page 104: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

data work.test;

Title = 'A Tale of Two Cities, Charles J. Dickens';

Word = scan(title,3,' ,');

run;

Which one of the following is the value of the variable WORD in the output data set?

A. TB. ofC. DickensD. ' ' (missing character value)

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 118The following SAS program is submitted:

data work.test;

First = 'Ipswich, England';

City_Country = substr(First,1,7)!!', '!!'England';

run;

Which one of the following is the length of the variable CITY_COUNTRY in the output data set?

A. 6B. 7C. 17D. 25

Page 105: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Correct Answer: DSection: (none)Explanation

Explanation/Reference:good answer.

QUESTION 119The following SAS program is submitted:

data work.test;

First = 'Ipswich, England';

City = substr(First,1,7);

City_Country = City!!', '!!'England';

run;

Which one of the following is the value of the variable CITY_COUNTRY in the output data set?

A. Ipswich!!B. Ipswich, EnglandC. Ipswich, 'England'D. Ipswic h, England

Correct Answer: BSection: (none)Explanation

Explanation/Reference:answer is valid.

QUESTION 120Which one of the following is true of the RETAIN statement in a SAS DATA step program?

A. It can be used to assign an initial value to _N_ .B. It is only valid in conjunction with a SUM function.C. It has no effect on variables read with the SET, MERGE and UPDATE statements.

Page 106: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

D. It adds the value of an expression to an accumulator variable and ignores missing values.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 121A raw data file is listed below:

--------10-------20-------30

squash 1.10

apples 2.25

juice 1.69

The following SAS program is submitted using the raw data file above:

data groceries;

infile 'file-specification';

input item $ cost;

run;

Which one of the following completes the program and produces a grand total for all COST values?

A. grandtot = sum cost;B. grandtot = sum(grandtot,cost);C. retain grandtot 0;

grandtot = sum(grandtot,cost);D. grandtot = sum(grandtot,cost);

output grandtot

Correct Answer: CSection: (none)

Page 107: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation

Explanation/Reference:Explanation:

QUESTION 122The following SAS program is submitted:

libname sasdata 'SAS-data-library';

data test;

set sasdata.chemists (keep = job_code);

if job_code = 'chem3'

then description = 'Senior Chemist';

run;

The variable JOB_CODE is a character variable with a length of 6 bytes.

Which one of the following is the length of the variable DESCRIPTION in the output data set?

A. 6 bytesB. 8 bytesC. 14 bytesD. 200 bytes

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 123The following SAS DATA step is submitted:

data work.accounting;

Page 108: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

set work.department;

length jobcode $ 12;

run;

The WORK.DEPARTMENT SAS data set contains a character variable named JOBCODE with a length of 5. Which one of the following is the length of thevariable JOBCODE in the output data set?

A. 5B. 8C. 12D. The length can not be determined as the program fails to execute due to errors.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:correct answer.

QUESTION 124Which one of the following SAS statements renames two variables?

A. set work.dept1work.dept2(rename = (jcode = jobcode)(sal = salary));

B. set work.dept1work.dept2(rename = (jcode = jobcodesal = salary));

C. set work.dept1work.dept2(rename = jcode = jobcodesal = salary);

D. set work.dept1work.dept2(rename = (jcode jobcode)(sal salary));

Correct Answer: BSection: (none)Explanation

Page 109: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:best answer.

QUESTION 125The following SAS program is submitted:

data work.company;

set work.dept1(keep = jobcode)

work.dept2(rename = (jcode = jobcode));

run;

Which one of the following is the result?

A. The variable JCODE is written to the output data set.B. The variable JOBCODE is written to the output data set.C. Neither variable JCODE nor JOBCODE is written to the output data set.D. The program fails to execute due to errors.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 126The following SAS program is submitted:

data work.staff;

JobCategory = 'FA';

JobLevel = '1';

JobCategory = JobCategory || JobLevel;

run;

Page 110: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which one of the following is the value of the variable JOBCATEGORY in the output data set?

A. FAB. FA1C. FA 1D. ' ' (missing character value)

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 127The following SAS program is submitted:

data work.one;

x = 3;

y = 2;

z = x ** y;

run;

Which one of the following is the value of the variable Z in the output data set?

A. 6B. 9C. . (missing numeric value)D. The program fails to execute due to errors.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

Page 111: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation:

QUESTION 128The SAS data set named WORK.TEST is listed below:

capacity airplanetype staff

150 Large 10

Which one of the following SAS programs created this data set?

A. data work.test;capacity = 150;if 100 le capacity le 200 thenairplanetype = 'Large' and staff = 10;else airplanetype = 'Small' and staff = 5;run;

B. data work.test;capacity = 150;if 100 le capacity le 200 thendo;airplanetype = 'Large';staff = 10;end;elsedo;airplanetype = 'Small';staff = 5;end;run;

C. data work.test;capacity = 150;if 100 le capacity le 200 thendo;airplanetype = 'Large';staff = 10;elsedo;airplanetype = 'Small';staff = 5;end;run;

Page 112: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

D. data work.test;capacity = 150;if 100 le capacity le 200 then;airplanetype = 'Small';staff = 5;else;airplanetype = 'Large';staff = 10;run;

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 129The SAS data set EMPLOYEE_INFO is listed below:

IDNumber Expenses

2542 100.00

3612 133.15

2198 234.34

2198 111.12

The following SAS program is submitted:

proc sort data = employee_info;

run;

Which one of the following BY statements completes the program and sorts the data sequentially by descending expense values within each descendingIDNUMBER value?

A. by descending IDNumber Expenses;B. by (IDNumber Expenses) descending;

Page 113: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

C. by IDNumber descending Expenses descending;D. by descending IDNumber descending Expenses;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:sophisticated answer.

QUESTION 130The following SAS program is submitted:

libname company 'SAS-data-library';

proc sort data = company.payroll;

by EmployeeIDNumber;

run;

Write access has been granted to the COMPANY library.

Which one of the following represents how the observations are sorted?

A. COMPANY.PAYROLL is recreated in sorted order by EmployeeIDNumber.B. COMPANY.PAYROLL is stored in original order, and a new data set PAYROLL is created in sorted order by EmployeeIDNumber.C. COMPANY.PAYROLL is stored in original order, and a new data set COMPANY.PAYROLLSORTED is created in sorted order by EmployeeIDNumber.D. COMPANY.PAYROLL is recreated in sorted order by EmployeeIDNumber, and a new data set PAYROLL is created in sorted order by EmployeeIDNumber

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 131The SAS data set WORK.AWARDS is listed below:

Page 114: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

fname points

Amy 2

Amy 1

Gerard 3

Wang 3

Wang 1

Wang 2

The following SAS program is submitted:

proc sort data = work.awards;

by descending fname points;

run;

Which one of the following represents how the observations are sorted?

A. Wang 3Gerard 3Wang 2Amy 2Wang 1Amy 1

B. Wang 3Wang 2Wang 1Gerard 3Amy 2Amy 1

C. Wang 3Wang 1Wang 2Gerard 3Amy 2Amy 1

Page 115: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

D. Wang 1Wang 2Wang 3Gerard 3Amy 1Amy 2

Correct Answer: DSection: (none)Explanation

Explanation/Reference:fine answer.

QUESTION 132The observations in the SAS data set WORK.TEST are ordered by the values of the variable SALARY. The following SAS program is submitted:

proc sort data = work.test out = work.testsorted;

by name;

run;

Which one of the following is the result of the SAS program?

A. The data set WORK.TEST is stored in ascending order by values of the NAME variable.B. The data set WORK.TEST is stored in descending order by values of the NAME variable.C. The data set WORK.TESTSORTED is stored in ascending order by values of the NAME variable.D. The data set WORK.TESTSORTED is stored in descending order by values of the NAME variable.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 133Which one of the following statements is true regarding the name of a SAS array?

Page 116: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. It is saved with the data set.B. It can be used in procedures.C. It exists only for the duration of the DATA step.D. It can be the same as the name of a variable in the data set.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 134The following SAS program is submitted:

data stats;

set revenue;

array weekly{5} mon tue wed thu fri;

total = weekly{i} * .25;

output;

end;

run;

Which one of the following DO statements completes the program and processes the elements of

the WEEKLY array?

A. do i = 1 to 5;B. do weekly{i} = 1 to 5;C. do i = mon tue wed thu fri;D. A DO loop cannot be used because the variables referenced do not end in a digit.

Correct Answer: ASection: (none)

Page 117: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation

Explanation/Reference:okay

QUESTION 135The following SAS program is submitted:

data work.test;

array agents{4} $ 12 sales1 - sales4;

run;

Which one of the following represents the variables that are contained in the output data set?

A. SALES1, SALES2, SALES3, SALES4B. AGENTS1, AGENTS2, AGENTS3, AGENTS4C. None, the DATA step fails because the ARRAY statement can reference only numeric data.D. None, the DATA step fails because the ARRAY statement can reference only pre-existing variables.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 136On which portion(s) of a SAS data set does the PRINT procedure report?

A. the data portion onlyB. the descriptor portion onlyC. the descriptor portion and the data portionD. neither the data portion nor the descriptor portion

Correct Answer: ASection: (none)Explanation

Page 118: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:good sort of answer.

QUESTION 137Which one of the following SAS procedures displays the data portion of a SAS data set?

A. PRINTB. FSLISTC. CONTENTSD. DATASETS

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 138The following SAS program is submitted:

proc contents data = sasuser.airplanes;

run;

Which one of the following is produced as output?

A. the data portion of every data set in the SASUSER libraryB. the data portion of the data set SASUSER.AIRPLANES onlyC. the descriptor portion of every data set in the SASUSER libraryD. the descriptor portion of the data set SASUSER.AIRPLANES only

Correct Answer: DSection: (none)Explanation

Explanation/Reference:right answer.

QUESTION 139

Page 119: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A raw data file is listed below:

--------10-------20-------30

John McCloskey 35 71

June Rosesette 10 43

Tineke Jones 9 37

The following SAS program is submitted using the raw data file as input:

data work.homework;

infile 'file-specification';

input name $ age height;

if age LE 10;

run;

How many observations will the WORK.HOMEWORK data set contain?

A. 0B. 2C. 3D. No data set is created as the program fails to execute due to errors.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 140The SASDATA.BANKS data set has five observations when the following SAS program is submitted:

libname sasdata 'SAS-data-library';

Page 120: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

data allobs;

set sasdata.banks;

capital=0;

do year = 2000 to 2020 by 5;

capital + ((capital+2000) * rate);

output;

end;

run;

How many observations will the ALLOBS data set contain?

A. 5B. 15C. 20D. 25

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 141The following SAS program is submitted:

data allobs;

set sasdata.origin (firstobs = 75 obs = 499);

run;

The SAS data set SASDATA.ORIGIN contains 1000 observations.

Page 121: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

How many observations does the ALLOBS data set contain?

A. 424B. 425C. 499D. 1000

Correct Answer: BSection: (none)Explanation

Explanation/Reference:proper answer is given.

QUESTION 142The following SAS program is submitted:

data _null_;

set old (keep = prod sales1 sales2);

file 'file-specification';

put sales1 sales2;

run;

Which one of the following default delimiters separates the fields in the raw data file created?

A. : (colon)B. (space)C. , (comma)D. ; (semicolon)

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

Page 122: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

QUESTION 143The contents of the raw data file TEAM are listed below:

--------10-------20-------30

Janice 10

Henri 11

Michael 11

Susan 12

The following SAS program is submitted:

data group;

infile 'team';

input name $15. age 2.;

file 'file-specification';

put name $15. +5 age 2.;

run;

Which one of the following describes the output created?

A. a raw data file onlyB. a SAS data set named GROUP onlyC. a SAS data set named GROUP and a raw data fileD. No output is generated as the program fails to execute due to errors.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

Page 123: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

QUESTION 144The contents of the SAS data set PERM.JAN_SALES are listed below:

VARIABLE NAME TYPE

idnum character variable

sales_date numeric date value

A comma delimited raw data file needs to be created from the PERM.JAN_SALES data set. The SALES_DATE values need to be in a MMDDYY10 form.

Which one of the following SAS DATA steps correctly creates this raw data file?

A. libname perm 'SAS-data-library';data _null_;set perm.jan_sales;file 'file-specification' dsd = ',';put idnum sales_date : mmddyy10.;run;

B. libname perm 'SAS-data-library';data _null_;set perm.jan_sales;file 'file-specification' dlm = ',';put idnum sales_date : mmddyy10.;run;

C. libname perm 'SAS-data-library';data _null_;set perm.jan_sales;file 'file-specification';put idnum sales_date : mmddyy10. dlm = ',';run;

D. libname perm 'SAS-data-library';data _null_;set perm.jan_sales;file 'file-specification';put idnum sales_date : mmddyy10. dsd = ',';run;

Correct Answer: BSection: (none)

Page 124: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation

Explanation/Reference:Explanation:

QUESTION 145The following SAS program is submitted:

libname temp 'SAS-data-library';

data work.new;

set temp.jobs;

format newdate mmddyy10.;

qdate = qtr(newdate);

ddate = weekday(newdate);

run;

proc print data = work.new;

run;

The variable NEWDATE contains the SAS date value for April 15, 2000.

What output is produced if April 15, 2000 falls on a Saturday?

A. Obs newdate qdate ddate1 APR152000 2 6

B. Obs newdate qdate ddate1 04/15/2000 2 6

C. Obs newdate qdate ddate1 APR152000 2 7

D. Obs newdate qdate ddate1 04/15/2000 2 7

Correct Answer: DSection: (none)

Page 125: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation

Explanation/Reference:Explanation:

QUESTION 146The following SAS program is submitted:

data work.report;

set work.sales_info;

if qtr(sales_date) ge 3;

run;

The SAS data set WORK.SALES_INFO has one observation for each month in the year 2000 and the variable SALES_DATE which contains a SAS date value foreach of the twelve months.

How many of the original twelve observations in WORK.SALES_INFO are written to the WORK.REPORT data set?

A. 2B. 3C. 6D. 9

Correct Answer: CSection: (none)Explanation

Explanation/Reference:obvious answer.

QUESTION 147The following SAS program is submitted:

data revenue;

set year_1;

var1 = mdy(1,15,1960);

Page 126: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

run;

Which one of the following values does the variable named VAR1 contain?

A. 14B. 15C. 1151960D. '1/15/1960'

Correct Answer: ASection: (none)Explanation

Explanation/Reference:no doubt at answer.

QUESTION 148The following SAS program is submitted:

data work.new;

mon = 3;

day = 23;

year = 2000;

date = mdy(mon,day,year);

run;

Which one of the following is the value of the DATE variable?

A. a character string with the value '23mar2000'B. a character string with the value '03/23/2000'C. a numeric value of 14692, which represents the SAS date value for March 23, 2000D. a numeric value of 3232000, which represents the SAS date value for March 23, 2000

Correct Answer: C

Page 127: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Section: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 149The following SAS DATA step executes on Monday, April 25, 2000:

data newstaff;

set staff;

start_date = today();

run;

Which one of the following is the value of the variable START_DATE in the output data set?

A. a character string with the value '04/25/2000'B. a character string with the value 'Monday, April 25, 2000'C. the numeric value 14725, representing the SAS date for April 25, 2000D. the numeric value 04252000, representing the SAS date for April 25, 2000

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 150The following SAS DATA step is submitted:

data sasdata.atlanta

sasdata.boston

work.portland

work.phoenix;

Page 128: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

set company.prdsales;

if region = 'NE' then output boston;

if region = 'SE' then output atlanta;

if region = 'SW' then output phoenix;

if region = 'NW' then output portland;

run;

Which one of the following is true regarding the output data sets?

A. No library references are required.B. The data sets listed on all the IF statements require a library reference.C. The data sets listed in the last two IF statements require a library reference.D. The data sets listed in the first two IF statements require a library reference.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 151Which one of the following SAS DATA steps saves the temporary data set named MYDATA as a permanent data set?

A. libname sasdata 'SAS-data-library';data sasdata.mydata;copy mydata;run;

B. libname sasdata 'SAS-data-library';data sasdata.mydata;keep mydata;run;

C. libname sasdata 'SAS-data-library';data sasdata.mydata;

Page 129: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

save mydata;run;

D. libname sasdata 'SAS-data-library';data sasdata.mydata;set mydata;run;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:answer is updated.

QUESTION 152The following SAS DATA step is submitted:

libname temp 'SAS-data-library';

data temp.report;

set sasuser.houses;

newvar = price * 1.04;

run;

Which one of the following statements is true regarding the program above?

A. The program is reading from a temporary data set and writing to a temporary data set.B. The program is reading from a temporary data set and writing to a permanent data set.C. The program is reading from a permanent data set and writing to a temporary data set.D. The program is reading from a permanent data set and writing to a permanent data set.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

Page 130: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

QUESTION 153The following SAS SORT procedure step generates an output data set:

proc sort data = sasuser.houses out = report;

by style;

run;

In which library is the output data set stored?

A. WORKB. REPORT.C. HOUSESD. SASUSER

Correct Answer: ASection: (none)Explanation

Explanation/Reference:finely answered.

QUESTION 154The SAS data sets WORK.EMPLOYEE and WORK.SALARY are listed below:

WORK.EMPLOYEE WORK.SALARY

fname age fname salary

Bruce 30 Bruce 25000

Dan 40 Bruce 35000

Dan 25000

The following SAS program is submitted:

data work.empdata;

Page 131: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

merge work.employee

work.salary;

by fname;

totsal + salary;

run;

How many variables are output to the WORK.EMPDATA data set?

A. 3B. 4C. 5D. No variables are output to the data set as the program fails to execute due to errors

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 155The contents of two SAS data sets named EMPLOYEE and SALARY are listed below:

EMPLOYEE SALARY

name age name salary

Bruce 30 Bruce 40000

Dan 35 Bruce 35000

Dan 37000

Dan .

The following SAS program is submitted:

Page 132: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

data work.empsalary;

merge work.employee (in = inemp)

work.salary (in = insal);

by name;

if inemp and insal;

run;

How many observations will the data set WORK.EMPSALARY contain?

A. 2B. 4C. 5D. 6

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 156A raw data file is listed below:

RANCH,1250,2,1,Sheppard Avenue,"$64,000"

SPLIT,1190,1,1,Rand Street,"$65,850"

CONDO,1400,2,1.5,Market Street,"80,050"

TWOSTORY,1810,4,3,Garris Street,"$107,250"

RANCH,1500,3,3,Kemble Avenue,"$86,650"

SPLIT,1615,4,3,West Drive,"94,450"

Page 133: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

SPLIT,1305,3,1.5,Graham Avenue,"$73,650"

The following SAS program is submitted using the raw data file as input:

data work.condo_ranch;

infile 'file-specification' dsd;

input style $ @;

if style = 'CONDO' or style = 'RANCH';

input sqfeet bedrooms baths street $ price : dollar10.;

run;

How many observations will the output data set contain?

A. 0B. 3C. 5D. 7

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 157A raw data file is listed below:

RANCH,1250,2,1,Sheppard Avenue,"$64,000"

SPLIT,1190,1,1,Rand Street,"$65,850"

CONDO,1400,2,1.5,Market Street,"80,050"

TWOSTORY,1810,4,3,Garris Street,"$107,250"

Page 134: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

RANCH,1500,3,3,Kemble Avenue,"$86,650"

SPLIT,1615,4,3,West Drive,"94,450"

SPLIT,1305,3,1.5,Graham Avenue,"$73,650"

The following SAS program is submitted using the raw data file as input:

data work.condo_ranch;

infile 'file-specification' dsd;

input style $ @;

if style = 'CONDO' or style = 'RANCH' then

input sqfeet bedrooms baths street $ price : dollar10.;

run;

How many observations does the WORK.CONDO_RANCH data set contain?

A. 0B. 3C. 5D. 7

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 158The contents of the raw data file FURNITURE are listed below:

--------10-------20-------30

chair,,table

Page 135: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

chair,couch,table

The following SAS program is submitted:

data stock;

infile 'furniture' dsd;

input item1 $ item2 $ item3 $;

run;

Which one of the following is the value of the variable named ITEM2 in the first observation of the output data set?

A. tableB. ,tableC. . (missing numeric value)D. ' ' (missing character value)

Correct Answer: DSection: (none)Explanation

Explanation/Reference:valid answer is selected.

QUESTION 159The following SAS program is submitted and reads 100 records from a raw data file:

data work.total;

infile 'file-specification' end = eof;

input name $ salary;

totsal + salary;

run;

Which one of the following IF statements writes the last observation to the output data set?

Page 136: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. if end = 0;B. if eof = 0;C. if end = 1;D. if eof = 1;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 160The following SAS program is submitted:

libname rawdata1 'location of SAS data library';

filename rawdata2 'location of raw data file';

data work.testdata;

infile

input sales1 sales2;

run;

Which one of the following is needed to complete the program correctly?

A. rawdata1B. rawdata2C. 'rawdata1'D. 'rawdata2'

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

Page 137: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

QUESTION 161

http://www.gratisexam.com/

The following SAS program is submitted:

proc print data = sasuser.houses;

run;

proc means data = sasuser.shoes;

run;

Which one of the following OPTIONS statements resets the page number to 1 for the second report?

A. options pageno = 1;B. options pagenum = 1;C. options reset pageno = 1;D. options reset pagenum = 1;

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 162Which one of the following is true of the SUM statement in a SAS DATA step program?

A. It is only valid in conjunction with a SUM function.B. It is not valid with the SET, MERGE and UPDATE statements.C. It adds the value of an expression to an accumulator variable and ignores missing values.

Page 138: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

D. It does not retain the accumulator variable value from one iteration of the SAS DATA step to the next.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 163When the following SAS program is submitted, the data set SASDATA.PRDSALES contains 5000 observations:

libname sasdata 'SAS-data-library';

options obs = 500;

proc print data = sasdata.prdsales (firstobs = 100);

run;

options obs = max;

proc means data = sasdata.prdsales (firstobs = 500);

run;

How many observations are processed by each procedure?

A. 400 for PROC PRINT4500 for PROC MEANS

B. 401 for PROC PRINT4501 for PROC MEANS

C. 401 for PROC PRINT4500 for PROC MEANS

D. 500 for PROC PRINT5000 for PROC MEANS

Correct Answer: BSection: (none)Explanation

Page 139: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:nicely sorted answer.

QUESTION 164The contents of the raw data file AMOUNT are listed below:

--------10-------20-------30

$1,234

The following SAS program is submitted:

data test;

infile 'amount';

input @1 salary 6.;

if _error_ then description = 'Problems';

else description = 'No Problems';

run;

Which one of the following is the value of the DESCRIPTION variable?

A. ProblemsB. No ProblemsC. ' ' (missing character value)D. The value can not be determined as the program fails to execute due to errors.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 165The contents of the raw data file NAMENUM are listed below:

Page 140: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

--------10-------20-------30

Joe xx

The following SAS program is submitted:

data test;

infile 'namenum';

input name $ number;

run;

Which one of the following is the value of the NUMBER variable?

A. xxB. JoeC. . (missing numeric value)D. The value can not be determined as the program fails to execute due to errors.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 166Which one of the following is true when SAS encounters a data error in a DATA step?

A. The DATA step stops executing at the point of the error, and no SAS data set is created.B. A note is written to the SAS log explaining the error, and the DATA step continues to execute.C. A note appears in the SAS log that the incorrect data record was saved to a separate SAS file for further examination.D. The DATA step stops executing at the point of the error, and the resulting DATA set contains observations up to that point.

Correct Answer: BSection: (none)Explanation

Page 141: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:Explanation:

QUESTION 167The following SAS program is submitted:

data work.totalsales (keep = monthsales{12} );

set work.monthlysales (keep = year product sales);

array monthsales {12} ;

do i=1 to 12;

monthsales{i} = sales;

end;

run;

The data set named WORK.MONTHLYSALES has one observation per month for each of five years for a total of 60 observations.

Which one of the following is the result of the above program?

A. The program fails execution due to data errors.B. The program fails execution due to syntax errors.C. The program executes with warnings and creates the WORK.TOTALSALES data set.D. The program executes without errors or warnings and creates the WORK.TOTALSALES data set

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 168The following SAS program is submitted:

data work.totalsales;

Page 142: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

set work.monthlysales(keep = year product sales);

retain monthsales {12} ;

array monthsales {12} ;

do i = 1 to 12;

monthsales{i} = sales;

end;

cnt + 1;

monthsales{cnt} = sales;

run;

The data set named WORK.MONTHLYSALES has one observation per month for each of five years for a total of 60 observations.

Which one of the following is the result of the above program?

A. The program fails execution due to data errors.B. The program fails execution due to syntax errors.C. The program runs with warnings and creates the WORK.TOTALSALES data set with 60 observations.D. The program runs without errors or warnings and creates the WORK.TOTALSALES data set with 60 observations

Correct Answer: BSection: (none)Explanation

Explanation/Reference:fine answer.

QUESTION 169The following SAS program is submitted:

data work.january;

set work.allmonths (keep = product month num_sold cost);

Page 143: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

if month = 'Jan' then output work.january;

sales = cost * num_sold;

keep = product sales;

run;

Which variables does the WORK.JANUARY data set contain?

A. PRODUCT and SALES onlyB. PRODUCT, MONTH, NUM_SOLD and COST onlyC. PRODUCT, SALES, MONTH, NUM_SOLD and COST onlyD. An incomplete output data set is created due to syntax errors.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 170The contents of the raw data file CALENDAR are listed below:

--------10-------20-------30

01012000

The following SAS program is submitted:

data test;

infile 'calendar';

input @1 date mmddyy10.;

if date = '01012000'd then event = 'January 1st';

run;

Page 144: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which one of the following is the value of the EVENT variable?

A. 01012000B. January 1stC. . (missing numeric value)D. The value can not be determined as the program fails to execute due to errors

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:New Questions

QUESTION 171The following SAS program is submitted:

If the value for the variable Jobcode is: PILOT2, what is the value of the variable Description?

A. ' ' (missing character value)B. UnknownC. Senior PilotD. SENIOR PILOT

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 172Given the contents of the raw data file 'EMPLOYEE.TXT'

Page 145: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which SAS informat correctly completes the program?

A. date9B. mmddyy10C. ddmmyy10D. mondayyr10

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 173Given the SAS data set WORK.P2000:

And the SAS data set WORK.P2008:

Page 146: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

The following output is desired:

Which SAS program correctly combines the data?

Page 147: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Option AB. Option BC. Option CD. Option D

Page 148: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 174The following SAS program is submitted:

What is the value of the second variable in the data set WORK.AUTHORS?

A. HemingwayB. HemingwaC. ' ' (a missing value)D. The program contains errors. No variables are created.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:actual answer.

QUESTION 175After a SAS program is submitted, the following is written to the SAS log:

Page 149: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

What changes should be made to the KEEP statement to correct the errors in the LOG?

A. keep=(Product Sales);B. keep Product, Sales;C. keep=Product, Sales;D. keep Product Sales;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 176The following SAS program is submitted:

Which statement is true about the output data set?

A. The type of the variable CharEmpid is numeric.B. The type of the variable CharEmpid is unknown.C. The type of the variable CharEmpid is character.

Page 150: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

D. The program fails to execute due to errors.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 177The following SAS program is submitted:

What is the value of the variable Prod in the output data set?

A. 6B. 7C. 8D. . (missing numeric)

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 178The following SAS program is submitted:

Page 151: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

What is the result?

A. The value of the variable Discount in the output data set is 2000. No messages are written to the SAS log.B. The value of the variable Discount in the output data set is 2000. A note that conversion has taken place is written to the SAS log.C. The value of the variable Discount in the output data set is missing. A note in the SAS log refers to invalid numeric data.D. The variable Discount in the output data set is set to zero. No messages are written to the SAS log.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 179The following SAS program is submitted:

Which statement is true about the output data set?

A. The label of the variable Jobcode is Job (only the first word).B. The label of the variable Jobcode is Job Desc (only the first 8 characters).C. The label of the variable Jobcode is Job Description.D. Labels can only be defined in PROC steps. The program fails to execute due to errors and the data set is not created.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:answer is appropriate.

QUESTION 180The following SAS program is submitted:

Page 152: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

How many raw data records are read during each iteration of the DATA step?

A. 1B. 2C. 3D. 4

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 181Given the SAS data set WORK.ONE:

The following SAS program is submitted:

The data set WORK.TWO is created, where Day would be 1 for Sunday, 2 for Monday, 3 for Tuesday, ... :

Page 153: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which expression successfully completed the program and creates the variable DAY?

A. day(BeginDate)B. weekday(BeginDate)C. dayofweek(BeginDate)D. getday(BeginDate,today())

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 182Given the SAS data set WORK.ORDERS:

The variable Order_id is numeric; Customer is character; and Ship_date is a numeric containing a SAS date value.

A programmer would like to create a new variable called Note, that shows a character value with the Order_id and Ship_date shown with a date9. format. For thefirst observation, Note would look like the following: "Order 9341 shipped on 02FEB2009".

Which of the following statement will correctly create the value and assign it to Note?

A. note=catx(' ','Order',order_id,'shipped on',input(ship_date,date9.));B. note=catx(' ','Order',order_id,'shipped on',char(ship_date,date9.));

Page 154: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

C. note=catx(' ','Order',order_id,'shipped on',transwrd(ship_date,date9.));D. note=catx(' ','Order',order_id,'shipped on',put(ship_date,date9.));

Correct Answer: DSection: (none)Explanation

Explanation/Reference:real answer.

QUESTION 183The following program is submitted:

proc contents data=_all_;

Which statement best describes the output from the submitted program?

A. The output displays only a list of the SAS data sets that are contained in the WORK library.B. The output displays only the contents of the SAS data sets that are contained in the WORK library.C. The output displays only the variables in the SAS data sets that are contained in the WORK library.D. The output displays a list of the SAS data sets that are contained in the WORK library and displays their contents.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 184The SAS data set WORK.ONE contains a numeric variable named Num and a character variable named Char:

The following SAS program is submitted:

Page 155: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

What is output?

A. Option AB. Option BC. Option CD. Option D

Correct Answer: DSection: (none)Explanation

Explanation/Reference:genuine answer.

Page 156: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

QUESTION 185The following SAS program is submitted:

data work.accounting;

set work.dept1 work.dept2;

jobcode = `FA1';

length jobcode $ 8;

run;

A character variable named JOBCODE is contained in both the WORK.DEPT1 and WORK.DEPT2 SAS data sets. The variable JOBCODE has a length of 5 in theWORK.DEPT1 data set and a length of 7 in the WORK.DEPT2 data set. What is the length of the variable JOBCODE in the output data set?

A. 3B. 5C. 7D. 8

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 186The following SAS program is submitted:

data work.sets;

do until (prod gt 6);

prod + 1;

end;

run;

Page 157: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

What is the value of the variable PROD in the output data set?

A. 6B. 7C. 8D. (missing numeric)

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 187Given the SAS data set PRICES:

PRICES

Prodid priceproducttypesalesreturns

K1255.10NETWORK152

B132S 2.34HARDWARE30010

R18KY2 1.29SOFTWARE255

3KL8BY 6.37HARDWARE12515

DY65DW 5.60HARDWARE455

DGTY23 4.55HARDWARE672

The following SAS program is submitted:

data hware inter cheap;

set prices(keep = productype price);

if producttype = `HARDWARE' then output hware; else if producttype = `NETWORK' then output

Page 158: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

inter; if price le 5.00;

run;

if producttype = `HARDWARE' then output hware; else if producttype = `NETWORK' then output

inter; if price le 5.00;

run;

How many observations does the HWARE data set contain?

A. 0B. 2C. 3D. 4

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 188Given the SAS data set EMPLOYEES:

EMPLOYEES

NAME SALARY

-------- ------------

Innis60000

Jolli50000

Ellis55000

Liu45000

Page 159: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

The following SAS program is submitted:

proc print data = employees; where name like `_i%';

run;

What is contained in the output?

A. Liu onlyB. Innis and Ellis onlyC. Innis, Ellis, and Liu onlyD. Innis, Jolli, Ellis, and Liu

Correct Answer: ASection: (none)Explanation

Explanation/Reference:right choice of answer.

QUESTION 189The following SAS program is submitted:

data numrecords;

infile `file specification';

input@1 patient $15.

relative$ 16-26@;

if relative = `children' then

input @54 diagnosis $15. @;

else if relative = `parents' then

input @28 doctor $15.

clinic $ 44-53

Page 160: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

@54 diagnosis $15. @;

input age;

run;

How many raw data records are read during each iteration of the DATA step execution?

A. 1B. 2C. 3D. 4

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 190Given the raw data file AMOUNT:

----I---- 10---I----20---I----30

$1,234

The following SAS program is submitted:

data test;

infile `amount';

input@1 salary 6.;

if_error_then description = `Problems';

else description = `No Problems';

run;

Page 161: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

What is the result?

A. The value of the DESCRIPTION variable is No Probl.B. The value of the DESCRIPTION variable is Problems.C. The value of the DESCRIPTION variable is No Problems.D. The value of the DESCRIPTION variable can not be determined.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 191The following code was modified to generate the results further below:

proc format;

value agegrp

low-12 ='Pre-Teen'

13-high = 'Teen';

run;

proc means data=SASHELP.CLASS;

var Height;

class Sex Age;

format Age agegrp.;

run;

The following results were generated to display only specific statistics and limit the decimals with the modification: Which statement below was modified or added togenerate the results above:

Page 162: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. var Height / nobs min max mean maxdec=1;B. proc means data=SASHELP.CLASS maxdec=1 ;C. proc means data=SASHELP.CLASS min max mean maxdec=1;D. output nobs min max mean maxdec=1;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 192The following SAS program is submitted:

data WORK.ACCOUNTING;

set WORK.DEPARTMENT;

label Jobcode='Job Description';

run;

Page 163: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which statement is true about the output dataset?

A. The label of the variable Jobcode is Job (only the first word).B. The label of the variable Jobcode is Job Desc (only the first 8 characters).C. The label of the variable Jobcode is Job Description.D. The program fails to execute due to errors. Labels must be defined in a PROC step.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 193Consider the data step:

Which of the following assignment statements for variable group are functionally equivalent to the original statement used in the above data step?

A. if Age not in(15,16) then Group=1; else Group=2;B. if (Age NE 16) or (Age NE 15) then Group=1; else Group=2;C. where Age not between 15 and 16 then Group=1; else Group=2;D. both A or C will work.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:valid answer.

QUESTION 194A SAS program is submitted and the following SAS log is produced:

Page 164: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

2 data gt100;

3 set ia.airplanes

4 if mpg gt 100 then output;

22 202

ERROR: File WORK.IF.DATA does not exist.

ERROR: File WORK.MPG.DATA does not exist.

ERROR: File WORK.GT.DATA does not exist.

ERROR: File WORK.THEN.DATA does not exist.

ERROR: File WORK.OUTPUT.DATA does not exist.

ERROR 22-322: Syntax error, expecting one of the following: a name,

a quoted string, (, ;, END, KEY, KEYS, NOBS, OPEN, POINT, _DATA_, _LAST_, _NULL_.

ERROR 202-322: The option or parameter is not recognized and will be ignored.

5 run;

The IA libref was previously assigned in this SAS session.

Which one of the following corrects the errors in the LOG?

A. Delete the word THEN on the IF statement.B. Add a semicolon at the end of the SET statement.C. Place quotes around the value on the IF statement.D. Add an END statement to conclude the IF statement

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

Page 165: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

QUESTION 195Which one of the following SAS system options prevents the page number from appearing on a report?

A. NONUMB. NOPAGEC. NONUMBERD. NOPAGENUM

Correct Answer: CSection: (none)Explanation

Explanation/Reference:best answer.

QUESTION 196A realtor has two customers. One customer wants to view a list of homes selling for less than $60,000. The other customer wants to view a list of homes selling forgreater than $100,000.

Assuming the PRICE variable is numeric, which one of the following PRINT procedure steps will select all desired observations?

A. proc print data = sasuser.houses;where price lt 60000;where price gt 100000;run;

B. proc print data = sasuser.houses;where price lt 60000 or price gt 100000;run;

C. proc print data = sasuser.houses;where price lt 60000 and price gt 100000;run;

D. proc print data = sasuser.houses;where price lt 60000 or where price gt 100000;run;

Correct Answer: BSection: (none)Explanation

Page 166: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:Explanation:

QUESTION 197The following SAS program is submitted:

data work.retail;

cost = '20000';

total = .10 * cost;

run;

Which one of the following is the value of the variable TOTAL in the output data set?

A. 2000B. '2000'C. . (missing numeric value)D. ' ' (missing character value)

Correct Answer: ASection: (none)Explanation

Explanation/Reference:truthful answer.

QUESTION 198A raw data file is listed below:

--------10-------20-------30

squash 1.10

apples 2.25

juice 1.69

The following SAS program is submitted using the raw data file above:

Page 167: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

data groceries;

infile 'file-specification';

input item $ cost;

run;

Which one of the following completes the program and produces a grand total for all COST values?

A. grandtot = sum cost;B. grandtot = sum(grandtot,cost);C. retain grandtot 0;

grandtot = sum(grandtot,cost);D. grandtot = sum(grandtot,cost);

output grandtot

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 199The following SAS program is submitted:

data work.company;

set work.dept1(keep = jobcode)

work.dept2(rename = (jcode = jobcode));

run;

Which one of the following is the result?

A. The variable JCODE is written to the output data set.B. The variable JOBCODE is written to the output data set.C. Neither variable JCODE nor JOBCODE is written to the output data set.

Page 168: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

D. The program fails to execute due to errors.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 200The SAS data set named WORK.TEST is listed below:

capacity airplanetype staff

150 Large 10

Which one of the following SAS programs created this data set?

A. data work.test;capacity = 150;if 100 le capacity le 200 thenairplanetype = 'Large' and staff = 10;else airplanetype = 'Small' and staff = 5;run;

B. data work.test;capacity = 150;if 100 le capacity le 200 thendo;airplanetype = 'Large';staff = 10;end;elsedo;airplanetype = 'Small';staff = 5;end;run;

C. data work.test;capacity = 150;if 100 le capacity le 200 thendo;

Page 169: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

airplanetype = 'Large';staff = 10;elsedo;airplanetype = 'Small';staff = 5;end;run;

D. data work.test;capacity = 150;if 100 le capacity le 200 then;airplanetype = 'Small';staff = 5;else;airplanetype = 'Large';staff = 10;run;

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 201On which portion(s) of a SAS data set does the PRINT procedure report?

A. the data portion onlyB. the descriptor portion onlyC. the descriptor portion and the data portionD. neither the data portion nor the descriptor portion

Correct Answer: ASection: (none)Explanation

Explanation/Reference:good sort of answer.

Page 170: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

QUESTION 202The contents of the raw data file TEAM are listed below:

--------10-------20-------30

Janice 10

Henri 11

Michael 11

Susan 12

The following SAS program is submitted:

data group;

infile 'team';

input name $15. age 2.;

file 'file-specification';

put name $15. +5 age 2.;

run;

Which one of the following describes the output created?

A. a raw data file onlyB. a SAS data set named GROUP onlyC. a SAS data set named GROUP and a raw data fileD. No output is generated as the program fails to execute due to errors.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:answer is absolutely correct.

Page 171: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

QUESTION 203The following SAS DATA step executes on Monday, April 25, 2000:

data newstaff;

set staff;

start_date = today();

run;

Which one of the following is the value of the variable START_DATE in the output data set?

A. a character string with the value '04/25/2000'B. a character string with the value 'Monday, April 25, 2000'C. the numeric value 14725, representing the SAS date for April 25, 2000D. the numeric value 04252000, representing the SAS date for April 25, 2000

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 204

http://www.gratisexam.com/

The following SAS SORT procedure step generates an output data set:

proc sort data = sasuser.houses out = report;

by style;

Page 172: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

run;

In which library is the output data set stored?

A. WORKB. REPORT.C. HOUSESD. SASUSER

Correct Answer: ASection: (none)Explanation

Explanation/Reference:finely answered.

QUESTION 205A raw data file is listed below:

RANCH,1250,2,1,Sheppard Avenue,"$64,000"

SPLIT,1190,1,1,Rand Street,"$65,850"

CONDO,1400,2,1.5,Market Street,"80,050"

TWOSTORY,1810,4,3,Garris Street,"$107,250"

RANCH,1500,3,3,Kemble Avenue,"$86,650"

SPLIT,1615,4,3,West Drive,"94,450"

SPLIT,1305,3,1.5,Graham Avenue,"$73,650"

The following SAS program is submitted using the raw data file as input:

data work.condo_ranch;

infile 'file-specification' dsd;

input style $ @;

Page 173: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

if style = 'CONDO' or style = 'RANCH';

input sqfeet bedrooms baths street $ price : dollar10.;

run;

How many observations will the output data set contain?

A. 0B. 3C. 5D. 7

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 206The following SAS program is submitted:

proc print data = sasuser.houses;

run;

proc means data = sasuser.shoes;

run;

Which one of the following OPTIONS statements resets the page number to 1 for the second report?

A. options pageno = 1;B. options pagenum = 1;C. options reset pageno = 1;D. options reset pagenum = 1;

Correct Answer: ASection: (none)

Page 174: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation

Explanation/Reference:Explanation:

QUESTION 207The contents of the raw data file NAMENUM are listed below:

--------10-------20-------30

Joe xx

The following SAS program is submitted:

data test;

infile 'namenum';

input name $ number;

run;

Which one of the following is the value of the NUMBER variable?

A. xxB. JoeC. . (missing numeric value)D. The value can not be determined as the program fails to execute due to errors.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 208The following SAS program is submitted:

Page 175: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

If the value for the variable Jobcode is: PILOT2, what is the value of the variable Description?

A. ' ' (missing character value)B. UnknownC. Senior PilotD. SENIOR PILOT

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 209The following SAS program is submitted:

What is the value of the second variable in the data set WORK.AUTHORS?

A. HemingwayB. HemingwaC. ' ' (a missing value)D. The program contains errors. No variables are created.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:actual answer.

Page 176: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

QUESTION 210The following SAS program is submitted:

Which statement is true about the output data set?

A. The label of the variable Jobcode is Job (only the first word).B. The label of the variable Jobcode is Job Desc (only the first 8 characters).C. The label of the variable Jobcode is Job Description.D. Labels can only be defined in PROC steps. The program fails to execute due to errors and the data set is not created.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:answer is appropriate.

QUESTION 211Given the SAS data set WORK.ONE:

The following SAS program is submitted:

The data set WORK.TWO is created, where Day would be 1 for Sunday, 2 for Monday, 3 for Tuesday, ... :

Page 177: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Which expression successfully completed the program and creates the variable DAY?

A. day(BeginDate)B. weekday(BeginDate)C. dayofweek(BeginDate)D. getday(BeginDate,today())

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 212The SAS data set WORK.ONE contains a numeric variable named Num and a character variable named Char:

The following SAS program is submitted:

What is output?

Page 178: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. Option AB. Option BC. Option CD. Option D

Correct Answer: DSection: (none)Explanation

Explanation/Reference:genuine answer.

QUESTION 213The SAS data sets WORK.EMPLOYEE and WORK.SALARY are shown below:

WORK.EMPLOYEE WORK.SALARY

fname age name salary

Page 179: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Bruce 30 Bruce 25000

Dan 40 Bruce 35000

Dan 25000

The following SAS program is submitted:

data work.empdata;

by fname;

totsal + salary;

run;

Which one of the following statements completes the merge of the two data sets by the FNAME variable?

A. merge work.employeework.salary (fname = name);

B. merge work.employeework.salary (name = fname);

C. merge work.employeework.salary (rename = (fname = name));

D. merge work.employeework.salary (rename = (name = fname));

Correct Answer: DSection: (none)Explanation

Explanation/Reference:

QUESTION 214Which program displays a listing of all data sets in the SASUSER library?

A. proc contents lib = sasuser.all; run;B. proc contents data = sasuser.all; run;C. proc contents lib = sasuser._alI_; run;

Page 180: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

D. proc contents data = sasuser._all_; run;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:definite answer.

QUESTION 215The following SAS program is submitted:

proc sort data = work.employee;

by descending fname;

proc sort data = work.salary;

by descending fname;

data work.empdata;

merge work.employee

work.salary;

by fname;

run;

Why does the program rail to execute?

A. The SORT procedures contain invalid syntax.B. The merged data sets are not permanent SAS data sets.C. The RUN statement was omitted alter each or the SORT procedures.D. The data sets were not merged in the order by which they were sorted.

Correct Answer: DSection: (none)Explanation

Page 181: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Explanation/Reference:Explanation:

QUESTION 216The following SAS program is submittad:

data work.sales;

do year = 1 to 5;

do month=1 to 12;

x+1;

output

end;

end;

run;

How many observations are written the WORK SALES data set?

A. 0B. 1C. 5D. 60

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 217Given the following raw data record:

----I----10---I----20---I----30

Page 182: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

son Travis,

The following output is desired:

Obs relation firstname

1 son Travis

Which SAS program correctly reads in the raw data?

A. data family ( dIm = `,'); infile `tile specification'; input relation $ firstname $; run;B. options dIm = `,'; data family; infile `file specification'; input relation $ firstname $; run;C. data family; infile `file specification' dIm = `,'; input relation $ firstname $; run;D. data family; infile `file specification'; input relation $ firstname $ / dim = `,'; run;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 218Given the SAS data set AGES:

AGES

AGE

---------

The variable AGE contains character values. The following SAS program is submitted:

data subset;

set ages;

where age> 12;

run;

Page 183: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

How many observations are written out to the data set SUBSET?

A. 0B. 1C. 2D. 3

Correct Answer: ASection: (none)Explanation

Explanation/Reference:genuine answer.

QUESTION 219Given the SAS data set PRICES:

PRICES

prodid price

K12S5.10producttype

NETWORKsales

15returnsB132S 2.34HARDWARE30010

R18KY21.29SOFTWARE255

3KL8BY 6.37HARDWARE12515

DY65DW 5.60HARDWARE455

DGTY23 4.55HARDWARE672

The following SAS program is submitted:

data hware inter soft;

set prices (keep = producttype price);

Page 184: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

if price le 5.00;

if producttype = `HARDWARE' then output HWARE;

else if producttype = `NETWORK' then output INTER;

else if producttype = `SOFTWARE' then output SOFT;

run;

How many observations does the HWARE data set contain?

A. 0B. 2C. 3D. 4

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 220The following SAS program is submitted:

data work.accounting;

set work.department;

length jobcode $ 12;

jobcode='FAl';

run;

The WORK.DEPARTMENT data set contains a character variable named JOBCODE with a length of 5. What is the result?

A. The length of the variable JOBCODE is 3.

Page 185: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

B. The length of the variable JOBCODE is 5.C. The length of the variable JOSBODE is 12.D. The program fails to execute due to errors.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 221Which ODS statement option terminates output being written to an HTML rile?

A. ENDB. QUITC. STOPD. CLOSE

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 222The SAS data set PETS is sorted by the variables TYPE and BREED.

The following SAS program is submitted:

proc print data = pets;

var type breed;

sum number;

run;

What is the result?

Page 186: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. The SUM statement produces only a grand total of NUMBER.B. The SUM statement produces only subtotals of NUMBER for each value of TYPE.C. The SUM statement produces both a grand total of NUMBER and subtotals of NUMBER for each value of TYPE.D. Nothing is produced by the SUM statement; the program fails to execute.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:obvious answer.

QUESTION 223After a SAS program is submitted, the following is written to the SAS log:

105 data WORK.JANUARY;

106 set WORK.ALLYEAR(keep=Product Month Quantity Cost);

107 if Month='JAN' then output WORK.JANUARY;

108 Sales=Cost * Quantity;

109 drop=Month Quantity Cost;

-----

ERROR 22-322: Syntax error, expecting one of the following: !,

!!, , *, **, +, -,

, <=, <>, =, >, >=,

AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL,

NOTIN, OR, ^=, |, ||, ~=.

110 run;

What data set option could be attached to WORK.JANUARY to replace the DROP statement that generated the error in the log?

Page 187: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. (drop Month Quantity Cost)B. (drop Month, Quantity, Cost)C. (drop=Month, Quantity, Cost)D. (drop=Month Quantity Cost)

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 224Consider the following data step:

The computed variables City and State have their values assigned using two different methods, a

RETAIN statement and an Assignment statement. Which statement regarding this program is true?

A. The RETAIN statement is fine, but the value of City will be truncated to 8 bytes as the LENGTH statement has been omitted.B. Both the RETAIN and assignment statement are being used to initialize new variables and are equally efficient. Method used is a matter of programmer

preference.C. The assignment statement is fine, but the value of City will be truncated to 8 bytes as the LENGTH statement has been omitted.D. City's value will be assigned one time, State's value 5 times.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:actual answer.

QUESTION 225

Page 188: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Given the SAS data set WORK.ONE:

What value will SAS assign to Total?

A. 3B. 1.6C. 4.8D. The program fails to execute due to errors.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 226A SAS program is submitted and the following SAS log is produced:

2 data gt100;

3 set ia.airplanes

4 if mpg gt 100 then output;

22 202

ERROR: File WORK.IF.DATA does not exist.

ERROR: File WORK.MPG.DATA does not exist.

Page 189: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

ERROR: File WORK.GT.DATA does not exist.

ERROR: File WORK.THEN.DATA does not exist.

ERROR: File WORK.OUTPUT.DATA does not exist.

ERROR 22-322: Syntax error, expecting one of the following: a name,

a quoted string, (, ;, END, KEY, KEYS, NOBS, OPEN, POINT, _DATA_, _LAST_, _NULL_.

ERROR 202-322: The option or parameter is not recognized and will be ignored.

5 run;

The IA libref was previously assigned in this SAS session.

Which one of the following corrects the errors in the LOG?

A. Delete the word THEN on the IF statement.B. Add a semicolon at the end of the SET statement.C. Place quotes around the value on the IF statement.D. Add an END statement to conclude the IF statement

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 227The contents of the raw data file SIZE are listed below:

--------10-------20-------30

72 95

The following SAS program is submitted:

data test;

Page 190: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

infile 'size';

input @1 height 2. @4 weight 2;

run;

Which one of the following is the value of the variable WEIGHT in the output data set?

A. 2B. 72C. 95D. . (missing numeric value)

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 228A SAS PRINT procedure output of the WORK.LEVELS data set is listed below:

Obs name level

1 Frank 1

2 Joan 2

3 Sui 2

4 Jose 3

5 Burt 4

6 Kelly .

7 Juan 1

The following SAS program is submitted:

Page 191: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

data work.expertise;

set work.levels;

if level = . then

expertise = 'Unknown';

else if level = 1 then

expertise = 'Low';

else if level = 2 or 3 then

expertise = 'Medium';

else

expertise = 'High';

run;

Which of the following values does the variable EXPERTISE contain?

A. Low, Medium, and High onlyB. Low, Medium, and Unknown onlyC. Low, Medium, High, and Unknown onlyD. Low, Medium, High, Unknown, and ' ' (missing character value)

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 229The contents of the raw data file EMPLOYEE are listed below:

--------10-------20-------30

Page 192: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Ruth 39 11

Jose 32 22

Sue 30 33

John 40 44

The following SAS program is submitted:

data test;

infile 'employee';

input employee_name $ 1-4;

if employee_name = 'Sue' then input age 7-8;

else input idnum 10-11;

run;

Which one of the following values does the variable AGE contain when the name of the employee is "Sue"?

A. 30B. 33C. 40D. . (missing numeric value)

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 230The following SAS program is submitted:

libname sasdata 'SAS-data-library';

Page 193: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

data test;

set sasdata.chemists;

if jobcode = 'chem3'

then description = 'Senior Chemist';

else description = 'Unknown';

run;

A value for the variable JOBCODE is listed below:

JOBCODE

CHEM3

Which one of the following values does the variable DESCRIPTION contain?

A. chem3B. UnknownC. Senior ChemistD. ' ' (missing character value)

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 231The following SAS program is submitted:

libname temp `SAS data library';

data temp.sales;

merge temp.sales

Page 194: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

work.receipt;

by names;

run;

The input data files are sorted by the NAMES variable:

What is the result?

A. The program executes successfully and a temporary SAS data set is created.B. The program executes successfully and a permanent SAS data set is created.C. The program fails execution because the same SAS data set is referenced for both read and write operations.D. The program fails execution because the SAS data sets on the MERGE statement are in two different libraries.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 232Given the contents of the raw data file TYPECOLOR:

----I----10---I----20---I----30

Daisyyellow

The following SAS program is submitted:

data flowers;

infile `typecolor';

input type$ 1-5+1 color$;

run;

What are the values of the variables TYPE and COLOR?

Page 195: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

A. type colordaisygreen

B. type colordaisy ellow

C. type colordaisyyellow" "(missing character value)

D. No values are stored for the TYPE and COLOR variables.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 233A user-defined format has been created using the FORMAT procedure. Where is it stored?

A. in a SAS catalogB. in an external binary fileC. in a SAS dataset in the WORK libraryD. in a SAS dataset in a permanent SAS data library

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 234The following SAS program is submitted:

data work.flights;

destination = `cph';

select(destination);

Page 196: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

when('LHR') city = `London';

when('CPH') city = `Copenhagen';

otherwise city = `Other';

end;

run;

What is the value of the CITY variable?

A. OtherB. CopenhC. CopenhagenD. ``(missing character value)

Correct Answer: ASection: (none)Explanation

Explanation/Reference:proper answer.

QUESTION 235The following SAS program is submitted:

data work.new;

length word $7;

amount = 4;

it amount = 4 then word = `FOUR';

else if amount = 7

then word = `SEVEN';

else word = `NONE!!!';

Page 197: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

amount = 7;

run;

What are the values of the AMOUNT and WORD variables in SAS dataset work.new?

A. amount word4 FOUR

B. amount word4 NONE!!!

C. amount word7 FOUR

D. amount word7 SEVEN

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 236The following SAS program is submitted, creating the SAS data set ONE:

data one;

infile `file specification';

input num chars$;

run;

ONE

NUMCHAR

----------------The following SAS program is submitted:

proc print data = one;

Page 198: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

where char = 23;

run;

What is output?

A. NUM CHAR1 77

B. NUM CHAR1 233 23

C. NUM CHAR1 233 231 77

D. No output is generated.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 237The following SAS program is submitted:

data work.retail;

cost = `20000';

total= .10* cost

run;

What is the result?

A. The value of the variable TOTAL in the output data set is 2000. No messages are written to the SAS log.B. The value of the variable TOTAL in the output data set is 2000. A note that conversion has taken place is written to the SAS log.

Page 199: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

C. The value of the variable TOTAL in the output data set is missing. An error message is written to the SAS log.D. The variable TOTAL in the output data set has no value. The program fails to execute due to a syntax error.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 238The following SAS program is submitted:

Data_null_;

set old;

put sales 1 sales2;

run;

Where is the output written?

A. to the SAS logB. to the SAS data set _NULL_C. to the SAS output window or to an output fileD. to the raw data file that was most recently opened

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 239The following SAS program is submitted:

data work.test;

Page 200: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

array items{3} _temporary_;

run;

What are the names of the variable(s) in the WORKTEST data set?

A. ITEMSB. ITEMS1, ITEMS2, ITEMS3C. No variables are created because it is a temporary array.D. The program fails to execute because there are no variables listed on the ARRAY statement.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 240The following SAS program is submitted:

proc contents data = sashelp.class varnum; quit;

What does the VARNUM option print?

A. a list of variable namesB. the total number of variablesC. a list of the variables in alphabetic orderD. a list of the variables in the order they were created

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 241The following SAS program is submitted:

Page 201: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

data test;

set chemists;

jobcode = `Chem2'

then description = `Senior Chemist';

else description = `Unknown';

run;

The value for the variable JOBCODE is:

JOBCODE

-------------

chem2

What is the value of the variable DESCRIPTION?

A. chem2B. UnknownC. Senior ChemistD. ` ` (missing character value)

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 242Given the AIRPLANES data set

AlRPLANES

TYPE MPG-------- ------

Page 202: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

F-18 105

C-130 25

Harrier 75

A-6 110

The following SAS program is submitted:

data gt100;

set airplanes(keep = type mpg load);

load = mpg * 150;

run;

The program fails to execute due to syntax errors.

What is the cause of the syntax error?

A. MPG is not a numeric variable.B. LOAD is not a variable in the data set GT100.C. LOAD is not variable in the data set AIRPLANES.D. LOAD must be defined prior to the SET statement.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:fine answer.

QUESTION 243Given the raw data file EMPLOYEE:

----I----1 0---I----20---I----30

Ruth 39 11

Page 203: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Jose 32 22

Sue 30 33

John 40 44

The following SAS program is submitted:

data test;

infile `employee';

input employee_name $ 1-4;

if employee_name = `Ruth' then input idnum 10-11;

else input age 7-8;

run;

What value does the variable IDNUM contain when the name of the employee is "Ruth"?

A. 11B. 22C. 33D. (missing numeric value)

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 244The following SAS program is submitted:

data temp.x;

set sasuser.y;

Page 204: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

run;

What must be submitted prior to this SAS program for the program to execute successfully?

A. A LIBNAME statement for the libref TEMP only must be submitted.B. A LIBNAME statement for the libref SASUSER only must be submitted.C. LIBNAME statements for the librefs TEMP and SASUSER must be submitted.D. No LIBNAME statement needs to be submitted.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 245The data set RALESTATE has the variable LOCALFEE with a format or 9. and a variable

COUNTRYFEE with a format or 7.;

The following SAS program is submitted:

data history;

format local fee country fee percent6.;

set realestate;

local fee = local fee / 100;

country fee = country fee / 100;

run;

What are the formats of the variables LOCALFEE and COUNTRYFEE in the output dataset?

A. LOCALFEE has format of 9. and COUNTRYFEE has a format of 7.B. LOCALFEE has format of 9. and COUNTRYFEE has a format of percent6.

Page 205: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

C. LOCALFEE has format of percent6. and COUNTRYFEE has a format of percent6.D. The data step fails execution; there is no format for LOCALFEE

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 246The following SAS program is submitted:

proc freq data = class;

tables gender * age / <insert option here>;

run;

The following report is created:

The FREQ Procedure

Table of gender by age

Row Column

Gender ageFrequencyPercent Percent Percent

F11110.0020.0050.00

12220.0040.0040.00

13220.0040.0066.67

Total550.00100.00

M11110.0020.0050.00

12330.0060.0060,00

13110.0020.0033.33

Page 206: SAS- · PDF fileSAS Institute A00-211 ... addressl = `214 London Way'; ... address = tranwrd(address1, `Way', `Drive'); run; What are the length and value of the variable ADDRESS?

Total550.00100.00

Total11220.00100.00

12550.00100.00

13330.00100.00

Total10100.00

Which option correctly completes the program and creates the report?

A. LISTB. NOCOLSC. CROSSLISTD. NOCROSSTAB

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

http://www.gratisexam.com/