Accounting
Anthropology
Archaeology
Art History
Banking
Biology & Life Science
Business
Business Communication
Business Development
Business Ethics
Business Law
Chemistry
Communication
Computer Science
Counseling
Criminal Law
Curriculum & Instruction
Design
Earth Science
Economic
Education
Engineering
Finance
History & Theory
Humanities
Human Resource
International Business
Investments & Securities
Journalism
Law
Management
Marketing
Medicine
Medicine & Health Science
Nursing
Philosophy
Physic
Psychology
Real Estate
Science
Social Science
Sociology
Special Education
Speech
Visual Arts
Management
Q:
In programming, ________ means looping through a series of statements to repeat them.
Q:
Browsers store the images they display in an array named:
A) src
B) images
C) pictures
D) content
Q:
On a Web page, images can be loaded and stored in a(n):
A) image object
B) image array
C) form load
D) pic array
Q:
In JavaScript, the plus sign means:
A) addition
B) add 1
C) concatenation
D) A or C
Q:
A nested loop structure where the outside loop runs five times and the inside loops runs seven times would execute the statements of the inside loop:
A) 5 times
B) 7 times
C) 12 times
D) 35 times
Q:
The World-Famous Iteration (WFI) has this standard form:
A) for ( j=1; j<n; j++) { . . . }
B) for ( j=0; j<n; j++) { . . . }
C) for ( j=0; j<=n; j++) { . . . }
D) none of the above
Q:
In a for loop, the operation that sets the variable's value for the first iteration of the loop is the:
A) iteration
B) initialization
C) condition
D) test
Q:
For the elements of the array to store images, they must each be initialized to a(n):
A) image object
B) gifpix object
C) prefetch object
D) src object
Q:
The function clearTimeout is used to:
A) restart the timer
B) reset the interval of the timer
C) reset the number of times the timer runs
D) cancel the timer
Q:
In the following line:
var rows = new Array(5);
A) the array will have six items
B) the last item in the array will be rows[5]
C) the first item in the array will be rows[0]
D) all of the above
Q:
Which of the following is the correct way to declare an array?
A) var = new var(10);
B) var = new Array(10);
C) var myArray = new (10);
D) var myArray = new Array(10);
Q:
What must be the step size of the loop below, to ensure that it repeats exactly 5 times?
for(c=3; c<13; ____)
A) c++;
B) c = c + 2;
C) c = c + 3;
D) c = c + 4;
Q:
Which of the following is an infinite loop?
A) for (k = 0; k <= 10; k = k + 1)
B) for (j = 1; j < 3; j++)
C) for (i = 1; i <= 4; i = i - 1)
D) for (k = 1; k < = 4; k++)
Q:
Which of the following iterates 10 times?
A) for (i = 1; i < 10; i = i + 1)
B) for (i = 0; i <=10; i = i + 1)
C) for (i = 0; i <10; i = i + 1)
D) none of the above
Q:
How many iterations will occur in this loop?
for (again = 0; again < 5; again = again + 1) {"¦}
A) four
B) five
C) six
D) none of the above
Q:
Which particularly controls the number of iterations of for loop?
A) iteration variable
B) function
C) iteration
D) initialization
Q:
Anything you can do by modifying the DOM, you could alternatively do with the document.write() function.
Q:
A World-Famous Iteration (WFI) loop which has n iterations generates exactly all the legal subscripts for an array of size n.
Q:
If the loop initialization makes the continuation test false, the loop body will only execute once.
Q:
Image prefetching can be performed at any time prior to the start of the associated animation.
Q:
Off-by-One Error is an uncommon error in computing.
Q:
The continuation operation of a for loop has the same form as the predicate in a conditional statement.
Q:
An array index must be a non-negative integer.
Q:
You can put a loop inside another loop.
Q:
The only way to stop an infinite loop is to restart the computer.
Q:
All for loops should have a <continuation> test.
Q:
Iteration variables should be declared with iter instead of var, because they are special variables.
Q:
The iteration variable is often used in computations in the <statement list>.
Q:
The current loop iteration completes the entire body before the next iteration starts.
Q:
Iteration variables must be only single-letter identifiers.
Q:
Loops cannot count backwards.
Q:
The step size of a for loop is always 1.
Q:
The starting point of a for loop is always 0.
Q:
It is possible to set up a for loop that never iterates.
Q:
A for loop continues as long as the <continuation> test is true.
Q:
The control specification of the for loop includes three operations: <initialization>, <continuation>, and <next iteration>.
Q:
The HTML element ________ provides an area where JavaScript can draw lines and figures.
Q:
Joining several components together, e.g., ( '<tr style="background-color : #00ccff ">' + '<td>-10</td><td>' + convertC2F(-10) + '</td></tr>' ), is known as ________.
Q:
Function names should begin with a(n) ________.
Q:
________ creates a JavaScript object which represents a date and time.
Q:
A function is declared by writing its function ________.
Q:
The function ________ is used in JavaScript to convert numbers into printable form.
Q:
Functions that are written so they can be reused in other ________ are considered building blocks.
Q:
JavaScript uses the <input"¦/> tag for both input and ________ text boxes.
Q:
The ________ function in JavaScript returns the integer portion of a number.
Q:
________ a function is asking the computer to run or execute the statements of the function to produce the answers.
Q:
Variables declared inside a function are ________ in scope.
Q:
A(n) ________ is a programming structure with a name, optional parameter list, and a definition that encapsulates an algorithm.
Q:
The ________ is the algorithm written in a programming language.
Q:
Inputs to a function are known as ________.
Q:
After running the JavaScript:
var d = new Date();
var t = d.getTime();
the variable t contains
A) the number of milliseconds since the current web page was downloaded.
B) the number of days since the beginning of 1990, US Pacific time zone.
C) a string giving the current date and time, with the seconds given to three decimal places.
D) the number of milliseconds since the beginning of 1970 in Greenwich, England.
Q:
Radio buttons belong to groups in which, if one is checked, any others are unchecked. How do you know which buttons are in the same group?
A) They are placed on the same line of the HTML file.
B) They have the same name.
C) They are part of the same form.
D) The are enclosed in a <radiogroup>...</radiogroup> tag pair.
Q:
The values returned by the Math.random( ) function are between:
A) 0 (inclusive) and 1 (exclusive)
B) 0 (exclusive) and 1 (inclusive)
C) 0 (exclusive) and 1 (exclusive)
D) 0 (inclusive) and 1 (inclusive)
Q:
The random numbers generated by Math.random( ):
A) will never be repeated
B) are really pseudo-random
C) are random because the computer is deterministic
D) are negative numbers
Q:
The inputs to a function are called:
A) identifiers
B) parameters
C) values
D) algorithms
Q:
Which of the following functions displays the page that is specified as its first argument?
A) window.open( )
B) window.new( )
C) window.page( )
D) none of the above
Q:
Which of the following is an alternate term for function?
A) procedure
B) subroutine
C) method
D) all of the above
Q:
The JavaScript function toString( ):
A) converts to a printable form
B) returns the length of a string of characters
C) displays the JavaScript on a Web page
D) saves the answer to a file
Q:
When defining a function, how do you specify the result?
A) You call it.
B) You re-write it.
C) You return it.
D) You designate it.
Q:
In JavaScript, the result of a function call can be displayed to the user
A) in a pop-up with by calling alert( )
B) interactively by modifying the DOM after the page has been displayed
C) by writing the values into the page as it it is first displayed
D) all of the above
Q:
A variable declared in a function is a(n):
A) local variable
B) global variable
C) independent variable
D) named variable
Q:
Output directly onto a Web page from JavaScript is done using:
A) writeln( )
B) document.write( )
C) print( )
D) document.display( )
Q:
All of the following are parts of a function except:
A) the name
B) parameters
C) global variables
D) the definition
Q:
Variable names declared in a function:
A) can be used outside that function
B) cannot be changed within that function
C) can be used outside the function, but cannot be changed outside the function
D) can only be used inside that function
Q:
Programmers rarely use code written by others.
Q:
The arguments in a function call give values for the parameters, matched in order left to right.
Q:
Functions are made up of two parts, the name and the parameters.
Q:
When a global and local variable share the same name, a JavaScript program will not be accepted by the browser.
Q:
A computer cannot generate a truly random number.
Q:
The parameter list must include at least one parameter.
Q:
A variable cannot be used as part of a calculation to assign a value to itself.
Q:
In a JavaScript formula (e.g., (9/5) tempInC + 32), multiplication is implied; therefore, the multiplication operator (*) is not required.
Q:
In a function, arguments can be provided in any order.
Q:
Local variables cannot be used outside the functions in which they are declared.
Q:
The return value for a JavaScript function must be a variable.
Q:
The value produced by the <expression> in JavaScript's return statement is called the function's value or result.
Q:
Function names cannot contain numbers and must not be more than eight characters long.
Q:
The name of a function identifies it and must be used when the function is called.
Q:
Variables in the parameter list of a JavaScript function are automatically declared.
Q:
Functions allow reuse of code but also result in increased complexity because parts of the solution are hidden.