Question 7 : The following SAS program is submitted:
data test;
input animal1 $ animal2 $ mlgrams1 mlgrams2;
cards;
hummingbird ostrich 54000.39 90800000.87;
run;
Which one of the following represents the values of each variable in the output data set?
- animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000.39 90800000
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering SAS Certification Material
Correct Answer : 2
Exp : The CARDS statement is an alias for the DATALINES statement. In the INPUT statement, you must specify a dollar sign ($) after the variable name in order to define a character
variable. If you do not specify otherwise, the default storage length for a variable is 8.
You can access to full explanation to question and answer from this page.