Ch8: JavaScript Fundamentals

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Which of the following is true regarding JavaScript?

JavaScript runs directly inside the browser without the need for the JVM.

JavaScript was first introduced by __________.

Netscape

When we say that JavaScript variables are a dynamically typed we mean that

a variable type cannot be changed after the variable has been initialized.

Which of the following is true about the alert() function Question 5 options: a. The alert() function makes the browser show a pop-up to the user. b. The alert() function obscures the underlying webpage. c. The user has to click OK before any other actions can be taken. d. All of these are true.

d

If you want to execute one set of statements when a condition evaluates to false and another set of statements when the condition evaluates to true,the best statement to use is a(n) _____.

if...else statement

Which of the following is the correct comparison operator for equals? Question 6 options: a. = b. == c. != d. !==

==

If A is true and B is false, which of the following results is returned for these the Boolean operators based on the truth tables? Question 7 options: a. A && B is true b. A || B is true c. A || B is false d. A ! B is false

A || B is true

Which is true about the JavaScript statement var x = 3? a. The variable x has been declared but not initialized. b. The variable x has been declared and initialized. c. The variable x has been initialized but not declared. d. The variable x has not been declared nor initialized.

B

The JavaScript function to place the date on a page is:

Date()

JavaScript is the client-side implementation of the Java programming language, both developed by Sun Java in collaboration with Oracle.

False

JavaScript relies on server-side processing to execute the code.

False

Like many programming languages, JavaScript variable declarations require a data type such as int"," char or string.

False

There are objects that are included in the JavaScript language; but you cannot define your own kind of objects.

False

Which of the following is NOT an advantage of client-side scripting?

Idiosyncrasies between various browsers and operating systems make it easy to test for all potential client configurations.

The JavaScript method .toString():

puts a number is displayable form

Any text within the opening and closing <noscript> ... </noscript> tags will be displayed only to users without the ability to load JavaScript.

True

Concatenation can be written in either of the following ways: var str = greet.concat("Morning"); var str = greet + "Morning";

True

JavaScript is an implementation of a standardized scripting language called ECMAScript.

True

The principles of Graceful Degradation and Progressive Enhancement are implemented differently, but either strategy can successfully be used to accommodate users with older browsers.

True

Variable assignment can happen at declaration-time by appending the value to the declaration, or at run time with a simple right-to-left assignment.

True


Kaugnay na mga set ng pag-aaral

Adult Three Exam Two Practice Questions

View Set

Maternity Final Practice Questions

View Set

Metabolic Final Practice Problems

View Set

11: Air pollution and sulfur dioxide

View Set

Lecture 3: Clinical anatomy if the knee

View Set

Sine and Cosine of Unit Circle Points

View Set