CGS3175

¡Supera tus tareas y exámenes ahora con Quizwiz!

Recursion is a function that __________.

Calls itself

The for loop contains how many expressions separated by semicolons?

Three

The comparison operator !== is used to determine what?

If two operands are not identical in value and type

JavaScript can __________.

Improve website usability.

JavaScript programs are executed by a JavaScript _________ in a Web browser.

Interpreter

A JavaScript function can be called using the HTML anchor tag element, for example <a href="JavaScript:greetings()">Click here</a>

True

Functions in JavaScript are self-contained units of program written to accomplish a specific task

True

In JavaScript the following code examples have equivalent results. Example 1: dog.breed = "German Shepard"; Example 2: dog["breed"] = "German Shepard";

True

The following call to a JavaScript function is valid. <form> <input type="button" value="Welcome" onClick="greetings('Students');"> </form>

True

Anonymous functions in JavaScript are unique because its definition is assigned to a __________ since they don't have a __________.

Variable, name

When does an HTML document become a document object?

When the HTML document is loaded in a web browser

Which of the following is not a valid data type of that a variable can hold?

boolean..

What are the three looping constructs in JavaScript?

while, do/while, for

When a function is defined in JavaScript the expected received data values are called?

Parameters

&& and || are called what in JavaScript?

logical operators

The ternary operator, which can be used to replace an if/else conditional statement, requires how many operands?

3

Well-formed statements written in JavaScript end with __________.

; (semi-colon)

Regular functions must include which of the following?

All of these

When passing data to a function in JavaScript which of the following statements is true?

All of these

After a function has been declared in the <head></head> section of the HTML document, how many times can it be used in the <body></body>?

As many times as required

What is the purpose of a prompt() dialog box?

Ask the user for information

Decision-making constructs for control flow such as if, if/else, if/else if, and switch are called

Control expressions

When using the Array object in JavaScript the data types stored in each element of the array must be the same.

False

When using the Math object a programmer MUST create an instance of the JavaScript core object by calling the constructor (i.e. Math math = new Math()).

False

What are logical errors in a JavaScript program?

Faulty logic in the javascript

Variables declared outside of functions that can be used or changed anywhere in the program are called __________.

Global variables

When using the typeof() function what does a value of null mean?

No valid data type

When calling a declared function setLetter(word, letter, display) how many arguments must be passed for the function to run?

None are required

Local variables are declared inside of JavaScript functions and can be used or modified __________.

Only in the function they are declared

When asked to develop unobtrusive JavaScript this means that the JavaScript is __________.

Stored in an external file with a .js file extension

What is the primary difference between a while loop and a do/while loop?

While loops executes 0...n times; do/while loop executes 1...n times


Conjuntos de estudio relacionados

Chapter 4 - Disability Income Insurance

View Set

Business In Society Midterm Review

View Set

WPC150: MH-Read: SCM - Chapters 3 (sections), 9, and 15

View Set

Информатика ЕНТ подготовка 2023

View Set

Ratio and Measures for Working Capital Management

View Set

Chemistry - Periodic Trends - Chapter Review

View Set