nerdexam
SAS_Institute

A00-281 · Question #3

Given the following data set DEMOG: Which selection below would be considered hard-coding?

The correct answer is B. if site eq 1 then sexcd = 2. See the full explanation below for the reasoning.

Question

Given the following data set DEMOG:

Which selection below would be considered hard-coding?

Exhibit

A00-281 question #3 exhibit

Options

  • Aif sexcd eq 1 then sex = "Male" ;
  • Bif site eq 1 then sexcd = 2 ;
  • Cif site eq 1 and sexcd ne 2 then check = 1 ;
  • Dbirthdt = input(dob, mmddyy10.) ;

How the community answered

(62 responses)
  • A
    3% (2)
  • B
    76% (47)
  • C
    6% (4)
  • D
    15% (9)

Community Discussion

No community discussion yet for this question.

Full A00-281 Practice