Make your own free website on Tripod.com

Assignment 2



Part 1 - Web Quiz


Multiple Choice:

Question #1: The name 'Java' was chosen for the programming language because:
    A). The creaters were drinking coffee when they came were discussing a name for the language.
    B). The island of Java is where the creaters developed it.
    C). The name is fun to say when drunk.

Question #2: The acronym XML stands for:
    A). Exciting Markup Language
    B). Extensible Markup Language
    C). Extraordinary Margarittas with Lime

Question #3: In JavaScript, the keywords true and false are what data type:
    A). Special
    B). Bullwinkle
    C). Boolean

True or False:

Question #4: The TEXTAREA form element uses the INPUT TYPE="" syntax.
    True
    False

Question #5: To make you radio buttons mutually exclusive you must give them all the same name attribute.
    True
    False

Question #6: You must use a character array in Java to represent strings.
    True
    False


Fill In The Blanks

Question #7: The () event handler is used to have an event occur each time the mouse pointer moves over an object from outside that object.

Question #8: The object displays asterisks(*) when users enter text into its field.

Question #9: The object is also known as the 'Options Array'.





Part 2 - Modify Code


Indicate the search preference below:

Search ALL airlines
Search for ONLY the airline(s):

   Choice 1: 
   Choice 2: 
   Choice 3: 



Part 3 - Applets Page

Applets Page


Part 4

  1. equals(Object obj)
  2. getContent()
  3. getFile()
  4. getHost()
  5. getPort()
  6. getProtocol()
  7. getRef()
  8. hashCode()
  9. openConnection()
  10. openStream()
  11. sameFile(URL other)
  12. set(String protocol, String host, int port, String file, String ref)
  13. setURLStreamHandlerFactory(URLStreamHandlerFactory fac)
  14. toExternalForm()
  15. toString()

Part 5

  1. java.lang.Object
    • java.util.Dictionary
      • java.until.Hashtable
  2. java.lang.Object
    • java.lang.Number
      • java.math.BigDecimal
      • java.math.BigInteger
      • java.lang.Byte
      • java.lang.Double
      • java.lang.Float
      • java.lang.Integer
      • java.lang.Long
      • java.lang.Short
  3. java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception

Part 6


Part 7



Part 8

a) parseInt(String s)
b) toUpperCase()
c) trim() d) indexOf(int ch)

Part 9

1) Simula 67; Dahl and Nygaard.
2) The change of mindset when comparing OO to tradintional computations.