By admin | October 28, 2009

SAS Certified Adv Programmer 130 Questions (6)

The following SAS program is submitted:

data one;
    do i = ito 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?

A. any integer between 1 and 10
B. any real number between 0 and 1
C. any integer between 1 and 2,500,000
D. any real number between 1 and 2,500,000

2 comments | Add One

  1. admin - 10/28/2009 at 10:17 am

    C

  2. Consty - 02/16/2013 at 4:22 pm

    C: ranuni(0)*totobs generate number between 0 and 2,500,000 thus…

Leave a Comment

Leave a Reply

Your email address will not be published.