SAS_Institute
A00-212 · Question #77
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 C. 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 integer between 1 and 10
- Bany real number between 0 and 1
- Cany integer between 1 and 2,500,000
- Dany real number between 1 and 2,500,000
How the community answered
(28 responses)- A7% (2)
- B4% (1)
- C82% (23)
- D7% (2)
Community Discussion
No community discussion yet for this question.