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

COP 2822: Fall 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 Six: Forms

Tutorial 6 Quiz Masters:

Dr. Marcelle Bessman (mbessma@ju.edu) [Text Input]

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


Multiple Choice [One Answer Only]


Question 1

One protocol used by Web browsers to submit data to a Web server for processing is

a) Common Graphical Interface
b) Commercial Graphic Interface
c) Common Gateway Interface
d) Coded Gateway Interface


Question 2

Variables that are actually a part of an operating syster are called _______ variables.

a) primitive
b) environment
c) private
d) restricted


Question 3

Applications that are stored on Web servers and are used to process CGI environment variables are known as

a) CGI scripts
b) JavaScripts
c) macros
d) client programs


Question 4

Perl and TLC are just two examples of

a) operating systems
b) hardware platforms
c) object-oriented languages
d) scripting languages


Question 5

Information passed to CGI scripts from an HTML document is obtained from HTML

a) <SCRIPT> tag elements
b) form elements
c) Frame properties
d) global variables


Question 6

The ENCTYPE attribute of the <FORM> tag is used to

a) specify the format of data beign submitted to a CGI script
b) specify the type of form element being created
c) specify what language the data is being passed in
d) none of the above


Question 7

The protocol commonly used to send data across the Internet is called

a) ENCTYPE
b) POST
c) MPEG
d) MIME


Question 8

The <FORM> tag attribute that specifies the URL where the form data will be sent is the _______ attribute.

a) TARGET
b) NAME
c) ACTION
d) METHOD


Question 9

GET and _______ are the two options allowed for the METHOD attribute that determines how a form's data will be submitted.

a) SEND
b) POST
c) WRITE
d) GIVE


Question 10

Which of the attribute statements shown below would cause any data being returned from the server to be displayed in a window named rtndata?

a) TARGET="rtndata"
b) NAME="rtndata"
c) ACTION="rtndata"
d) DISPLAY="rtndata"


Question 11

The three tags used within the <FORM> tag that are used to create form elements are

a) <INPUT>, <FIELD>, <TEXTAREA>
b) <INPUT>, <SELECT>, <TEXT>
c) <INPUT>, <SELECT>, <TEXTAREA>
d) <INPUT>, <SELECT>, <FIELD>


Question 12

The <INPUT> tag attribute that determines whether or not a radio button is selected is the _______ attribute.

a) ON
b) SELECTED
c) SET
d) CHECKED


Question 13

The statement that would create a button that does not submit any data to a CGI script, or reset any form fields, is

a) <INPUT TYPE="nosubmit">
b) <INPUT TYPE="command">
c) <INPUT TYPE="local">
d) none of the above


Question 14

The width of a command button is determined by

a) the SIZE attribute
b) the WIDTH attribute
c) the number of characters in the VALUE attribute
d) the number of characters in the NAME attribute


Question 15

The _______ type of <INPUT> tag creates a button that displays a graphic image and will submit form data to a CGI script.

a) image
b) graphic
c) picture
d) graphical


Question 16

The number of lines displayed in a selection box is determined by which attribute?

a) LINES
b) SIZE
c) NUMBER
d) MULTIPLE


Question 17

Which of the following are all attributes of the <TEXTAREA> tag?

a) NAME, COLS, ROWS
b) NAME, LINES, VALUE
c) NAME, SIZE, TYPE
d) ROWS, COLS, VALUE


Question 18

A hidden field form

a) cannot be displayed by a Web browser
b) cannot be edited by a user
c) can contain data that can be sent to a server
d) all of the above


Question 19

JavaScript can be used to verify information in a form before passing the data to a server by accessing the ______ object.

a) Document
b) Element
c) Data
d) Form


Question 20

Which of the following statements could be used to access the second element of the third form in an HTML document?

a) document[2].form.element[2]
b) document.form[2].element[1]
c) document.form[3].element[2]
d) document.form[2].element[2]


Question 21

A form created with a NAME attribute of myForm could be referenced by using which statement?

a) document.form.myForm
b) document.form[myForm]
c) document.myForm
d) document[myForm]


Question 22

All forms in an HTML document are contained in the forms array, which is a part of the ______ object.

a) Form
b) Frame
c) Document
d) none of the above


Question 23

The _______ event handler is executed when a form is submitted to a CGI script for processing.

a) onSubmit
b) onClick
c) onPost
d) onSend


Question 24

The two methods contained in the Form object are

a) send() and reset()
b) submit() and receive()
c) get() and post()
d) submit() and reset()


Question 25

The number of elements contained in a form can be determined from the Form object's ______ propert;y.

a) count
b) length
c) enctype
d) target


Question 26

The Form object's ______ property specifies what window will be used to display the results returned from a server.

a) action
b) name
c) target
d) result


Question 27

For a small business that doesn't have the expertise to create complex CGI scripts, another option is to send form data to

a) a form clearing house
b) a database [rpgra,
c) a c;oemt-side server
d) an e-mail address


Question 28

When sending form data to an e-mail address, you would code, mailto:email_address on the <FORM> tag's _______ attribute.

a) TARGET
b) NAME
c) ACTION
d) SUBMIT


Question 29

The ______ should be specified as "text/plain" when sending form data to an e-mail address.

a) ENCTYPE
b) METHOD
c) ACTION
d) TARGET


Question 30

One disadvantage to sending form data to an e-mail address is that the mailto:option is not supported by all

a) operating systems
b) CGI languages
c) Web browsers
d) mail servers




True/False Questions


Question 31

A Web server based application that processes CGI environment variables is a CGI program.

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



Question 32

HTML form objects are passed to CGI scripts to be processed on a Web server.

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



Question 33

GET and POST are the two options that can be specified for the ACTION attribute of the <FORM> tag.

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



Question 34

Every button in a radio button group must have a unique name defined for it.

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



Question 35

A reset button will clear all form fields and reset each field to the value defined by its DEFAULT attribute.

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



Question 36

When clicked, a command button will send form data to a CGI script program.

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



Question 37

Selection lists are created using the <LIST> tag within the <INPUT> tag.

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



Question 38

Every element in a form can be accessed without using a name by accessing the elements[] array of the Form object.

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



Question 39

The Form object has three methods; submit(), reset(), and receive()

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



Question 40

The action property of the Form object contains the URL where form data will be sent when it is submitted.

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. Data from an HTML form can be sent to a Web server for processing using the CGI protocol, which stands for (three words).



Question 42. CGI's fundtion is to start a server-based program, and pass and receive variables to and from the server program.




Question 43. The format of the data being submitted to a server is specified by the of the <FORM> tag.



Question 44. The MIME protocol (four words) is used for sending files and other attachments across the Internet.



Question 45. The <INPUT> tag attribute that creates a label for a button or an initial value for a field, is the attribute.



Question 46. The HTML statement <INPUT TYPE="" >creates a text box that will display asterisks when data is entered into it.



Question 47. When you want a check box to display an intiial value of yes, you need to specify the



Question 48. A button that does not submit data to a server, nor does it clear the form fields, is the



Question 49. The Form object includes a(n) array that represents all the elements of a form.



Question 50. Form data can also be sent to an e-mail address by specifying a mailto: address on the attribute of the <FORM> 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:

environment variables global variables local variables Common Gateway Interface form elements

elements[] array or elements array checked attribute name attribute value attribute type attribute

action property form object selected attribute enctype attribute Multipurpose Internet Mail Extention


onSubmit() event handler submit button reset button command button text box

password box <select></select> tags <option> tag selction list radio button


<textarea></textarea> tags <input> tags onReset event handler





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

(This may takes a few moments to submit)


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: