COMPUTER SCIENCE QUESTIONS
AND ANSWERS
What is JavaScript based on? - CORRECT ANSWER-objects
What is a built-in JavaScript object? - CORRECT ANSWER-
document
What object represents the content of a browser's window? -
CORRECT ANSWER-document
What object returns an ordered set of values? - CORRECT
ANSWER-array
What object obtains information about the current Web
browser? - CORRECT ANSWER-navigator
What object keeps track of Web pages visited? - CORRECT
ANSWER-history
What object switches to a new Web page? - CORRECT
ANSWER-location
What object represents a set of characters? - CORRECT
ANSWER-string
Given car.drive( ), where car is the object, drive is the what of
the car object? - CORRECT ANSWER-method
Actions that an object can perform: - CORRECT ANSWER-
methods
A value given to a method: - CORRECT ANSWER-argument
, Some methods require what? - CORRECT ANSWER-argument
The result of a user's action: - CORRECT ANSWER-event
The way to associate an event with a function: - CORRECT
ANSWER-event handlers
Functions are placed in a JavaScript section within the ______
section on the HTML code. - CORRECT ANSWER-<head>
What refers to JavaScript code written to perform certain tasks
repeatedly? - CORRECT ANSWER-function
The ______ function opens a new window, - CORRECT
ANSWER-open( )
The _______ function prints the contents of the window. -
CORRECT ANSWER-print( )
Most of JavaScript's built-in functions actually belong to the
_______ object. - CORRECT ANSWER-window
A(n) ____________ is an HTML tag that identifies a section of
HTML code using the id attribute. - CORRECT ANSWER-
container
What is an example of a HTML comment line? - CORRECT
ANSWER-<!--Hide from old browsers-->
A function name must begin with a(n) _________. - CORRECT
ANSWER-letter or an underscore
Javascript what are temporary places to store data? -
CORRECT ANSWER-variables
AND ANSWERS
What is JavaScript based on? - CORRECT ANSWER-objects
What is a built-in JavaScript object? - CORRECT ANSWER-
document
What object represents the content of a browser's window? -
CORRECT ANSWER-document
What object returns an ordered set of values? - CORRECT
ANSWER-array
What object obtains information about the current Web
browser? - CORRECT ANSWER-navigator
What object keeps track of Web pages visited? - CORRECT
ANSWER-history
What object switches to a new Web page? - CORRECT
ANSWER-location
What object represents a set of characters? - CORRECT
ANSWER-string
Given car.drive( ), where car is the object, drive is the what of
the car object? - CORRECT ANSWER-method
Actions that an object can perform: - CORRECT ANSWER-
methods
A value given to a method: - CORRECT ANSWER-argument
, Some methods require what? - CORRECT ANSWER-argument
The result of a user's action: - CORRECT ANSWER-event
The way to associate an event with a function: - CORRECT
ANSWER-event handlers
Functions are placed in a JavaScript section within the ______
section on the HTML code. - CORRECT ANSWER-<head>
What refers to JavaScript code written to perform certain tasks
repeatedly? - CORRECT ANSWER-function
The ______ function opens a new window, - CORRECT
ANSWER-open( )
The _______ function prints the contents of the window. -
CORRECT ANSWER-print( )
Most of JavaScript's built-in functions actually belong to the
_______ object. - CORRECT ANSWER-window
A(n) ____________ is an HTML tag that identifies a section of
HTML code using the id attribute. - CORRECT ANSWER-
container
What is an example of a HTML comment line? - CORRECT
ANSWER-<!--Hide from old browsers-->
A function name must begin with a(n) _________. - CORRECT
ANSWER-letter or an underscore
Javascript what are temporary places to store data? -
CORRECT ANSWER-variables