SAS Certified Specialist: Base Programming Using SAS 9.4 A00-231 Dumps Questions and Answers

To prepare for the SAS Certified Specialist: Base Programming Using SAS 9.4 A00-231 exam, you can have the SAS A00-231 dumps questions and answers as the preparation materials. You’ll be able to trust this trustable SAS Institute A00-231 dumps and candidates get a lot of opportunities from right here and pass the A00-231 SAS 9.4 Base Programming — Performance-based exam at the most important endeavor. The really authenticated A00-231 dumps together with the advanced techniques will assure a very good outcome in the A00-231 test.

Check SAS Certified Specialist: Base Programming Using SAS 9.4 A00-231 Free Dumps

1. The 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?

2. The SAS data set SASUSER.HOUSES contains a variable PRICE which has been assigned a permanent label of “Asking Price”.

Which SAS program temporarily replaces the label “Asking Price” with the label “Sale Price” in the output?

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

WORK.EMPLOYEE WORK.SALARY

fname age name salary

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?

4. The following SAS program is submitted:

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?

5. The 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!!!’;

amount = 7;

run;

What are the values of the AMOUNT and WORD variables in SAS dataset work.new?

6. The 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?

7. Given the following code:

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

where Sex='M';

run;

How many observations will be displayed?

8. Which ODS statement option terminates output being written to an HTML rile?

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

JAN

FEB

MAR

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

10. The following SAS program is submitted:

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

11. Given the following raw data record:

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

son Travis,

The following output is desired:

Obs relation firstname

1 son Travis

Which SAS program correctly reads in the raw data?

12. Given the SAS data set ONE:

Given the SAS data set WORK.ONE:

The following SAS program is submitted:

Which report is produced?

13. The 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?

14. The following output is created by the FREQUENCY procedure:

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

15. The 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?

16. Which statement describes a characteristic of the SAS automatic variable _ERROR_?

17. Given the raw data file EMPLOYEE:

----I----1 0---I----20---I----30

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 = ‘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”?

18. Given the SAS data set WORK.TEMPS:

The following program is submitted:

Which output is correct?

19. The following SAS program is submitted:

data work.retail;

cost = ‘20000’;

total= .10* cost

run;

What is the result?

20. A user-defined format has been created using the FORMAT procedure. Where is it stored?

21. The 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?

22. The following SAS program is submitted:

data temp.x;

set sasuser.y;

run;

What must be submitted prior to this SAS program for the program to execute successfully?

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

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

24. The 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?

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

Which statement is true?

26. Given the following raw data record:

07Jan2005

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

27. The 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?

28. The 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?

29. Given the SAS data set SASDATA TWO:

SASDATA TWO

XY

52

31

56

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?

30. The 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?

31. Given the raw data record in the file phone.txt:

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

32. Given the SAS data set EMPLOYEES:

EMPLOYEES

NAME SALARY

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

Innis60000

Jolli50000

Ellis55000

Liu45000

The following SAS program is submitted:

proc print data = employees; where name like ‘_i%’;

run;

What is contained in the output?

33. The following SAS program is submitted:

data one;

addressl = ‘214 London Way’;

run;

data one;

set one;

address = tranwrd(address1, ‘Way’, ‘Drive’); run;

What are the length and value of the variable ADDRESS?

34. The following program is submitted:

proc contents data=_all_;

run;

Which statement best describes the output from the submitted program?

35. Which program displays a listing of all data sets in the SASUSER library?

36. Given the SAS data set WORK.EMP_NAME:

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?

37. The following SAS program is submitted:

data test;

infile ‘file specification’;

input name $ amount@@;

run;

Which of the following is true?

38. Which statement correctly computes the average of four numerical values?

39. The following SAS program is submitted:

What new variables are created?

40. Given the SAS data set ONE:

ONE

ObsDte

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

109JAN2005

212JAN2005

The following SAS program is submitted:

data two;

set one;

day = <insert expression here>;

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?

41. The following SAS program is submitted:

data WORK.ACCOUNTING;

set WORK.DEPARTMENT;

label Jobcode='Job Description';

run;

Which statement is true about the output dataset?

42. The 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 set WORK.EMPSALARY contain?

43. 1941 1

The following SAS program is submitted:

data coins;

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?

44. The following SAS program is submitted:

libname temp ‘SAS data library’;

data temp.sales;

merge temp.sales

work.receipt;

by names;

run;

The input data files are sorted by the NAMES variable:

What is the result?

45. Given 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;

What is written to the output raw data file?

46. 00100.00

Total10100.00

Which option correctly completes the program and creates the report?

47. Given 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?

48. Given 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

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?

49. The 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?

50. Given the following data step:

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

51. Given 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;

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

52. 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?

53. The following SAS program is submitted:

Data_null_;

set old;

put sales 1 sales2;

run;

Where is the output written?

54. The 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?

55. The 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?

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

EAST

WEST

NORTH

SOUTH

The following program is submitted:

libname MYXLS 'regions.xls';

Which PROC PRINT step correctly displays the NORTH worksheet?

57. The 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 to generate the results above:

58. Which is a valid LIBNAME statement?

59. What describes the SAS automatic _ERROR_ variable?

60. The 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?

61. Given the AIRPLANES data set

AlRPLANES

TYPE MPG

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

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?

62. Read the table:

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;

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:

- style price

- CONDO$79,700

- TWOSTORY$62550

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

63. What is the purpose or the MISSOVER option on the INFILE statement?

64. The 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;

run;

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

Which statement is true?

65. Given the raw data record DEPT:

----|----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?

66. Given the SAS data set WORKAWARDS:

WORK.AWARDS

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?

67. The following SAS program is submitted:

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

68. The following SAS program is submitted:

<insert ODS statement here>

proc means data = sasuser.shoes;

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?

69. The following SAS program is submitted:

The program fails execution due to syntax errors.

What is the cause of the syntax error?

70. The 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?

71. The following SAS program is submitted:

data work.flights;

destination = ‘cph’;

select(destination);

when(’LHR’) city = ‘London’;

when(’CPH’) city = ‘Copenhagen’;

otherwise city = ‘Other’;

end;

run;

What is the value of the CITY variable?

72. After 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;

------

22

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?

73. The following SAS program is submitted:

data one;

date = ‘04juI2005’d;

format date weekdate.; run;

proc print data = one; run;

What output is generated?

74. The 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

run;

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

What is the result?

75. The 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?

76. The following output is created by the FREQUENCY procedure:

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

proc freq data=sales;

<_insert_code_>

run;

77. The 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;

What new variables are created?

78. Given 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;

What is the result?

79. The following SAS program is submitted:

data WORK.DATE_INFO;

X="01Jan1960" D;

run;

What variable X contains what value?

80. Which statement is true concerning the SAS automatic variable _ERROR_?


 

Right A00-215 Dumps To Clear SAS 9.4 Programming Fundamentals Exam Successfully
Latest A00-251 Dumps - Best Study Materials For Administering SAS Viya 3.5 Exam Preparation

Add a Comment

Your email address will not be published. Required fields are marked *