Spring 2015 CSCI 107 Final Exam Review

The Practical

The practical will be a timed exercise in creating a web page using HTML, CSS and a tiny bit of JavaScript. If you completed the HTML and CSS labs and homework, you know enough HTML and CSS. If you can cause the border of an HTML element to change color 5 seconds after a page is loaded, as we did in the JavaScript II lab, or to make the border of an HTML element change color every 2 seconds, as we did in the the first part of the JavaScript III lab, you know enough JavaScript.

The Ordinary

Take a look at the two exams and the two exam reviews:

All questions regarding the parts of the course covered in Exams 1 or 2 will be similar to questions you saw on Exams 1 or 2. (Hint: Know the three control structures of programming.)

Also, Take a look at that book chapter on humans vs computers. and review Appendix A of HTML5: The Missing Manual.

You will be provided with copies of these sections of CSS and JavaScript for the ordinary section to help you with the syntax.

/* The starter CSS */
h1 {
  text-align:center;
  color:green;
}

p#parting {
  border-width: medium ;
  border-style: solid ;
  border-color: red ;
}
/* The starter JavaScript */

/*jslint browser:true */

function changePartingBorderColor() {
    'use strict';
    var partingElement = document.getElementById("parting");
    partingElement.style.borderColor = "purple";
}

function changePartingQuote() {
    'use strict';
    var partingElement = document.getElementById("parting");
    partingElement.innerHTML = "To be, or not to be: that is the question";
}

function startup() {
    'use strict';
    setTimeout(changePartingBorderColor, 10000);
    var partingElement = document.getElementById("parting");
    partingElement.onclick = changePartingQuote;
}

window.onload = startup;

Fall 2015

Next Fall, I am teaching CSCI 107 and CSCI 255. If you have any suggestions for CSCI 107, send me email. If you are interested in how computers work, take CSCI 255. It’s a mixture of basic logic and basic computer programming and hasn’t changed that much since the 60’s.