The contents of the raw data file TYPECOLOR are listed below:
---------10--------20--------30
daisyyellow
The following SAS program is submitted:
data flowers;
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
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.
Click Comment link to get answer
correct answer is b
ReplyDeleteb
ReplyDeleteyes,answer is B
ReplyDeletereason:by default sas proceeds to next column. here after reading 5 colums for type the position of the pointer is at y. due to +1 cursor moves to one column more
so the answer is B.
The column numbers at the top are wrong. They should be:
ReplyDelete---------10--------20--------30
daisyyellow
We should be allowed the "pre" tag to display fixed-width code.
Are we to assume that typecolor in:
infile 'typecolor';
is substituted with the path to the file?
If so, B is the correct answer: After input type $ 1-5, the pointer is on the "y", +1 causes the pointer to skip over it.
I hope the real questions were set correctly. Is there any instruction regarding assumptions?
It is B...
ReplyDeletedata flowers;
infile datalines;
input type $ 1-5 +1 color $;
datalines;
daisyyellow
;
run;
b
ReplyDeleteGuys;
ReplyDeleteWhat should we do to take couple word out 5 first word from a 11 word letter?
subsrt is not followed, therefore there is no reason to look at A B and C.
Obviously - Answer is D.
Answer is B. Please check it out on your Sas software.
ReplyDeleteYou have mentioned the file name in upper case whereas in the program u mentioned it in lowercase. Is it OK?
ReplyDeletedata flowers;
ReplyDeleteinput type $ 1-5 +1 color$;
datalines;
daisy yellow
;
run;
output
type color
1 daisy yellow
based on this the answer should be A. Most of you mentioned as B; (am I missing something?)
yes Dear ! Yoh have added a space in ur dataline b/w daisy yellow.
DeleteWhereas in Original Data daisyyellow.
Check it out you will find that the option is B.
B
ReplyDeleteD
ReplyDeleteB
ReplyDeleteE
ReplyDeleted
ReplyDeleteSAS mentions I need a minimum of 70% correct to pass the exam, so is it ok if I mark 70% of the questions correct & 30% wrong, will I still be able to pass the test ????
ReplyDeleteI really liked this part of the article, with a nice and interesting topics have helped a lot of people who do not challenge things people should know... you need more publicize this so many people who know about it are rare for people to know this......
ReplyDeleteSAS Training in Chennai | Cloud Computing Training in Chennai
B
ReplyDeleteI was recommended this web site by means of my cousin. I am now not certain whether this post is written through him as nobody else recognise such precise about my difficulty. You're amazing! Thank you!
ReplyDeleteData Science Training in Indira nagar
Data Science training in marathahalli
Data Science Interview questions and answers
Data Science training in btm layout
Data Science Training in BTM Layout
Data science training in bangalore
Very Good Information...
ReplyDeleteSAS Training in Pune
Thank You Very Much For Sharing These Nice Tips..
For get online SAS training in Pune and Mumbai. Techdata Solution is one of the best institute. SAS Training in Pune
ReplyDeletebetmatik
ReplyDeletekralbet
betpark
mobil ödeme bahis
tipobet
slot siteleri
kibris bahis siteleri
poker siteleri
bonus veren siteler
3FHWFO
FBGFHBFTH
ReplyDeleteشركة مكافحة حشرات بالاحساء