978-0133577396 Chapter 18

subject Type Homework Help
subject Pages 4
subject Words 822
subject Authors Lawrence Snyder

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
Fluency with Information Technology, 6e (Snyder)
Chapter 18 A JavaScript Program: The Bean Counter
18.1 True/False Questions
1) JavaScript is designed for Web applications.
2) The variables of The Bean Counter JavaScript program are declared right before the <body>
tag and inside <script> tags.
3) The <hr/> tag is used to display a horizontal line.
4) The best way to develop a program is to just write code and modify it as needed.
6) JavaScript is added between script tags.
7) JavaScript is an event-based programming language.
8) In programming, equality comparisons between strings are not case sensitive.
9) Creating the buttons that are needed for a program is called initialization.
10) Script tags are not needed for event handlers.
11) A Web page can have only one form.
12) The browser records all of the information about a Web page, e.g., forms, images, and other
elements, in a data structure for the Web page called the Document Object Model (DOM).
page-pf2
13) Event handlers are limited to a single JavaScript statement.
1) A good application to build an HTML Web page is:
A) Word
B) AppleWorks
C) Google Chrome
D) Notepad++
2) A grid of rows and columns can be created using the:
A) <table> tag
B) <grid> tag
C) <row> and <column> tags
D) none of the above
3) Used within the <input…/> tag, buttons, text boxes, and checkboxes are examples of:
A) input types
B) button values
C) event types
D) none of the above
4) In JavaScript, output displayed in a popup box can be produced using the:
A) printout command
B) alert command
C) lprint command
D) all of the above
5) Constructing a table "inside out" in HTML using copy and paste begins with the:
A) <table> and </table> tags
B) <tr> and </tr> tags
C) <td> and </td> tags
D) <body> and </body> tags
page-pf3
6) Data values can be referenced:
A) as variables local to a handler
B) as variables global to a handler
C) as a variable in another element
D) all of the above
7) To reference a variable in another element, you must use a:
A) local variable
B) global variable
C) dot operator
D) none of the above
8) The program that performs a task to respond to an event is an:
A) input processor
B) input handler
C) error handler
D) event handler
9) When a button is clicked in a form:
A) a click event is generated
B) the form closes
C) the form is erased
D) a dialog box is displayed
10) An advantage of the <button > tag over <input type=”button” > is that
A) it allows control over the displayed size.
B) it supports the onclick event, which input does not.
C) the button can contain any HTML, including an image.
D) only one input button is allowed in any HTML form.
11) Consider <button onclick='ounce=8'> S </button>
A) This will set both onclick and ounce to 8.
B) The first equal sign is some HTML, the second is some JavaScript.
C) This is an error: <button> does not use a closing tag.
D) This is an error: only one = is allowed.
page-pf4
1) The first step in programming is to create a(n) ________.
2) Buttons and checkboxes are known as ________ of forms.
3) ________ tags must surround all of the input elements.
4) A(n) ________ is an indication from the computer (operating system) that something just
happened (such as a mouse click).
5) A programming style that responds to events, such as mouse clicks, is known as ________
programming.
6) In JavaScript program, a(n) ________ attribute tells the browser how to respond to an event
like onclick.
7) Setting the initial values for the variables in a program is called ________.
8) The value ________ of an input element with button type provides the label on the button.
9) Cross-element references require the ________.
10) The ________ element can provide both the input and output of numeric or string values.

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.