The following SAS program is submitted:
data work.test;
type='SQL';
if type='SAS' then description='SAS Program';
else description='other'; length description 8;
run;
What occurs when the program is submitted?
Select one:
Suggested Answer: D
Get Premium A00-231 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
25 comments · newest first
HY
Hyman
2 days ago
C makes sense, but I still doubt it.
MA
Marya
7 days ago
I lean towards C. 8 bytes for 'SAS Prog' seems right.
MA
Mariann
12 days ago
But there's no syntax error in the code.
ME
Melvin
18 days ago
I feel like it's D. The DATA step might fail.
FA
Fausto
23 days ago
It matches the length and value.
SA
Salome
28 days ago
Why A?
FA
Fausto
1 month ago
I think the answer is A.
JE
Jettie
1 month ago
Definitely not option D, the code looks fine.
DA
Dante
1 month ago
I'm surprised the DATA step doesn't fail with that length!
LA
Laine
2 months ago
Wait, isn't 'SAS Program' longer than 8 bytes?
RO
Rosalind
2 months ago
I think it's option C, sounds right to me!
LA
Lavera
2 months ago
The length of description is set to 8 bytes.
PE
Pete
2 months ago
How can it be 11 bytes if the length is set to 8? Sounds off.
NA
Nan
2 months ago
Definitely going with option A, seems right to me!
GE
Geraldo
2 months ago
Wait, isn't 'SAS Program' longer than 8 bytes?
BE
Benedict
3 months ago
I think it should be option C!
MA
Mammie
3 months ago
The variable Description is created as an 8-byte character variable.
ER
Ernie
3 months ago
I recall that if the length is set to 8, it should only store up to 8 characters, but I can't remember if it would truncate 'SAS Program' correctly.
MI
Mica
3 months ago
I practiced a similar question where the length statement caused confusion. I feel like the answer might be C, but I'm not completely confident.
AL
Allene
3 months ago
I think the length of 'description' is set to 8 bytes, so it might truncate the value if it's longer than that.
AD
Adelina
4 months ago
I remember that the length statement defines the variable size, but I'm not sure if it affects the actual value assigned.
ST
Stephanie
4 months ago
I’m leaning towards option A, but I’m a bit confused about how the length statement interacts with the assignment.
MA
Marta
4 months ago
I feel like the description variable should be longer than 8 bytes if it’s supposed to hold 'SAS Program'... but I can't recall the exact details.
RO
Roslyn
4 months ago
I think I practiced a similar question where the length was set to 8 bytes, so maybe that's the right answer here?
WH
Whitley
6 months ago
I remember that the length statement defines the variable size, but I'm not sure if it affects the value assigned.