Your browser does not support JavaScript. You will need to view non-JavaScript portions of this page.

CGS 2820: Fall Term 2001
On-Line Quizzes

Test Timer

In order to forward you your test results please enter your name & email address below:

Enter First Name followed by a space then your Last Name here



Enter E-mail Address here:



Tutorial 8: Programming with JavaScript

Tutorial 8 Quiz Masters:

(mkbair@hotmail.com) [Text Input]

John Taylor (jtaylor@hcc.cc.fl.us) [Consultant]


Multiple Choice [One Answer Only]


Question 1

A disadvantage of using a CGI srcipt is that _____


a) users must be connected to the Web server to user the CGI script.
b) only the programmer can alter the srcipt.
c) the system administrator of the Web can set limits on how users access the script.
d) All of the above.

Question 2

When a user downloads a Java program, the user's Web browser runs a(n)___ to process data.

a) Oak program
b) Javascript
c) Applet
d) None of the above

Question 3

_____ is a subset of the Java programming language that does not need to be compiled.

a) Oak program
b) Javascript
c) An Applet
d) None of the above

Question 4

The Java programming language originated from a Sun Microsystems project named _____ .

a) Hotjava
b) Oak
c) Internet Explorer
d) None of the above

Question 5

Which of the following is true about the Java programming language?

a)It is complicated
b)It required the JDK to develop applets
c)It is powerful and used for complex tasks
d)All of the above

Question 6

Which of the following is true of a JavaScript?

a)It is easy to learn and use.
b)A developer's kit is not required.
c)You do not need to compile scripts
d)All of the above

Question 7

You create a JavaScript by ____.

a) coding the script commands directly into the HTML file
b) placing script commands into an external file
c) Either A or B
d) None of the above

Question 8

When JavaScript code appears in an HTML file, you indicate it by using the ______ tag.

a) < JAVASCRIPT >
b) < SCRIPT >
c) < JAVA >
d) < APPLET>

Question 9

The default language of the <SCRIPT> tag is ______.

a) JAVASCRIPT
b) HotJava
c) JAVA
d) None of the above

Question 10

The equals sign is an example of a(n) ___________.

a) method
b) assignment operator
c) variable
d) string

Question 11

A named element in a program that is used to store and retrieve data is a(n)________.

a) method
b) assignment operator
c) variable
d) string

Question 12

Which of the following in NOT a valid JavaScript data type?

a) Boolean variable
b) String
c) Null value
d) Integer

Question 13

The JavaScript command that displays text on a Web page is _____.

a) document.write("text")
b) document.writeln("text")
c) lprint("text")
d) Either A or B

Question 14

Which of the following guidelines apply to JavaScript programs?

a) Use comments extensively to document the program
b) Make sure to use uppercase and lowercase ttext as appropriate.
c) Include an HTML comment tag to hide JavaScript code from browsers that do not support JavaScript.
d) All of the the above

Question 15

Creating a JavaScript variable is also known as _____.

a) assigning a data type
b) declaring a variable
c) inputting a default value
d) None of the above

Question 16

A variable that is null has ______.

a) a value of zero
b) no value at all
c) a negative value
d) None of the above

Question 17

If the year is 2000, the value returned by the getYear( ) method in Internet Explorer is ______.

a) 0
b) 2000
c) 00
d) 100

Question 18

If you calculate the number of years between 1998 and 2000 in Netscape Navigator, the answer is _____.

a) 2
b) 0
c) -2
d) 1902

Question 19

The getDate() method returns.

a) the month (i.e. January)
b) the year (i.e. 2000)
c) the day of the month (i.e. 5)
d) the day of the week (i.e. Monday)

Question 20

Which of the following represent the month of January in the getMonth( ) method?

a) 1
b) 0
c) Jan
d) January

Question 21

The symbols + - * and % are _____.

a) operators
b) expressions
c) comparison operators
d) free radicals

Question 22

The expression X != Y returns true if

a) the variables are equal
b) x is less than y
c) x is greater than y
d) Both b and c

Question 23

The code Weekday[1]="Monday" is part of an ______.

a) expression
b) assignment operator
c) assignment value
d) array

Question 24

The For loop allows you to create a group of commands that will be executed a set number of times through the use of a(n)______.

a) array
b) expression
c) applet
d) counter



True/False Questions


Question 25

The < SCRIPT > tag is a two-sided tag that identifies the beginning and end of a client-side program.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 26

A string created with the document.write() command can be enclosed in double or single quotation marks.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 27

The variable DATE OF BIRTH is valid in JavaScript.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 28

Variables in JavaScript are not case sensitive.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 29

Each element in an array is identified by its index.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 30

When a For loop starts, the counter value is always equal to 1.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 31

To run a Java program you must have a Web browser that has a Java Interpreter.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 32

A Java applet runs on the server to which the client is connected.


a) The statement above is TRUE.
b) The statement above is FALSE.


Question 33

Compiling a program converts a readable text file into an executable file.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 34

You must compile JavaScript programs before running them.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 35

In Internet Explorer JavaScript is called JScript, but it is the same as JavaScript.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 36

All Web browsers support JavaScript commands.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 37

Most JavaScript commands are not case-sensitive.

b) The statement above is TRUE.
a) The statement above is FALSE.


Question 38

The command YEAR=2000 assigns the value of 2000 to the variable YEAR.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 39

The word "Goodbye" is a string in a JavaScript program.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 40

The var command is used to declare a variable in JavaScript.

a) The statement above is TRUE.
b) The statement above is FALSE.



Fill-in-the-Blank


Fill in the Blank with the word(s) that best fits the definition:

(hint: use vocabulary from the checkboxes below)

Question 41. A(n) are values which are sent to a function in a JavaScript command.


n a program that is used to store and retreive information.

Question 42. The group of commands set off by curly braces in a function is called a(n) (two words).


Question 43. When the reaches a specified value in a For loop, the loop ends.


Question 44. The operator calculates the remainder after dividing one number by another.


Question 45. The If statement is a type of statement that runs only when a certain condition is met.


Question 46. An ordered collection of values referenced by a single variable name is called a(n).


Question 47. A series of commands that either performs an action or calculates a value is a(n) .


Question 48. As long as the defined condition in a "While loop" is , the loop will continue to run.


Question 49. A For loop repeats a set number of times but a loop continues until a condition is met.


Question 50. A Web page with embedded JavaScript code is an example of a -side program.





I have


Please add a comment below



The 'Muddy Water' Issues that I need help on are as follows:





I need class review on the following vocabulary words from this chapter:

server-side client-side JavaScript function modulus

counters parameters while-loops For-loops array

Applets command block



When you have completed this quiz, press the ALL DONE-CHECK TEST button below to check the test! Then you may go back and change the incorrect answers before you submit the test. You may check the answers as many times as you need until you achieve a perfect grade. Sometimes the pop-up box does not appear when you click on the button after checking the test the first time. If this happens, minimize the test and the answer box will be behind the browser. close the box and maximize the test to continue checking the test and finally submitting it.



When you have finished checking the test, press the SUBMIT button to send answers to your instructor


Back to CGS 2820 Course Menu Page






Caution: Click reset to clear all answers

Users whose browser does not support JavaScript, when you have completed this quiz click the submit button below to send answers to your instructor




index index index map map map nude art russian nude art russian nude art russian mia lee nude mia lee nude mia lee nude nude fat bbw nude fat bbw nude fat bbw nude in the tub nude in the tub nude in the tub softball nude softball nude softball nude nude b and b nude b and b nude b and b nude no pay nude no pay nude no pay nude art pubescent nude art pubescent nude art pubescent nude below the waist nude below the waist nude below the waist nude yes nude yes nude yes unc nude unc nude unc nude nude men in art nude men in art nude men in art nude obx nude obx nude obx graphic nude graphic nude graphic nude blondes in the nude blondes in the nude blondes in the nude aya hirayama nude aya hirayama nude aya hirayama nude nude faerie art nude faerie art nude faerie art tan nude women tan nude women tan nude women nude hippy men nude hippy men nude hippy men anjelina jo lie nude anjelina jo lie nude anjelina jo lie nude