Exam A00-211 All QuestionsBrowse all questions from this exam
Question 51

The following SAS program is submitted:

Which statement is true about the output data set?

    Correct Answer: C

    The variable CharEmpid is assigned the value of EmpId. Since the statement 'length EmpId $6;' specifies that EmpId is a character variable with length 6, CharEmpid will also be a character variable. The program will not fail to execute in this scenario.

Discussion
mhminkov

I see three options: - if EmpId is defined in WORK.DEPARTMENT as numeric, then answer D is correct; - if EmpId is defined in WORK.DEPARTMENT as numeric, then answer C is correct; - if EmpId is not defined in WORK.DEPARTMENT, then also answer C is correct;

KleinstoneOption: C

how about the Charempid is also a character variable?

JKoOption: C

If data set WORK.DEPARTMENT has a numeric variable EmpId, which statement is true about the output dataset?