Professor Gurwitz

CIS 3 Sample Final Exam Questions

  1. What is a client? Give two examples of clients and describe their activities. What is a server? Give two examples of servers and describe their activities.

  2. What is IP? What is TCP? What's the difference?

  3. Suppose you wanted to use the Internet to look for a recipe for cheesecake. One possiblity is to use a subject tree to look up the recipe. Another possibility is to use a search engine to do this.
    1. Name one example of a subject tree.
      Describe in detail how you would use a subject tree to look up the recipe.
    2. Name one example of a search engine.
      Describe in detail how you would use a search engine to look up the recipe.

  4. Suppose you want to post some material on your home page that your instructor finds offensive. Does your instructor have the right to censor the material you post on your home page? Does it make a difference whether you are posting your home page on a Brooklyn College web server, or through your own Internet Service Provider (or your own server, if you had one)? Does it make a difference whether the controversial material is political or pornographic in nature? Does it make a difference whether your page will be linked to from the official course home page?

  5. Write a Web page that contains the following information in a nice table:


    Current Inventory
    Product Price Quantity
    Gum balls$0.05250
    Lollipops$0.10500
    Chocolate bars$0.50340

  6. The Hungarian flag has three horizontal bars of equal size, red, white and green: Write an HTML file that will display the flag.

  7. Write an HTML file that contains a survey for a fast food chain. It asks the user to enter his/her name and then pick one of seven mutually exclusive choices indicating the drink he or she prefers:

    soda, diet soda, juice, milk, coffee, tea, water

    Once the user makes the choice, he or she clicks on a button labeled "send survey".

  8. What does CGI add to the web? Why couldn't you write any CGI programs this semester? What advantage does JavaScript have over CGI? What advantage does CGI have over JavaScript?

  9. I found the following entries in my Netscape "cookie" file:
    .disney.com	TRUE	/	FALSE	946684799	DISNEY	146.245.1.48453846000396215
    .nytimes.com	TRUE	/	FALSE	946684799	ID	7),'5*$ß
    .yahoo.com	TRUE	/	FALSE	915145200	Y	v=1&n=34tcq7jfu06rd
    www.netscape.com	FALSE	/	FALSE	942189160	NGUserID	cfc84949-18756-893870965-1
    
    www.sci.brooklyn.cuny.edu	TRUE	/cgi-bin/gurwitz	FALSE	927936000	soda	coke
    www.sci.brooklyn.cuny.edu	TRUE	/~arnow	FALSE	927936000	soda	pepsi
    www.sci.brooklyn.cuny.edu	TRUE	/	FALSE	927936000	soda	sprite
    
    1. What is a cookie? Why is it useful? Why do some people object to having cookies set?
    2. What can you tell about which sites I've visited?
    3. The last three entries are somewhat similar, yet have important differences. Explain the differences between the last three entries.

  10. What is the difference between Java and JavaScript? What can one do with Java that you can't so with JavaScript? What is easy to do in JavaScript, but not in Java?