nerdexam
SAS_Institute

A00-202 · Question #61

The following SAS program is submitted: data one; do i = 1 to 10; ptobs = ceil(ranuni(0) * totobs); set temp point = ptobs nobs = totobs; output; end; stop; run; The SAS data set TEMP contains…

The correct answer is D. any integer between 1 and 2,500,000. See the full explanation below for the reasoning.

Question

The following SAS program is submitted:

data one; do i = 1 to 10; ptobs = ceil(ranuni(0) * totobs); set temp point = ptobs nobs = totobs; output; end; stop; run; The SAS data set TEMP contains 2,500,000 observations. Which one of the following represents the possible values for PTOBS?

Options

  • Aany real number between 0 and 1
  • Bany integer between 1 and 10
  • Cany real number between 1 and 2,500,000
  • Dany integer between 1 and 2,500,000

How the community answered

(21 responses)
  • A
    5% (1)
  • B
    14% (3)
  • C
    10% (2)
  • D
    71% (15)

Community Discussion

No community discussion yet for this question.

Full A00-202 Practice