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

Material Type: Exam; Class: GEN APPLICATIONS PROGRAM; Subject: Computer Science & Engineering; University: University of South Carolina - Columbia; Term: Unknown 1989;

Typology: Exams

Pre 2010

Uploaded on 09/02/2009

koofers-user-rt1
koofers-user-rt1 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSCE 102 - Study Guide for Test 2
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?
oAnswer: the body tag
Chapter 7:
Know the hierarchy of languages (machine, assembly, high-level languages)
Interpreter vs. compiler; know the difference and what they are/do.
Unstructured, structured, and object oriented languages (p. 180-181)
What is Javascript? What type of language is it?
ohigh-level
ointerpreted
oobject oriented
oscripting
What is a scripting language?
oAnswer: a language that can only run within another program (JavaScript
can only run within a browser)
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
o/* multi-line comment */
o// single line comment
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)
Know how to declare a variable
oex. var cat (declares a variable called cat)
Know what an assignment statement is
ocat = “Persian” (assigns the string “Persian” to the variable cat)
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
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

Partial preview of the text

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

CSCE 102 - Study Guide for Test 2 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? o Answer: the body tag Chapter 7:  Know the hierarchy of languages (machine, assembly, high-level languages)  Interpreter vs. compiler; know the difference and what they are/do.  Unstructured, structured, and object oriented languages (p. 180-181)  What is Javascript? What type of language is it? o high-level o interpreted o object oriented o scripting  What is a scripting language? o Answer: a language that can only run within another program (JavaScript can only run within a browser)  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 o /* multi-line comment */ o // single line comment  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)  Know how to declare a variable o ex. var cat (declares a variable called cat)  Know what an assignment statement is o cat = “Persian” (assigns the string “Persian” to the variable cat)  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 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