ElearnSAS.com

ElearnSAS.com
SAS Learning Platform

Base SAS 113

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

23 comments:

  1. correct answer is b

    ReplyDelete
  2. Anonymous7:34 AM

    yes,answer is B
    reason: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.

    ReplyDelete
  3. Anonymous4:28 PM

    The column numbers at the top are wrong. They should be:
    ---------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?

    ReplyDelete
  4. It is B...

    data flowers;
    infile datalines;
    input type $ 1-5 +1 color $;
    datalines;
    daisyyellow
    ;
    run;

    ReplyDelete
  5. Anonymous5:11 PM

    Guys;
    What 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.

    ReplyDelete
  6. Answer is B. Please check it out on your Sas software.

    ReplyDelete
  7. Anonymous7:16 PM

    You have mentioned the file name in upper case whereas in the program u mentioned it in lowercase. Is it OK?

    ReplyDelete
  8. data flowers;
    input 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?)

    ReplyDelete
    Replies
    1. Anonymous12:37 PM

      yes Dear ! Yoh have added a space in ur dataline b/w daisy yellow.
      Whereas in Original Data daisyyellow.
      Check it out you will find that the option is B.

      Delete
  9. Anonymous10:23 AM

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

    ReplyDelete
  10. I 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......

    SAS Training in Chennai | Cloud Computing Training in Chennai

    ReplyDelete
  11. I 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!
    Data 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

    ReplyDelete
  12. Very Good Information...

    SAS Training in Pune

    Thank You Very Much For Sharing These Nice Tips..

    ReplyDelete
  13. For get online SAS training in Pune and Mumbai. Techdata Solution is one of the best institute. SAS Training in Pune

    ReplyDelete