Premium

Base SAS Certified Associate: Programming Fundamentals Using SAS Questions and Answers (Dumps and Practice Questions)



Question : You have following array declaration
array Hadoop{xxxx} fee1-fee4;

What is the correct value for xxxx ?

A. 6:9
B. 4
C. 1-4
D. 0-4
E. 0:4

 : You have following array declaration
1. A,B
2. B,C
3. Access Mostly Uused Products by 50000+ Subscribers
4. D,E
5. A,E

Correct Answer : Get Lastest Questions and Answer :
Explanation: Yes, you can use any index range which is equal to the size of array.




Question : You have been given below SAS program

data course100;
set course101;
array fee{4} fee1 fee2 fee3 fee4;
array new_fee{4} nfee1 nfee2 nfee3 nfee4;

xxxxx
put _all_;
new_fee{index}=fee{index}+fee{index}*.10;
end;
run;

Replace xxxxx with the correct statement, so that all the defined array variables can be processed?

 : You have been given below SAS program
1. do index=1 to 4;

2. do index=0 to 4;

3. Access Mostly Uused Products by 50000+ Subscribers

4. do until index= 4;


Correct Answer : Get Lastest Questions and Answer :
Explanation: You have to start the index and go upto the size of array. Hence it will be 1 to 4.




Question : You have defined below program

data course100;
set course101;
array fee{4} fee1 fee2 fee3 fee4;
array new_fee{4} nfee1 nfee2 nfee3 nfee4;

do index=1 to 4;
put _all_;
new_fee{index}=fee{index}+fee{index}*.10;
end;
run;

what is the index value which can point variable fee3 and nfee4

 : You have defined below program
1. 3 , 4

2. 4, 4

3. Access Mostly Uused Products by 50000+ Subscribers

4. 4, 4


Correct Answer : Get Lastest Questions and Answer :
Explanation: Array variables can be referenced by their index position, in this case we will have fee3 at index 3 and nfee4 at index 4 .
Hence, 1st option is correct.



Related Questions


Question : The following SAS program is submitted:

proc means data = sasuser.shoes;
where product in ('Sandal' , 'Slipper' , 'Boot');
run;
Which one of the following ODS statements completes the program and sends the report to an HTML file?

 : The following SAS program is submitted:
1. ods html = 'sales.html';
2. ods file = 'sales.html';
3. Access Mostly Uused Products by 50000+ Subscribers
4. ods html file = 'sales.html';



Question :

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?

 :
1. Fail
2. Pass
3. Access Mostly Uused Products by 50000+ Subscribers
4. . (missing numeric value)


Question :

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

 :
1. 1
2. 2
3. Access Mostly Uused Products by 50000+ Subscribers
4. 6


Question :

The following SAS program is submitted:
proc datasets lib = sasuser;
contents data = class varnum;
quit;
Which one of the following is the purpose of the VARNUM option?

 :
1. to print a list of variable names
2. to print the total number of variables
3. Access Mostly Uused Products by 50000+ Subscribers
4. to print a list of the variables in the order they were created


Question :

The following SAS program is submitted:
proc contents data = sasuser.airplanes;
run;
Which one of the following is produced as output?

 :
1. the data portion of every data set in the SASUSER library
2. the data portion of the data set SASUSER.AIRPLANES only
3. Access Mostly Uused Products by 50000+ Subscribers
4. the descriptor portion of the data set SASUSER.AIRPLANES only


Question : 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 raw data file is listed below:
1. 0
2. 2
3. Access Mostly Uused Products by 50000+ Subscribers
4. No data set is created as the program fails to execute due to errors.