ITC 320

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

What is the value of the constant named result after the following code executes?

30

What elements would the style rule that follows apply to?

All elements with the class named red

After the statements that follow execute, what's the value of the variable named fullName?

Harris, Ray

(Refer to Code Example 2-1) What would be returned if the user entered 14.78 at the prompt?

You will be eligible to vote in 4 years

Which type of selector would you use to refer to a specific HTML element?

an id selector

Which of the following constants stores a Boolean value?

choice

Which attribute uniquely identifies an HTML element?

id

JavaScript code is run by

the JavaScript engine in the web browser

(Refer to Code Example 2-1) What type of data is stored in myAge after the first line is executed?

(INCORRECT) numeric data (NEW ANSWER) string data

What is the value of the constant named result after the following code executes?

0

After the following statements execute, what's the value of the constant named message?

Nothing is wrong with this identifier

What is wrong with the following JavaScript identifier?

Nothing is wrong with this identifier.

(Refer to Code Example 2-1) What would be returned if the user entered "fifteen" at the prompt?

You will be eligible to vote in NaN years

The quickest way to re-run a web page that's already in your browser after you've made changes to the code for the page is to

click on the Reload or Refresh button

Which HTML element can be used to group elements when none of the semantic elements apply?

div

Which HTML element typically contains the main content of a web page?

main

In a web browser, which object is always available to JavaScript so you don't have to code its name when you call its methods?

the window object

To write a string to a document, use

the write() method

Which of the following is a valid statement for declaring and initializing a variable named length to a starting value of 120?

(INCORRECT) const length = 120; (INCORRECT) length = 120; (NEW ANSWER) let length = 120;

Which of the following is a valid CSS selector for a class named menu?

.menu

What is the value of the variable named myNum after the statements that follow are executed?

45

After the following statements execute, what's the value of the constant named message?

A Hammer costs 12.99.

Which of the following correctly identifies three of the primitve data types provided by JavaScript?

Boolean, numeric, string

If you're using the Chrome browser and a JavaScript application stops running due to an error in the JavaScript code, you can view the statement that caused the error by first pressing F12. Then, you can

Click on the link in the Console panel and review the code in the Sources panel

Which version of EcmaScript is also known as ES6?

ES2015

ECMAScript is a specification that provides a standard for

JavaScript

To interact with a web server, the client for a web application typically uses a

JavaScript engine (INCORRECT) - (NEW ANSWER) web browser

To include JavaScript from a file in a web page, you can code

a script element at the end of the body element of the HTML for a page

To make a website available to other computers over a network, the website is stored on

a web server

To display string or numeric data in a dialog box, use the

alert() method

Which of the following statements is/are true? Whitespace

all of the above

When a client requests a dynamic web page, the HTML is generated by

an application server

You can use a link element in an HTML document to provide

an external style sheet

A value assigned to a variable or a constant can be

any of the above

The class attribute

can be used by CSS to apply the same formatting to more than one HTML element

Which of the following statements is false? A JavaScript identifier

can start with a number

Commenting out a portion of code is typically used to

disable a portion of code for testing purposes

Suppose that a JavaScript application that's on your computer consists of an HTML file, a CSS file, and a JavaScript file. To run the application, you can

find the HTML file in your file system and double-click on it

When a client requests a static web page, the HTML is

generated by the web browser (INCORRECT ANSWER) - generated by an application server (INCORRECT ANSWER) - accessed from the web server (NEW ANSWER)

Most modern browsers support recent ECMAScript specifications. Which of the following isn't considered a modern browser?

internet explorer

The order of precedence for arithmetic expressions causes

multiplication operations to be performed before addition operations

Which of the following is NOT part of an HTTP URL:

node

In the code that follows, window is a/an window.prompt("Enter your name");

object

To allow a user to enter a value into a dialog box, use the

prompt() method

Data or attributes that are associated with an object are its

properties

Within a CSS style rule, a property declaration includes

property and a value

What sequence of components does an HTTP URL consist of before the filename?

protocol, domain name, path

When you develop a web page, you use an HTML file to provide

the structure and content for the page

An HTTP response is sent from

the web server to the client

Suppose that a JavaScript application on the Internet consists of an HTML file, a CSS file, and a JavaScript file. To run the application, you can

type the URL of the HTML file into the browser's address bar

When declaring a variable or constant, which keyword can lead to hard-to-find bugs because it causes the variable or constant to be initialized to undefined when it's hoisted?

var


Kaugnay na mga set ng pag-aaral

Chemokines and Cytokines (Mayank)

View Set

Computer Science 1 Java Quiz review

View Set

Honan-Chapter 29: Nursing Assessment: Endocrine Function

View Set

ACSM Chapter 15. 5th.ed Cardiorespiratory Trainig

View Set

VATI Comprehensive Predictor NCLEX Questions

View Set

AP European History Final Review

View Set