CS101 FINAL EXAM STUDY GUIDE
Interpreted language - Answers - interpreter reads each line of code, converts it to
machine language (1s, 0s) and then executes it
Syntax - Answers - rules for writing lines of code
Callbacks - Answers - a piece of code that is executed when an event happens; adds
interactivity to the page
Variable - Answers - a named value
Functions - Answers - allow us to do the same thing two times or do something in a
general way that can work on any values we provide
Loops - Answers - allows us to do a set of steps several times
Counting variable (in a loop) - Answers - counts how many times we've done the loop
Codeblock - Answers - program that runs javascript right in the browser; special in that it
allows you type your own code and then run it
For loops - Answers - when we know how many times we want a loop to run
While loops - Answers - when we want the loop to run until something special happens
Infinite loop - Answers - often used for servers that need to listen for incoming
connections: while (true) listen { }
Function - Answers - set of code we want to use many times but with different values
HTML DOM (Document Object Model) - Answers - a way to represent the parts of a
document; acts as a map to any given element; relationships among the elements are
shown; used to find things in an HTML document
ID attribute - Answers - allows us to work directly with an HTML tag and its contents
from javascript
Number function - Answers - converts what is in text box to a number to be used in
javascript
String - Answers - a group of characters
, Substring - Answers - a part of a longer string
Array - Answers - an ordered collection in which each item has an index associated with
it, which lets us set or get the item at that index
CSV - Answers - Comma separated value (string)
Javascript libraries - Answers - useful place several functions together into a single file;
collection of functions that may be added to a webpage using a <script src=> tag
Date library - Answers - used to manipulate dates
Object - Answers - collection of variables and functions that provide an easy way to
access them
Epoch - Answers - number of milliseconds elapsed since January 1 1970 (time most
programs and computers is stored in) -- evolved into international standard for keeping
time
Other popular libraries - Answers - Closure, jquery, Mongo, Angular, Node
Math library - Answers - where we can find trig functions (sine, cosine), random
numbers, mins and maxes, absolute values, etc..
Objects - Answers - a variable that has some additional features like other variables or
functions; a collection of variables and functions treated as one unit
Properties (attributes) - Answers - collection of variables
Behaviors - Answers - functions an object contains
This - Answers - keyword used to signal we are referring to the variable inside a specific
object and not some other one
Constructor - Answers - used to make a new object asked on the object's original
pattern; looks similar to just creating a single object but uses a function rather than a
variable
Object-oriented programing - Answers - take a real world problem and model it using
javascript objects; uses functions and properties to do some pretty detailed modeling of
actual things
Reusability - Answers - can write code and test it and then use it over and over in a new
program to solve new problems; saves a lot of money
Crypto - Answers - based on encryption techniques
Interpreted language - Answers - interpreter reads each line of code, converts it to
machine language (1s, 0s) and then executes it
Syntax - Answers - rules for writing lines of code
Callbacks - Answers - a piece of code that is executed when an event happens; adds
interactivity to the page
Variable - Answers - a named value
Functions - Answers - allow us to do the same thing two times or do something in a
general way that can work on any values we provide
Loops - Answers - allows us to do a set of steps several times
Counting variable (in a loop) - Answers - counts how many times we've done the loop
Codeblock - Answers - program that runs javascript right in the browser; special in that it
allows you type your own code and then run it
For loops - Answers - when we know how many times we want a loop to run
While loops - Answers - when we want the loop to run until something special happens
Infinite loop - Answers - often used for servers that need to listen for incoming
connections: while (true) listen { }
Function - Answers - set of code we want to use many times but with different values
HTML DOM (Document Object Model) - Answers - a way to represent the parts of a
document; acts as a map to any given element; relationships among the elements are
shown; used to find things in an HTML document
ID attribute - Answers - allows us to work directly with an HTML tag and its contents
from javascript
Number function - Answers - converts what is in text box to a number to be used in
javascript
String - Answers - a group of characters
, Substring - Answers - a part of a longer string
Array - Answers - an ordered collection in which each item has an index associated with
it, which lets us set or get the item at that index
CSV - Answers - Comma separated value (string)
Javascript libraries - Answers - useful place several functions together into a single file;
collection of functions that may be added to a webpage using a <script src=> tag
Date library - Answers - used to manipulate dates
Object - Answers - collection of variables and functions that provide an easy way to
access them
Epoch - Answers - number of milliseconds elapsed since January 1 1970 (time most
programs and computers is stored in) -- evolved into international standard for keeping
time
Other popular libraries - Answers - Closure, jquery, Mongo, Angular, Node
Math library - Answers - where we can find trig functions (sine, cosine), random
numbers, mins and maxes, absolute values, etc..
Objects - Answers - a variable that has some additional features like other variables or
functions; a collection of variables and functions treated as one unit
Properties (attributes) - Answers - collection of variables
Behaviors - Answers - functions an object contains
This - Answers - keyword used to signal we are referring to the variable inside a specific
object and not some other one
Constructor - Answers - used to make a new object asked on the object's original
pattern; looks similar to just creating a single object but uses a function rather than a
variable
Object-oriented programing - Answers - take a real world problem and model it using
javascript objects; uses functions and properties to do some pretty detailed modeling of
actual things
Reusability - Answers - can write code and test it and then use it over and over in a new
program to solve new problems; saves a lot of money
Crypto - Answers - based on encryption techniques