Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Practice Final Exam - Internet-Based Computing | COSC 231, Exams of Computer Science

Material Type: Exam; Professor: Haynes; Class: Internet-Based Computing; Subject: Computer Science; University: Eastern Michigan University; Term: Unknown 1989;

Typology: Exams

2009/2010

Uploaded on 02/24/2010

koofers-user-tdu
koofers-user-tdu 🇺🇸

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Things to think about for COSC 231 Final:
Write a script that moves a small image quickly across the screen in a random direction
every 30 seconds.
What is the proper dot notation to access the width of the current window?
Why is it a good idea to assign an ID to a division you want to position? How would you
position a div that does not have an assigned ID?
Using CSS give 3 ways to specify that all headers will have orange text and pink
background.
How would you change the color of the border of an html document?
Write a page that will cycle through a list of 10 quotes of the day for each visitor. (use a
cookie)
How does one delete a cookie?
List and describe the six cookie ingredients.
When would you use a Javascript variable and when would you use a cookie?
What is the code to increment a cookie value by 1?
What is the code to test a cookie value and delete the cookie if the value is less than 0?
Write a form that asks the user to review a user-specified movie. The form should have
fields for:
Name of movie
Date viewed
Rating 1 – 5
Comments
The user should be able to submit and clear the form.
The form should “automatically” clear when the page is reloaded.
The form should be submitted to probative.org/handleForm.php
What is a hidden form element? What is it used for?
What is the difference between a text box and text area?
Give two examples (and code) of useful tasks you can perform on text boxes or textareas
with event handlers?
How can you prevent a field from being modified by the user?
pf3

Partial preview of the text

Download Practice Final Exam - Internet-Based Computing | COSC 231 and more Exams Computer Science in PDF only on Docsity!

Things to think about for COSC 231 Final: Write a script that moves a small image quickly across the screen in a random direction every 30 seconds. What is the proper dot notation to access the width of the current window? Why is it a good idea to assign an ID to a division you want to position? How would you position a div that does not have an assigned ID? Using CSS give 3 ways to specify that all headers will have orange text and pink background. How would you change the color of the border of an html document? Write a page that will cycle through a list of 10 quotes of the day for each visitor. (use a cookie) How does one delete a cookie? List and describe the six cookie ingredients. When would you use a Javascript variable and when would you use a cookie? What is the code to increment a cookie value by 1? What is the code to test a cookie value and delete the cookie if the value is less than 0? Write a form that asks the user to review a user-specified movie. The form should have fields for: Name of movie Date viewed Rating 1 – 5 Comments The user should be able to submit and clear the form. The form should “automatically” clear when the page is reloaded. The form should be submitted to probative.org/handleForm.php What is a hidden form element? What is it used for? What is the difference between a text box and text area? Give two examples (and code) of useful tasks you can perform on text boxes or textareas with event handlers? How can you prevent a field from being modified by the user?

What is this? What is return? What is the code for a frameset that has (equal sized) 8 elements, arranged in rows of two? How do you change a window’s position once it is open? How do you resize a window once it is open? What does it mean to “save state”? Give five window synonyms supported in JavaScript. Why do you give a window an object name when you open it (in the context of frames)? Why do you name each frame in a frameset? Write the script and html so that a user enters name data to a form in one window of a frameset and the data is displayed in another window in the same frameset. What are some parameters of a window’s open method? Write an HTML document, using a form that lets the user enter today’s date and his birthdate. Then tell the user his age. Repeat requiring only the user’s birthdate. Calculate the square root of a user specified value. What happens when the user enters a negative number? How good is the random number generator? Create a histogram for the numbers 0 – 9. Generate 10,000 random numbers between 0 and 9, each time incrementing the counter for the number generated. Output Zulu time (UTC time) for a user supplied time (and time zone). Do exercise 9, page 289. I.e., given a regular expression, list three strings that will match. What does charAt do? What does substring() do? Write the code: Given two user-specified strings, strSource and strTest. How many times does strTest appear in strSource?