Chapter 16: Processing Data with Arrays

  1. Correct answer: a
    An ARRAY statement is not an executable statement; it merely defines an array.
  2. Correct answer: d
    The value in parentheses indicates the number of elements in the array. In this case, there are four elements.
  3. Correct answer: b
    In the DO statement, you specify the index variable that represents the values of the array elements. Then specify the start and stop positions of the array elements.
  4. Correct answer: c
    The index value represents the position of the array element. In this case, the third element is Jul.
  5. Correct answer: b
    To process all the elements in an array, you can either specify the array dimension or use the DIM function with the array name as the argument.
  6. Correct answer: d
    Either numeric or character variables can be created by an ARRAY statement.
  7. Correct answer: a
    At the end of the second iteration, diff{i} resolves as follows:
    diff{2}=wt{2+1}-wt{2}; 
    diff{2}=215-200
  8. Correct answer: a
    To create temporary array elements, specify _TEMPORARY_ after the array name and dimension. Specify an initial value for each element, separated by either blanks or commas, and enclose the values in parentheses.
Last updated: January 10, 2018
..................Content has been hidden....................

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