Quiz 5: EECS 101
  1. (5 points) Complete the following JavaScript function definition so that the function returns the sum of the elements in the array
    function sumArray (__a__) {
        var __b__ = 0;
        for(i=__c__; i<__d__; i++) {
            total = __e__ + X[i];
        }
    }
    
    a. X
    b. total
    c. 0
    d. X.length
    e. total
    


  2. (5 points) Give the frameset definition for a page which looks like:

    a
    bc


    <frameset rows="*,*">
       <frame>
       <frameset cols="*,*>
          <frame>
          <frame>
       </frameset>
    </frameset>