[Nov-2023] A00-231 Dumps PDF - A00-231 Real Exam Questions Answers [Q82-Q106]

Share

[Nov-2023] A00-231 Dumps PDF - A00-231 Real Exam Questions Answers

A00-231 Dumps 100% Pass Guarantee With Latest Demo


The SASInstitute A00-231 exam is aimed at professionals who are involved in data analysis, data management, and reporting. It is also suitable for individuals who are interested in pursuing a career in the field of data analytics. A00-231 exam is an excellent opportunity for individuals to showcase their knowledge and skills in SAS programming and to gain recognition for their expertise.

 

NEW QUESTION # 82
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?

  • A. 3 temporary and 2 permanent SAS data sets are created
  • B. 2 temporary and 1 permanent SAS data sets are created
  • C. there is an error and no new data sets are created
  • D. 2 temporary and 2 permanent SAS data sets are created

Answer: C


NEW QUESTION # 83
The 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)

Answer: B


NEW QUESTION # 84
The 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 'Monday, April 25, 2000'
  • B. a character string with the value '04/25/2000'
  • C. the numeric value 04252000, representing the SAS date for April 25, 2000
  • D. the numeric value 14725, representing the SAS date for April 25, 2000

Answer: D


NEW QUESTION # 85
The following SAS program is submitted:

What is produced as output?

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

Answer: D


NEW QUESTION # 86
The 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?

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

Answer: D


NEW QUESTION # 87
Given the data sets below:
WORK.EMP with variables:

WORK.NEWHIRE with variables:

The following SAS program is submitted:

The SAS data set WORK.EMP has 50 observations, and the data set WORK.NEWHIRE has 4 observations.
How many variables will the data set WORK.ALLEMP contain?

  • A. 0
  • B. 1
  • C. 2
  • D. The program fails execution.

Answer: A


NEW QUESTION # 88
Which statement correctly computes the average of four numerical values?

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

Answer: B


NEW QUESTION # 89
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?

  • A. ---- I----10---I----20---I----30 Alfr14 Alic13 Barb13a Carol 4
  • B. ----I----10---I----20---I----30 Alfred14 Alice13 Barbara13 Carol14
  • C. ----I----10---I----20---I---- 30 Alfred 14 Alice 13 Barbara 13 Carol 14
  • D. ----I----10---I----20---I----30 Alfr14ed Alic130 Barb13ara Caro141

Answer: A


NEW QUESTION # 90
The 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. No output is generated as the program fails to execute due to errors.
  • B. a raw data file only
  • C. a SAS data set named GROUP and a raw data file
  • D. a SAS data set named GROUP only

Answer: C


NEW QUESTION # 91
Given the following raw data records:

The following output is desired:

Which SAS program correctly reads in the raw data?

  • A. Option C
  • B. Option D
  • C. Option A
  • D. Option B

Answer: B


NEW QUESTION # 92
This question will ask you to provide a missing option. Given the following SAS program:

Which option needs to be added to wrap the labels to the next line whenever it encounters an asterisk?

  • A. wrap = '*'
  • B. split = '*'
  • C. labelsplit = '*'
  • D. label = '*'

Answer: C


NEW QUESTION # 93
What is the purpose or the MISSOVER option on the INFILE statement?

  • A. 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.
  • 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 prevents SAS from loading a new record when the end of the current record is reached.

Answer: D


NEW QUESTION # 94
Consider 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 assignment statement is fine, but the value of City will be truncated to 8 bytes as theLENGTH 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 RETAIN statement is fine, but the value of City will be truncated to 8 bytes as theLENGTH statement has been omitted.
  • D. City's value will be assigned one time, State's value 5 times.

Answer: D


NEW QUESTION # 95
A 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:
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, High, and Unknown only
  • B. Low, Medium, and High only
  • C. Low, Medium, High, Unknown, and '' (missing character value)
  • D. Low, Medium, and Unknown only

Answer: D


NEW QUESTION # 96
Which 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;set mydata;run;
  • C. libname sasdata 'SAS-data-library';data sasdata.mydata;save mydata;run;
  • D. libname sasdata 'SAS-data-library';data sasdata.mydata;keep mydata;run;

Answer: B


NEW QUESTION # 97
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?

  • 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;

Answer: B


NEW QUESTION # 98
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?

  • A. No values are stored for the TYPE and COLOR variables.
  • B. type colordaisyyellow" "(missing character value)
  • C. type colordaisy ellow
  • D. type colordaisygreen

Answer: C


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

  • A. WINXP
  • B. CSVALL
  • C. MSOFFICE2K
  • D. EXCELXP

Answer: A


NEW QUESTION # 100
CORRECT TEXT
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?
Enter your numeric answer in the space below.

Answer:

Explanation:
2


NEW QUESTION # 101
Given the data set WORK.EMPDATA:

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

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

Answer: C


NEW QUESTION # 102
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?

  • A. chem2
  • B. ' ' (missing character value)
  • C. Unknown
  • D. Senior Chemist

Answer: C


NEW QUESTION # 103
The Excel workbook REGIONS.XLSX contains the following four worksheets:
EAST
WEST
NORTH
SOUTH
The following program is submitted:
libname MYXLS XLSX 'c:\ data\ regions.xlsx';
Which PROC PRINT step correctly displays the NORTH worksheet?

  • A. proc print data=MYXLS.NORTH;run;
  • B. proc print data=MYXLS.'NORTH'e;run;
  • C. proc print data=MYXLS.'NORTH$'n;run;
  • D. proc print data=MYXLS.NORTH.XLSX;run;

Answer: C


NEW QUESTION # 104
The 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. 0
  • B. 1
  • C. 2
  • D. 3

Answer: A


NEW QUESTION # 105
The 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. Both LocalFee and CountryFee have a format of percent7.2
  • B. The data step fails execution; there is no format for LocalFee.
  • C. LocalFee has format of 9. and CountryFee has a format of percent7.2
  • D. LocalFee has format of 9. and CountryFee has a format of 7.

Answer: A


NEW QUESTION # 106
......

Dumps Real SASInstitute A00-231 Exam Questions [Updated 2023]: https://testking.vceprep.com/A00-231-latest-vce-prep.html