Premium

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



Question : The following SAS program is submitted:
proc contents data = sashelp.class varnum; quit;
What does the VARNUM option print?
 : The following SAS program is submitted:
1. a list of variable names
2. the total number of variables
3. Access Mostly Uused Products by 50000+ Subscribers
4. a list of the variables in the order they were created


Correct Answer : Get Lastest Questions and Answer :




Question : The following SAS program is submitted:
data test;
set chemists;
itjobcode = `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?

  : The following SAS program is submitted:
1. chem2
2. Unknown
3. Access Mostly Uused Products by 50000+ Subscribers
4. '' (missing character value)

Correct Answer : Get Lastest Questions and Answer :

Explaination :





Question :

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?

 :
1. MPG is not a numeric variable.
2. LOAD is not a variable in the data set GT100.
3. Access Mostly Uused Products by 50000+ Subscribers
4. LOAD must be defined prior to the SET statement.

Correct Answer : Get Lastest Questions and Answer :


Related Questions


Question : Which of the given procedure can generate below output

 : Which of the given procedure can generate below output
1. proc freq data=course2017 ;
TABLES COURSE_NAME*FEE ;
run;

2. proc freq data=course2017 ;
VAR COURSE_NAME*FEE ;
run;

3. Access Mostly Uused Products by 50000+ Subscribers
CLASS COURSE_NAME*FEE ;
run;

4. proc freq data=course2017 ;
BY COURSE_NAME*FEE ;
run;



Question : Which of the following procedure will generate given output?

 : Which of the following procedure will generate given output?
1. proc freq data=course2017 ;
TABLES COURSE_NAME*FEE nofreq norow nocol; ;
run;

2. proc freq data=course2017 ;
TABLES COURSE_NAME*FEE LIST nofreq norow nocol; ;
run;

3. Access Mostly Uused Products by 50000+ Subscribers
TABLES COURSE_NAME*FEE / nocol; ;
run;

4. proc freq data=course2017 ;
TABLES COURSE_NAME*FEE / nofreq norow nocol; ;
run;



Question : You have been asked to create a report in various formats. You have started to write SAS program to generate the reports. How many types of
output you can generate using ODS statement?

 : You have been asked to create a report in various formats. You have started to write SAS program to generate the reports. How many types of
1. 1

2. 2

3. Access Mostly Uused Products by 50000+ Subscribers

4. As such there is no limit



Question : In your SAS program, you have defined following ODS statement. Which type of output will be created assuming all the settings are default
using below ODS statements?
Ods html file=/home/HE.html
Ods pdf file=/home/HE.pdf

 : In your SAS program, you have defined following ODS statement. Which type of output will be created assuming all the settings are default
1. HTML and PDF
2. Only HTML
3. Access Mostly Uused Products by 50000+ Subscribers
4. No output will be created because ODS is closed by default.



Question : You are writing a SAS program to generate the PDF output in a Window based environment. You have been asked to first close the html ods
using following statement
Ods html close;
Why?

 : You are writing a SAS program to generate the PDF output in a Window based environment. You have been asked to first close the html ods
1. It is good programming practice

2. It will format your code in HTML format

3. Access Mostly Uused Products by 50000+ Subscribers

4. Previously running SAS program can be stopped before running current program



Question : You have written following SAS program
ods html body='/folders/myfolders/hadoopexam/hesample101.html';
proc print data=course2017 ;
var COURSE_ID COURSE_NAME LOCATION FEE DATE DURATION ;
run;
proc print data=course2017 (Obs=5);
var COURSE_ID COURSE_NAME LOCATION FEE DATE DURATION ;
run;
ods html close;
ods html path="%qsysfunc(pathname(work))";

What would be the result, expected once this program will be executed?

 : You have written following SAS program
1. It will generate an HTML file with single report having 5 observations.

2. It will generate an HTML file with single report having all the observations from course2017 dataset.

3. Access Mostly Uused Products by 50000+ Subscribers

4. It will fail to generate report.