MSc-IT Study Material
June 2010 Edition

Computer Science Department, University of Cape Town

Review Questions

  1. Write down the main purpose of HTML forms.

    Answer at the end of the chapter.

  2. What is CGI software?

    Answer at the end of the chapter.

  3. Is the size of the text a user can enter in a text field limited by the value of the SIZE attribute in the <INPUT> tag?

    Answer at the end of the chapter.

  4. What attribute must be included in a <TEXTAREA> tag to ensure a horizontal scroll bar is included in a multi-line text field?

    Answer at the end of the chapter.

  5. What is wrong with the following HTML? The code should allow the user to specify their seating arrangement, food, and preferred newspaper, for a flight with a particular airline.

     <INPUT TYPE="radio" NAME="flight_prefs" VALUE="veggie">Vegetarian 
        Food<BR>
     <INPUT TYPE="radio" NAME="flight_prefs" VALUE="euro_food">European 
        Food<BR>
     <INPUT TYPE="radio" NAME="flight_prefs" VALUE="midEast_food">Middle 
        Eastern Food<BR>
     <INPUT TYPE="radio" NAME="flight_prefs" VALUE="farEast_food">Far 
        Eastern Food<BR><BR>
     <INPUT TYPE="checkbox" NAME="flight_prefs" VALUE="times">London 
        Times<BR>
     <INPUT TYPE="checkbox" NAME="flight_prefs" VALUE="post">Washinton 
        Post<BR>
     <INPUT TYPE="checkbox" NAME="flight_prefs" VALUE="figaro">Le 
        Figaro<BR><BR>
     <INPUT TYPE="radio" NAME="flight_prefs" VALUE="aisle">Aisle 
        Seat <BR>
     <INPUT TYPE="radio" NAME="flight_prefs" VALUE="window">Window 
        Seat<BR>
     <INPUT TYPE="radio" NAME="flight_prefs" VALUE="middle">Middle 
        Seat<BR><BR>
     

    Answer at the end of the chapter.

  6. How do you set the initial state of a check box?

    Answer at the end of the chapter.

  7. How do menu buttons and scrolling lists differ in how they save space on a Web page?

    Answer at the end of the chapter.

  8. Create a scrolling list that shows four items from the following list of personal computer processor types: Motorola 68000, Intel 8088, Intel Pentium MMX, Intel Pentium II, Intel Pentium III, Intel Celeron, PowerPC G3, PowerPC G4, AMD Athlon.

    Answer at the end of the chapter