Quiz

Select the best answer for each question. After completing the quiz, check your answers using the answer key in the appendix.
  1. Placing the subsetting IF statement at the top rather than near the bottom of a DATA step results in a savings in CPU usage. What happens if the subset is large rather than small?
    1. The savings in CPU usage increases as the subset grows larger because the I/O increases.
    2. The savings in CPU usage decreases as the subset grows larger. However, placing the subsetting IF statement at the top of a DATA step always uses fewer resources than placing it at the bottom.
    3. The savings in CPU usage remains constant as the subset grows larger. However, placing the subsetting IF statement near the bottom of a data set is preferable.
    4. The savings in CPU usage decreases as the subset grows larger. However, placing the subsetting IF statement near the bottom of a data set increases the I/O.
  2. Which of the following statements is true about techniques that are used for modifying data and attributes?
    1. You can use PROC DATASETS to modify both data values and variable attributes.
    2. You can use PROC DATASETS to modify only data values.
    3. You can use the DATA step to modify both data values and variable attributes.
    4. You can use the DATA step to modify only variable attributes.
  3. For selecting observations, is a subsetting IF statement or a WHERE statement more efficient? Why?
    1. A subsetting IF statement is more efficient because it loads all observations sequentially into the program data vector.
    2. A subsetting IF statement is more efficient because it examines what is in the input buffer and selects observations before they are loaded into the program data vector, which results in a savings in CPU operations.
    3. A WHERE statement is more efficient because it loads all observations sequentially into the program data vector.
    4. A WHERE statement is more efficient because it examines what is in the input page buffer and selects observations before they are loaded into the program data vector, which results in a savings in CPU operations.
  4. When is it more advantageous to create a temporary SAS data set rather than a permanent SAS data set?
    1. When the external file on which the data set is based might change between SAS sessions.
    2. When the external file on which the data set is based does not change between SAS sessions.
    3. When the data set is needed for more than one SAS session.
    4. When you are converting raw numeric values to SAS data values.
  5. When you compare the technique of using multiple DATASETS procedures to using a single DATASETS procedure to modify the descriptor portion of a data set, which is true?
    1. A one-step DATASETS procedure results in an increase in I/O operations.
    2. Multiple DATASETS procedures result in a decrease in I/O operations.
    3. A one-step DATASETS procedure results in a decrease in CPU usage.
    4. Multiple DATASETS procedures result in a decrease in CPU usage.
..................Content has been hidden....................

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