The contents of the raw data file TYPECOLOR are listed below:
---------10--------20--------30
daisyyellow
daisyyellow
The following SAS program is submitted:
data flowers;
infile 'typecolor';
input type $ 1-5 +1 color $;
run;
infile 'typecolor';
input type $ 1-5 +1 color $;
run;
Which one of the following represents the values of the variables TYPE and COLOR?
A. type color
daisy yellow
A. type color
daisy yellow
B. type color
daisy ellow
C. type color
daisyyellow (missing character value)
D. No values are stored as the program fails to execute due to syntax errors.
7 comments:
Answer: B
data flowers;
input type $ 1-5 +1 color $;
cards;
daisyyellow
;
run;
This prg its read full data value
data flowers1;
input type $ 1-5 +1 color $;
cards;
daisy yellow
;
run;
Good question for SAS Certification.
Answer is B:
data flowers1;
input type $ 1-5 +1 color $;
cards;
daisyyellow
;
(nb:a CARDS statement do not need 'run statement' as by DATALINES)
Output is Daisy Ellow
+1 means an extra position to the left, it is LIST INPUT (non modified list) so it is based on positions, not on delimiters.
Answer is B.
Oops: extra position to the left, must be to the right
Meta aims to provide a value effective, reliable and a major quality service to all or any or any our tutorial institutions, students, of us and our business associates. we tend to tend to unit proud that we tend to tend to unit praised by quite 3000 happy students for our direction and admission steering support services.Management admission in Abroad
For latest and updated SAS certification dumps in PDF format contact us at completeexamcollection@gmail.com.
Refer our blog for more details
http://completeexamcollection.blogspot.in/2015/12/sas-certification-dumps.html
Post a Comment