Filters
Question type

Study Flashcards

The isNaN(value) function returns a Boolean value of true if the value is not numeric.

A) True
B) False

Correct Answer

verifed

verified

There is no limit to the number of time-delayed commands a browser can process.

A) True
B) False

Correct Answer

verifed

verified

The _____ attribute tells a browser to parse the HTML and JavaScript code together, only pausing to process the script before returning to the HTML file.


A) async
B) defer
C) src
D) type

E) B) and D)
F) A) and B)

Correct Answer

verifed

verified

Objects are organized into groups called _____.


A) object collections
B) object pools
C) object buckets
D) object topologies

E) All of the above
F) None of the above

Correct Answer

verifed

verified

The async attribute stalls script processing until after the page has been completely parsed and loaded.

A) True
B) False

Correct Answer

verifed

verified

A(n) _____ is a named item in a program that stores a data value, such as a number or text string, or an object, such as a part of the web browser or browser window.


A) variable
B) entity
C) constant
D) class

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

Identify a syntax to access any of the mathematical constants supported by the Math object.


A) math.constant
B) Math.CONSTANT
C) m ath.CONSTANT
D) Math.constant

E) All of the above
F) A) and D)

Correct Answer

verifed

verified

A variable requires an initial value to be defined.

A) True
B) False

Correct Answer

verifed

verified

_____ are intrinsic to the JavaScript language.


A) Built-in objects
B) Event-driven objects
C) Browser objects
D) Customized objects

E) C) and D)
F) A) and B)

Correct Answer

verifed

verified

Identify a syntax to set the time-delayed commands.


A) SettimeOut(delay) ;
B) Setinterval(interval) ;
C) setTimeout("command", delay) ;
D) setInterval("command", interval) ;

E) B) and D)
F) None of the above

Correct Answer

verifed

verified

C

Which of the following is created by a programmer for use in an application.


A) Built-in objects
B) Browser objects
C) Document objects
D) Customized objects

E) B) and C)
F) None of the above

Correct Answer

verifed

verified

Case-Based Critical Thinking Questions Case 9-1 Terin has created a page for a training institute that will allow users to browse the training courses provided at the institute. Terin uses JavaScript to write the content using objects and functions. The objects defined in the code are document object, history object, screen object, navigator object, and the location object. Identify an object created by Terin that will contain information about the current URL.


A) history object
B) screen object
C) location object
D) navigator object

E) C) and D)
F) B) and C)

Correct Answer

verifed

verified

The _____ attribute can be applied to the script element to ensure that an object can be referenced within a JavaScript program that runs only after the page has completed loading.


A) async
B) defer
C) charset
D) type

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

Identify an expression used to apply a method to an object.


A) object.object(method)
B) Object.name(method)
C) object.method(values)
D) Object.name(values)

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

C

A _____ occurs after a script has been successfully loaded with no syntax errors and is being executed by a browser.


A) load-time error
B) run-time error
C) logical error
D) fatal error

E) A) and C)
F) A) and D)

Correct Answer

verifed

verified

B

If no value is assigned to a Boolean variable, it is interpreted as having a value of true .

A) True
B) False

Correct Answer

verifed

verified

_____ is the programming language for client-side programs.


A) Perl
B) JavaScript
C) C#
D) PHP

E) All of the above
F) A) and B)

Correct Answer

verifed

verified

A logical error is the easiest to fix as the errors in the code can be traced easily.

A) True
B) False

Correct Answer

verifed

verified

_____ programming distributes the load to prevent a server from getting overloaded with program-related requests.


A) Client-side
B) Server-side
C) Inductive
D) Semantic

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

Identify the property that best matches the following style rules.

Premises
It is used to reference an object as part of a collection in a document.
It appears when a fault happens when a browser is unable to complete a line of code.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns the text within element disregarding any HTML tags.
It is an object collection in which all the elements are marked with the tag.
It extracts the first integer value from a sequence of characters.
It is a command to create a dialog box containing a message.
It returns the HTML code within element as well as the HTML code of element itself.
It returns a text string displaying value to n decimal places.
Responses
collection[idref]
element .textContent
parseInt(string)
Decrement operator
Run-time error
value.toPrecision(n)
value .toFixed(n)
window.alert(" ");
document.anchors
element .outerHTML

Correct Answer

It is used to reference an object as part of a collection in a document.
It appears when a fault happens when a browser is unable to complete a line of code.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns the text within element disregarding any HTML tags.
It is an object collection in which all the elements are marked with the tag.
It extracts the first integer value from a sequence of characters.
It is a command to create a dialog box containing a message.
It returns the HTML code within element as well as the HTML code of element itself.
It returns a text string displaying value to n decimal places.

Showing 1 - 20 of 72

Related Exams

Show Answer