Chapter Quiz

Select the best answer for each question. Check your answers using the answer key in the appendix.
  1. SAS date values are the number of days since which date?
    1. January 1, 1900
    2. January 1, 1950
    3. January 1, 1960
    4. January 1, 1970
  2. What is an advantage of storing dates and times as SAS numeric date and time values?
    1. They can easily be edited.
    2. They can easily be read and understood.
    3. They can be used in text strings like other character values.
    4. They can be used in calculations like other numeric values.
  3. SAS does not automatically make adjustments for daylight saving time, but it does make adjustments for which one of the following?
    1. leap seconds
    2. leap years
    3. Julian dates
    4. time zones
  4. An input data file has date expressions in the form 10222001. Which SAS informat should you use to read these dates?
    1. DATE6.
    2. DATE8.
    3. MMDDYY6.
    4. MMDDYY8.
  5. What is the minimum width of the TIMEw. informat?
    1. 4
    2. 5
    3. 6
    4. 7
  6. Shown below are date and time expressions and corresponding SAS datetime informats. Which date and time expression cannot be read by the informat that is shown beside it?
    1. 30May2018:10:03:17.2 DATETIME20.
    2. 30May18 10:03:17.2 DATETIME18.
    3. 30May2018/10:03 DATETIME15.
    4. 30May2018/1003 DATETIME14.
  7. Suppose your program creates two variables from an input file. Both variables are stored as SAS date values: FirstDay records the start of a billing cycle, and LastDay records the end of that cycle. What would be the code for calculating the total number of days in the cycle?
    1. TotDays=lastday-firstday;
    2. TotDays=lastday-firstday+1;
    3. TotDays=lastday/firstday;
    4. You cannot use date values in calculations.
Last updated: August 23, 2018
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.74.87