nerdexam
SAS_Institute

A00-212 · Question #152

The following SAS program is submitted: %let name = Patel's Restaurant; Which one of the following statements avoids problems associated with the unbalanced quotation mark?

The correct answer is D. %let name = %str(Patel%'s Restaurant). See the full explanation below for the reasoning.

Question

The following SAS program is submitted:

%let name = Patel's Restaurant; Which one of the following statements avoids problems associated with the unbalanced quotation mark?

Options

  • A%let name = Patel%'s Restaurant;
  • B%let name = %str(Patel's Restaurant);
  • C%let name = Patel%str(')s Restaurant;
  • D%let name = %str(Patel%'s Restaurant);

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    15% (4)
  • C
    11% (3)
  • D
    70% (19)

Community Discussion

No community discussion yet for this question.

Full A00-212 Practice