nerdexam
SAS_Institute

A00-212 · Question #129

The following SAS program is submitted: data two; y = '2'; run; %let x = 10; %let var = y; data one; set two (keep = &var); z = &var * &x; run; Which one of the following is the value of the…

The correct answer is B. 20 (as a numeric). See the full explanation below for the reasoning.

Question

The following SAS program is submitted:

data two; y = '2'; run; %let x = 10; %let var = y; data one; set two (keep = &var); z = &var * &x; run; Which one of the following is the value of the variable Z when the program finishes execution?

Options

  • AERROR
  • B20 (as a numeric)
  • C20 (as a character)
  • D. (missing numeric)

How the community answered

(32 responses)
  • A
    9% (3)
  • B
    78% (25)
  • C
    3% (1)
  • D
    9% (3)

Community Discussion

No community discussion yet for this question.

Full A00-212 Practice