Practice Quiz 1

  1. You can have frames within frames within frames?
    A. true
    B. false
  1. <FRAMESET COLS="250,*"> is syntactically correct
    A. true
    B. false
  1. Which pattern will work for
    var pattern = /(\w+)\s(\d+)/;

    A. Jon 32
    B. Main St
    C. number1
    D. SF 49ers

For Question 4

<SCRIPT>

function load(url) {
     parent.main.location.href = url;
}

</SCRIPT>

<A HREF="javascript:load('first.htm')">first</A>
<A HREF="second.htm" TARGET="main">second</A>

  1. the two links above do the same thing
    A. true
    B. false
  1. self always refers to the top
    A. true
    B. false
  1. match() is similar to
    A. split()
    B. replace()
    C. indexOf()
    D. none of the above
  1. you can theoretically have parent.parent.parent.Something
    A. true
    B. false
  1. It is possible to call functions in other frames or even in parent that "spawned" the frames
    A. true
    B. false
  1. parent.frames[1].frames[1].Something is theoretically possible
    A. true
    B. false
  1. if (self.location != top.location) self.location = top.location;
    says the page needs to be within a frame
    A. true
    B. false

You have:    answers correct out of a possible ten.

The question numbers that were not correct are: