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

COP 2822: Spring Term 2003
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 One: Introduction to JavaScript

Tutorial 1 Quiz Masters:

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


Please Note that this test was posted for Spring Term 2001 and may have errors. Please note all errors in the: I have discovered that...Section below.

Multiple Choice [One Answer Only]


Question 1

JavaScript and all programming languages have rules determining how statements must be expressed, which is/are the language's

a) parameters
b) rules of coding
c) syntax
d) parsing types

Question 2

One difference between JavaScript and Java is

a) Java programs are compiled
b) JavaScript is object orientated and Java is not
c) Java programs can not be run from a web page
d) all of the above

Question 3

All Internet domain names are associated with a series of four groups of numbers separated by periods that make up the computer's

a) IP address
b) Host value
c) HTTP address
d) Base station

Question 4

Many HTML tags can be configured by including various parameters that are known as

a)attributes
b) format scripts
c) macros
d) none of the above

Question 5

Programming code and data that can be treated at an individual component is a(n)

a) unit
b) object
c) icon
d) cell
e) statement

Question 6

The difference between the write() and the writeln() function is

a) The write() function can write blocks of text in one call
b) The writeln() function writes multiple lines at one time
c) the writeln() function adds a carriage return to the line
d) none of the above
e) more than one above is correct

Question 7

A group of related statements associated with an object is referred to as a(n)

a) method
b) group object
c) block
d) abstraction

Question 8

The text string thst is passed to the write() or write() functions is a(n)

a) method
b) object
c) argument
d) statements

Question 9

Multiple JavaScript statements can be written on the same line if they are separated by

a) tabs
b) colon
c) commas
d) semicolons

Question 10

Javascript statements in an external file can be referenced by which attribute of the <SCRIPT> tag

a) file
b) code
c) src
d) program

Question 11

You can help hide your Javascript code from other programmers by

a) specifying the scramble attribute
b) placing it in an external file
c) using the <HIDE> tag
d) none of the above

Question 12

You van document the purpose and execution of a JavaScript program by using

a) easy to read statements
b) <REMARK> tags
c) comment lines
d) declaration statements

Question 13

The beginning and the end of an HTML comment block is indicated by which of the following?

a) // and \\
b) <COMMENT> and </COMMENT>
c) /* and *\
d) <!-- and -->>
e) <BLOCK> and </BLOCK>

Question 14

An alternate message can be shown to a user with an incompatible browser by specifying which tag pair?

a) <NOSCIPT>...</NOSCRIPT>
b) <ALT>...</ALT>
c) <NOJAVA>...</NOJAVA>
d) <ERR>...</ERR>

Question 15

The order that a web browser renders tags in an HTML document is determined by

a) the tag priority
b) the order they are encountered in the document
c) the HTML precedence values
d) all of the above

Question 16

The write() and write() functions can be used to add new text to an HTML document after it

a) has been refreshed
b) has been loaded
c) has been rendered
d) is closed and reopened
e) none of these

Question 17

JavaScript can be used to

a) create visual effects on a Web page
b) control the Web browsere window
c) interact with a user
d) all of the above

Question 18

When a program is run and does not function as it was intended to, the most common problem is that the program

a) contains a virus
b) has not been saved correctly
c) contains a bug
d) was not compiled

Question 19

Which of the following is NOT a JavaScript reserved word

a) class
b) switch
c) object
d) boolean

Question 20

Which of the following is not a feature of JavaScript?

a) Javascript is an interpreted language
b) JavaScript exposes properties related to a document and the browser to enable the programmer to provide interactive web pages.
c) Javascript can access Java applet properties in order to assemble Web-based applications.
d) Javascript uses the same runtime engine as Java

Question 21

The scripting engine within a web Browser is used to

a) speed up program execution
b) interpret a scripting language
c) automatically create a Javascript
d) control resource allocation

Question 22

A programming language that is executed by an interpreter within a web browser is a(n)

a) HTML editor
b) pre-compiler language
c) scripting language
d) interactive language

Question 23

When using a web Browser that does not support the version of JavaScript being used, the Web Browser will

a) crash
b) display an error message
c) ask you to control the statements
d) ignore the SCRIPT statements

Question 24

The two types of comments supported by JavaScript are

a) external and internal
b) object and group
c) line and block
d) line and group

Question 25

The order in which abrowser executes a JavaScript program is partially determined by the section of the ____ in which the JavaScript code is placed.

a) source file
b) HTML document
c) browser window
d) none of the above
e) all of the above

Question 26

Which of the following statements is correct?

a) DOCUMENT.write("Hello World")
b) Document.Write("Hello World")
c) document.write("Hello World")
d) document.WRITE("Hello World")
e) all of the above are correct

Question 27

The version of JavaScript being used can be specified by which attribute?

a) ScriptVersion
b) Language
c) Version
d) Level

Question 28

You create line comments in JavaScript by adding _____ to a line you want to use as a comment

a) ||
b) **
c) //
d) \\

Question 29

The JavaScript object that represents the contents of a browser's window is called the ____ object

a) Document
b) History
c) HTML
d) Navigator

Question 30

Any HTML document containing multiple JavaScript sections must have

a) multiple <BODY>...</BODY>
b)multiple <SCRIPT>...<SCRIPT> tag pairs
c)more than one <HEAD>...</HEAD> tag pairs
d)all of the above



True/False Questions


Question 31

The portion of a browser that translates programming code into an executable format is called the interpreter.

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


Question 32

Javascript is just a simplified version of the Java programming language.

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


Question 33

The process of finding and fixing errors in programming logic is called debugging

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


Question 34

Another name for a program bug is a program virus.

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


Question 35

All text, graphics, and any other information displayed in a web page is part of the Document object.

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


Question 36

text that is contained within double quotation marks is a literal string.

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


Question 37

Like HTML, Javascript is not case-sensitive.

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


Question 38

Javascript can be embedded directly within an HTML document, or it can be saved in anexternal source file.

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


Question 39

An HTML document can only contain one <SCRIPT>...</SCRIPT> tag pair.

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


Question 40

When a browser does not support the version of JavaScript being used, it ignores all statements inside the <SCRIPT>...</SCRIPT> tag pairs.

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) translates programming code into executable format each time the program is run-one time at a time.


Question 42. All programming languages , including Javascript, have their own , or rules of the language.


Question 43. describes the act of tracing and resolving errors in a program.


Question 44. Parameters contained with an HTML tag pair that refine how the tag pair is interpreted are called (plural).


Question 45. Groups of related statements associated with an object are called (plural) .


Question 46. A(n) (singular) is programming code and data that can be treated as an individual unit or component.


Question 47. The individual lines within a program are called (plural).


Question 48. A(n) (singular) is any type of information that can be passed to a method.


Question 49. A test string, or string, is text that is contained within double quotation marks as an argument of a write() method.


Question 50. An HTML document that uses an external JavaScript source file must use the attribute of the <SCRIPT> tag to define the location of the file.






Show Sample Code Section

Please type the complete code below to add a last Modified statement to the bottom of a web page using the document.lastModified property beginning with the script tag




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:

scripting language scripting engine interpreter scripting host syntax

logic logic error syntax error debugging object

method statements argument literal string container element


text string SRC attribute comments line comments block comments





When you have completed this quiz click the submit button (Those users whose Browser supports JavaScript) to send answers to your instructor


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





Elapsed Time to complete quiz:

Quiz Page was last modified by John Taylor: