The following SAS program is submitted:
libname sasdata 'SAS-data-library';
data test;
set sasdata.chemists;
if jobcode = 'chem3'
then description = 'Senior Chemist';
else description = 'Unknown';
run;
A value for the variable JOBCODE is listed below:
JOBCODE
CHEM3
Which one of the following values does the variable DESCRIPTION contain?
A. chem3
B. Unknown
C. Senior Chemist
D. ' ' (missing character value)Click Comment link to get answer
Answer is B.
ReplyDeleteb
ReplyDeletecould anybody explain the answer?
ReplyDeleteif "CHEM3" = "chem3" is false because string comparision is case sensitive, hence answer is B.
ReplyDelete"d"
ReplyDeleteAnswer is B.
ReplyDeleteThis site is very useful. ThanX..!!
Answer is B.
ReplyDeletePlease keep posting more questions. It is very helpful
ReplyDeleteAnswer is B.
ReplyDeleteHi All, Please keep more questions. It is very helpfull to us. I have a question regarding the answers. This all questions are based on base sas certification exam righr( previous papers). If we revised these questions we can pass or we can study some more materials?
ReplyDeleteSakar Sham;
ReplyDeleteFolks did you realize how the question is asked between 17 and 18.
I think this one asked CHEM3 in capital letter as JOBCODE. Where as in 17 chem3.
If you consider that capital letter has nothing to do then the answer is straight forward C. and my answers sheet says C.
Try this code: the description "Senior Chemist" will only occur with chem3
ReplyDeletedata chemists;
infile datalines;
input jobcode $;
datalines;
chem3
Chem3
CHEM3
cHEm3
;
run;
data test;
set chemists;
if jobcode = 'chem3'
then description = 'Senior Chemist';
else description = 'Unknown';
run;
Why is D not the answer?
ReplyDeleteAnswer is B. Try this
ReplyDeletedata chemists;
infile datalines;
input jobcode $;
datalines;
JOBCODE
CHEM3
;
run;
data test;
set chemists;
if jobcode = 'chem3'
then description = 'Senior Chemist';
else description = 'Unknown';
run;
gm;;;
ReplyDeleteb
Very helpful suggestions that help in the optimizing website.
ReplyDeletethank for sharing the link.
gclub online
goldenslot
B
ReplyDelete