SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Quiz: Basic Concepts

Select the best answer for each question and click Score My Quiz.

  1. How many observations and variables does the data set below contain?

    Name Sex Age
    Picker M 32
    Fletcher   28
    Romano F .
    Choi M 42

     a.   3 observations, 4 variables
     b.   3 observations, 3 variables
     c.   4 observations, 3 variables
     d.   can't tell because some values are missing

  2. How many program steps are executed when the program below is processed?
         data user.tables;
            infile jobs;
            input date name $ job $;
         run;
         proc sort data=user.tables;
            by name;
         run;
         proc print data=user.tables;
         run;

     a.   three
     b.   four
     c.   five
     d.   six

  3. What type of variable is the variable AccountNumber in the data set below?

    AccountNumber Balance
    3456_1 M
    2451_2  
    Romano F
    Choi M

     a.   numeric
     b.   character
     c.   can be either character or numeric
     d.   can't tell from the data shown

  4. What type of variable is the variable Wear in the data set below?

    Brand Wear
    Acme 43
    Ajax 34
    Atlas .

     a.   numeric
     b.   character
     c.   can be either character or numeric
     d.   can't tell from the data shown

  5. Which of the following can you use to read numeric values that contain dollar signs and commas into a SAS data set?

     a.   COMMA. informat
     b.   DOLLAR8.2 format
     c.   COMMA4. format
     d.   all of the above

  6. Which of the following files are permanent SAS files?

     a.   Sashelp.Prdsale
     b.   Sasuser.MyProductSales
     c.   Profits.Quarter1_1999
     d.   all of the above

  7. In a DATA step, how can you reference a temporary SAS data set named Forecasts?

     a.   Forecasts
     b.   Work.Forecasts
     c.   Sales.Forecasts (after assigning the libref Sales)
     d.   only a and b above

  8. The format DOLLAR8.2 specifies

     a.   that values be written with eight digits on the left of the decimal point and two on the right.
     b.   that values be read with up to eight digits and two decimal places.
     c.   that values be written with a maximum of eight digits including the decimal point, decimal places, comma, and dollar sign.
     d.   that values with decimals be read and stored with the dollar signs and decimal points removed.

  9. How many statements does the following SAS program contain?
    proc print data=new.prodsales pagesize=20
         nonumber label double;
       var state day price1 price2; where state='NC';
       label state='Name of State'; run; 

     a.   three
     b.   four
     c.   five
     d.   six

  10. What is a SAS library?

     a.   a collection of SAS files, such as SAS data sets and catalogs
     b.   in some operating environments, a physical collection of files
     c.   in some operating environments, a logically related collection of files
     d.   all of the above



back||next

Terms of Use & Legal Information | Privacy Statement