Introduction to JavaScript (Quiz)

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

Using JavaScript best practices, which X/HTML tag correctly targets a block of JavaScript code for browsers that support JavaScript version 1.5?

<script language ="JavaScript 1.5">

Which of the following code segments properly ensures that JavaScript code will not be displayed in the browser window by older browsers?

<script language="JavaScript"> <!-- // JavaScript code var x = 10; //--> </script>

Which line of code demonstrates the correct way to link an external JavaScript file to an X/HTML document?

<script type="text/javascript" src="myJavaScriptCode.js">

Which code block demonstrates correct syntax for a multiple-line comment in JavaScript?

<script type="text/javascript"> /*This is a multiple-line comment. The JavaScript interpreter will ignore this text.*/</script>

Which code block demonstrates correct syntax for a single-line comment in JavaScript?

<script type="text/javascript"> //This is a single-line comment. The JavaScript interpreter will ignore this text.</script>

Which of the following best describes an object-oriented program?

A collection of individual objects that perform different functions

Why should comments be included within JavaScript code blocks?

Because comments provide a way to indicate the intent of the code

Which of the following is a feature of JavaScript?

Checks object references at run time ("dynamic binding")

Which organization approved JavaScript as an international standard in 1997?

European Computer Manufacturer's Association (ECMA)

JavaScript is an example of which language model?

Event-driven

Which of the following is a characteristic of event-driven programming?

Events can trigger functions.

Which of the following is true about server-side JavaScript technologies?

Implementations of server-side JavaScript include LiveWire and work with back-end server processes.

What is Microsoft's implementation of JavaScript called?

JScript

Which client-side scripting language is supported only by the Microsoft Internet Explorer browser?JScript

JScript

Which of the following best describes the relationship between JavaScript and Java?

JavaScript and Java are different languages and have no relationship.

Which of the following accurately describes a difference between JavaScript and Java?

JavaScript is interpreted whereas Java is compiled.

What was the original implementation of Server-Side JavaScript (SSJS) called?

LiveWire

What type of language is HTML?

Markup language

The JavaScript language was originally developed by which of the following?

Netscape Corporation

JavaScript fits best under which category of languages?

Object-based

Which task is an example of a server-side JavaScript application?

Parsing and disseminating user-submitted information

What is the main characteristic of a programming language that distinguishes it from a scripting language?

Programming languages are compiled whereas scripting languages are interpreted.

What term is usually used in programming to refer to attributes and values?

Properties

What step should you take to ensure that your JavaScript code runs as expected?

Test your code in various browsers.

When programming with objects, what is a method?

The actions that an object can be made to perform

What is the purpose of the X/HTML <noscript> tag?

To display alternate content for browsers that do not support JavaScript

Which of the following is a good reason to use external .js files?

To facilitate frequent revisions

Which of the following is the most similar to JavaScript in purpose and implementation?

VBScript


Conjuntos de estudio relacionados

Homework 3: Antigen Recognition by T Lymphocytes and B Cell Development

View Set

AIC Test Management, Legal Entities & Delivery Methods Exercise

View Set

ATI: RN Pediatric Nursing Practice Online Practice 2023 A

View Set

Ch. 53 Care of Patients with Oral Cavity Problems

View Set

Chapter 18 - Arthritis & other Connective Tissue Diseases

View Set