Download SASInstitute.A00-211.PassGuide.2018-06-19.131q.vcex

Download Exam

File Info

Exam SAS Base Programming for SAS (r) 9
Number A00-211
File Name SASInstitute.A00-211.PassGuide.2018-06-19.131q.vcex
Size 2 MB
Posted Jun 19, 2018
Download SASInstitute.A00-211.PassGuide.2018-06-19.131q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

Given the SAS data set EMPLOYEES:
EMPLOYEES 
NAME  SALARY 
--------   ------------ 
Innis    60000 
Jolli    50000 
Ellis    55000 
Liu    45000 
The following SAS program is submitted:
proc print data = employees; where name like ‘_i%’; 
run; 
What is contained in the output?


  1. Liu only
  2. Innis and Ellis only
  3. Innis, Ellis, and Liu only
  4. Innis, Jolli, Ellis, and Liu
Correct answer: A



Question 2

Given the SAS data set ONE:
ONE 
Obs    Dte 
-----    -------- 
1    09JAN2005 
2    12JAN2005 
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     
Obs    Dte    Day 
1    09JAN2005    1 
12    JAN2005    4 
Which expression successfully completed the program and created the variable DAY?


  1. day(dte)
  2. weekday(dte)
  3. dayofweek(dte)
  4. datdif(dte,’01jan2005’d,’act/act’)
Correct answer: B



Question 3

Read the table:
  
Given the SAS data set SASUSER.HOUSES:
Obs    style    bedrooms    baths    price    sqteet    street 
1    CONDO    2    1.5    80050    1200    MAIN 
2    CONDO    3    2.5    79350    1300    ELM 
3    CONDO    4    2.5    127150    1400    OAK 
4    CONDO    2    2.0    110700    1100    FIFTH 
5    TWOSTORY    4    3.0    107250    2100    SECOND 
6    TWOSTORY    2    1.0    55650    1600    WEST 
7    TWOSTORY    2    1.0    69250    1450    NORTH 
6    TWOSTORY    4    2.5    102950  2000    SOUTH 
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?


  1. define style / width = 9,
  2. define style / orderwidth = 9;
  3. define style / group width = 9;
  4. define style / display width = 9;
Correct answer: C



Question 4

Given the SAS data set WORKAWARDS:
WORK.AWARDS 
FNAME    POINTS    MONTH 
-----------    ------------    ----------- 
Amy    2    4 
Amy    1    7 
Gerard    3    3 
Wang    3    3 
Wang    1    12 
Wang    1    8 
The following SAS program is submitted:
proc sort data = work.awards; 
by descending fname points; 
run; 
How are the observations sorted?


  1. ENAME POINTS MONTH 
    Wang    3    3 
    Wang    1    12 
    Wang    1    8 
    Gerard    3    3 
    Amy    2    4 
    Amy    1    7
  2. ENAME POINTS MONTH 
         Amy    2    4 
    Amy    1    7 
    Gerard    3    3 
    Wang    3    3 
    Wang    1    8 
                 Wang    1    12
  3. ENAME POINTS MONTH Wang    3    3 
    Wang    1    8 
    Wang    1    12 
    Gerard    3    3 
    Amy    2    4 
    Amy    1    7
  4. ENAME POINTS MONTH 
    Wang    1    12 
    Wang    1    8 
    Wang    3    3 
    Gerard    3    3 
    Amy    1    7 
    Amy    2    4
Correct answer: A



Question 5

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?


  1. Obsnewdate mdate ddate 
    104/15/2005 APR 6
  2. Obs newdate mdate ddate 
    104/15/2005 4 6
  3. Obs newdate mdate ddate 
    104/15/2005 APR 7
  4. Obs newdate mdate ddate 
    104/15/2005 4 7
Correct answer: B



Question 6

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


  1. 25.31
  2. $25.31
  3. . (missing numeric value)
  4. No value is stored as the program fails to execute due to errors.
Correct answer: C



Question 7

The following SAS program is submitted:
proc contents data = sashelp.class varnum; quit; 
What does the VARNUM option print?


  1. a list of variable names
  2. the total number of variables
  3. a list of the variables in alphabetic order
  4. a list of the variables in the order they were created
Correct answer: D



Question 8

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?


  1. chem2
  2. Unknown
  3. Senior Chemist
  4. ‘ ‘ (missing character value)
Correct answer: B



Question 9

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. LOAD is not variable in the data set AIRPLANES.
  4. LOAD must be defined prior to the SET statement.
Correct answer: C



Question 10

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


  1. 11
  2. 22
  3. 33
  4. (missing numeric value)
Correct answer: B









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files