Docsity

Study Guide for Test 2 - General Applications Programming | CSCE 102, Exams of Computer Science

Toggle sidebar
bg1
CSCE 102 - Sections 13, 14, 15 Study Guide for Test 2
Chapter 5:
What are image maps?
Different image map shapes (rectangle, polygon, circle)
How to use the shapes – what coordinates do we use?
How to tell the image to use a particular image map
How to give a id/name to an image map
Chapter 6:
Given the code be able to draw the frames
Given the frames be able to write the code
Understand the target attribute of an anchor tag
Understand the frame tag – id, name, src attributes
What tag does the frameset tag replace?
How to use the positioning properties of CSS
Chapter 7:
What is Javascript? What type of language is it?
What is a scripting language?
Given the code for an alert be able to write the output
Given the output of an alert be able to write the code for it
Script element and javascript events (onclick, onmouseover, onmouseout; p.201)
Syntax errors vs. logic errors
Javascript comments; single-line and multi-line
Given the code for a button and an event be able to explain what will happen
Given button and its event be able to write the code for it
Using events with buttons and other XHTML tags
Chapter 8:
Understand variables (p. 217 – 224) and the three types of variables in javascript
Know how to declare a variable
Know what an assignment statement is
Be able to track the value of the variable as it is being assigned new values
Know how the + operator works for string variables
Given code for a prompt be able to explain the output
Be able to write a prompt and display the entered value
Understand the document object
odocument.body.style.backgroundColor
odocument.body.style.color
odocument.title
Understand the location object
oe.g. location.href
Understand the history object
oe.g. history.back()
Chapter 9:
Understand functions and why they are useful
Be able to declare and call a function
Be able to look at code with simple functions and write the output
pf2

Partial preview of the text

Download Study Guide for Test 2 - General Applications Programming | CSCE 102 and more Exams Computer Science in PDF only on Docsity!

CSCE 102 - Sections 13, 14, 15 Study Guide for Test 2 Chapter 5:  What are image maps?  Different image map shapes (rectangle, polygon, circle)  How to use the shapes – what coordinates do we use?  How to tell the image to use a particular image map  How to give a id/name to an image map Chapter 6:  Given the code be able to draw the frames  Given the frames be able to write the code  Understand the target attribute of an anchor tag  Understand the frame tag – id, name, src attributes  What tag does the frameset tag replace?  How to use the positioning properties of CSS Chapter 7:  What is Javascript? What type of language is it?  What is a scripting language?  Given the code for an alert be able to write the output  Given the output of an alert be able to write the code for it  Script element and javascript events (onclick, onmouseover, onmouseout; p.201)  Syntax errors vs. logic errors  Javascript comments; single-line and multi-line  Given the code for a button and an event be able to explain what will happen  Given button and its event be able to write the code for it  Using events with buttons and other XHTML tags Chapter 8:  Understand variables (p. 217 – 224) and the three types of variables in javascript  Know how to declare a variable  Know what an assignment statement is  Be able to track the value of the variable as it is being assigned new values  Know how the + operator works for string variables  Given code for a prompt be able to explain the output  Be able to write a prompt and display the entered value  Understand the document object o document.body.style.backgroundColor o document.body.style.color o document.title  Understand the location object o e.g. location.href  Understand the history object o e.g. history.back() Chapter 9:  Understand functions and why they are useful  Be able to declare and call a function  Be able to look at code with simple functions and write the output

 Understand function parameters

  1. What they are
  2. How they are used
  3. How functions will behave when they have parameters Chapter 10:  Know how to create text boxes (areas)  Understand how to get values from text boxes  The types of events that are useful for text areas Chapter 11:  Know the mathematical symbols used to perform calculations  Understand the order of operations  Know what kinds of variables are valid for calculations