CS 101 Web Construction, Fall 2017, Instructor: Jeffrey Horn GUIDE TO THE FINAL EXAM
SCOPE: The final exam for CS 101 is comprehensive.
TIME: I try to design so that it is easily completed within one hour, leaving students with plenty of time (total time allocated for NMU final exams is 1 hour and 50 minutes) to go over the test, double-checking, etc.
OPEN BOOK: The final, like all of our assessments, is open book, open notes, open use of computers, but you must do your own work! Help from anyone but the instructor is forbidden and must be punished (pretty darn harshly) if detected.
COMPUTER USE: A laptop is not absolutely required to complete this test (which for reasons of reliability will be pencil-and-paper. But it is a good idea to have a laptop with you. You will be allowed to use it to look things up and try things out (e.g., by typing in a bit of html, css, or Javascript). But once again, you must do your own work, so don't be tempted to use your laptop to communicate with others (other humans, that is!).
FORMAT: Mostly multiple choice and fill-in-the-blank. Maybe a few short answer (one or two sentences) questions.
Document Structure: <html><head><title><body><!-- comment -->
Text Spacing and Formatting: <i><b><sub><sup><big><small><strong><cite><hr /><br /><quote>
Text Headings: <h1><h2><h3><h4><h5><h6>
Grouping Text: <p><dif> <span>
Lists: <ul><ol><li>
Tables: <table><tr><td><th><caption>
Forms and Programming: <form><input type="text"><input type="radio"><input type="checkbox"><input type="submit"><textarea><select><script>
Others: <img><a><style>
CSS PROPERTIES you should be aware of (not necessarily complete!)
You should feel comfortable with any of the properties on this handout. By that I do not mean that you are expected to memorize them; just be able to have some idea what each does, if you come across them in some code, and be able to look them up if you need to use them yourself, ever.
JAVASCRIPT COMMANDS you should know (not necessarily complete!)
Javascript Command | Example |
alert | alert("Your age is below the minimum!"); |
if-then-else |
if( age < 0) |
var | var x; |
assignment | x = 1; |
incrementing a variable | x=x+1; or x++; |
assignment to part of a form | document.getElementById("totalPayment").value = cost_of_items + shipping + tax; |
changing any attribute in a web page | document.getElementById("aardvark").width
=
// This assumes that the <img> element has id="aardvark". document.getElementById("aardvark").width + 10; document.getElementById("barnyardAnimal").src = "horse.gif"; // This assumes that the <img> element has id="barnyardAnimal". |
comment |
// Use double slashes for
short, one line comments
/* This is the syntax for comments that span more than one line. You can use whole paragraphs for comments, just by putting the slash-star and star-slash delimiters around the whole thing! */ |