JavaScript (CIST 1520)CH 1 quiz

Ace your homework & exams now with Quizwiz!

In the client/server system, one of the primary roles of the client, or front end, is to ____. a. carry out complex data processing b. provide for data storage c. send email d. present an interface to the user

d. present an interface to the user

____ refers to programming using a scripting language that is executed from a web server. a. Host-side scripting b. Client-side scripting c. Servlet-side scripting d. Server-side scripting

d.Server-side scripting

A(n) ____ comment occupies only a single line or part of a line. a. variable b. element c. line d. block

line

Variables and literals contained in an expression are known as ____. a. operators b. operands c. events d. properties

operands

JavaScript code is always stored in an external file separate from the HTML or XHTML code for a web document. a. True b. False

False

Like HTML, XHTML is not case sensitive. a. True b. False

False

Although JavaScript is considered a programming language, it is also a critical part of web page design and authoring. a. True b. False

True

Elements that do not require a closing tag are called empty elements. a. True b. False

True

You can place script elements in either the document head or in the document body. a. True b. False

True

A document on the web is called a web page and is identified by a unique address called the _________________________.

Uniform Resource Locator(URL)

The procedures associated with an object are called ____. a. methods b. processes c. attributes d. functions

a.methods

When you assign a value to a variable, you use an equal sign, which is also called a(n) __________ operator.

assignment

____ are lines of code that are not processed by browsers, which you use to add notes about your code. a. methods b. comments c. variables d. properties

b. comments

____ was established in 1994 at MIT to oversee the development of web technology standards. a. The University of Illinois b. The W3C c. Microsoft d. Netscape

b.The W3C

A(n) ____ comment hides multiple lines of code. a. variable b. element c. line d. block

block

____ can turn static documents into applications such as games or calculators. a. HTML b. XHTML c. JavaScript d. Cascading Style Sheets

c.JavaScript

Some of the more popular server-side scripting languages include ____. a. C, C++, and CGI b. JScript, Livescript, and ECMAScript c. PHP, ASP.NET, and Python d. VBS and JScript

c.PHP, ASP.NET, and Python

When a client requests a server-side script, a client will never see the server-side script, only the ____ that the web server software returns from the script. a. email sent b. program executing c. HTML d. raw data requested

c.raw data requested

An object is ____ that can be treated as an individual unit or component. a. state and contents b. file and data c. formatting and color d. programming code and data

d. programming code and data

A system consisting of a client and a server is known as a ____ system. a. traditional b. three-tier c. monolithic d. two-tier

d.two-tier

A(n) _____ is a specific circumstance that is monitored by JavaScript and that your script can respond to in some way.

event

When an event occurs, your script executes any code that responds to that specific event on that specific element. This code is known as the __________.

event handler

Which method do you use to reference an element on a web page in a script? a. write() b. alert() c. onclick() d. getElementById()

getElementById()

JavaScript source files that store especially useful generic scripts used on many different website are known as __________.

libraries

Symbols such as + and * used in expressions to manipulate operands are known as ____. a. operators b. variables c. events d. properties

operators

Special words that are part of the JavaScript language syntax and that can't be used as variable names are known as ____. a. identifiers b. reserved words c. operands d. operators

reserved words

Which keyword do you use to create a variable? a. for b. value c. assign d. var

var

Which method displays a dialog box with an OK button? a. document.write() b. document.writeln() c. window.alert() d. window.popup()

window.alert()

A three-tier, or multitier, client/server system consists of three distinct pieces: These are ____. a. the client tier, the processing tier, and the data storage tier b. the client tier, the design tier, and the processing tier c. the storage tier, the distributing tier, and the processing tier d. the email tier, the messaging tier, and the data storage tier

a. the client tier, the processing tier, and the data storage tier

On client/server systems, heavy processing, such as calculations, usually takes place on the ____. a. client b. server c. middle-ware d. browser

b.server

An HTML document is a text document that contains codes called ____. a. elements b. tags c. styles d. rules

b.tags


Related study sets

Chapter 11: Health Care of the Older Adult

View Set

Chapter 9, Section 3, A Time of Conflict

View Set

Chapter 4 - Imperial Wars and Colonial Protest

View Set

Chapter 4: Longevity Health and Function

View Set

Care of Adult Exam 2 (Prep-U Cardiac disorders)

View Set