Tutorial 9 Quiz - Getting Started with JavaScript

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

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

False

​ A variable requires an initial value to be defined.

False

​ In JavaScript, the clearTimeout() method is used to clear all repeated commands.

False

​ JavaScript is a procedural language that needs a compiler to translate the code into machine language.

False

JavaScript comments can be entered on single or multiple lines.

True

​ Any command that references a document object before the browser has parsed the HTML code will result in an error because those objects do not yet reside in memory.

True

​ JavaScript is case sensitive.

True

​ Parameters are treated as variables within a function.

True

​ The script element can be placed anywhere within the HTML document.

True

​ To avoid fatal errors, it is advised to apply the _____ statement locally only to functions that are created rather than globally as the first line of the script file.

"use strict";

​ Which of the following can be referenced only after the browser has finished parsing the page content?

Document objects

​ Which of the following syntax is used for a function to return a value?

function function_name(parameters){ commands return value;}

​ Identify a syntax for JavaScript function.

function function_name(parameters){ commands }

​ Objects are organized into groups called _____.

object collections

​ Identify a method that repeatedly runs commands at specified time breaks in a function created.

setInterval("command", interval)

​ Identify a command that displays a dialog box containing the message "Hello World!".

window.alert("Hello World!");

Identify the output of the following code. var x = 8; var y = 6;

​96

​ _____ are intrinsic to the JavaScript language.

​Built-in objects

​ _____ is the process of locating and fixing a programming error.

​Debugging

​_____ is the programming language for client-side programs.

​JavaScript

​ Identify a return value for the expression 5/"A" using JavaScript.

​NaN

​ To break a text string into several lines, which means that the text string continues on the next line, the _____ character should be used.

​backslash

​ The technique for locating the source of an error is to set up _____, which are locations where the browser will pause the program, allowing the programmer to determine the error at that position.

​breakpoints

JavaScript is used as a programming tool for: ​

​creating interactive web forms and animated graphics

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. Terin wants to create an object that will contain information about the browser application. Which of the following objects must Terin create to accomplish this?​

​navigator object

​ A video embedded on a web page is a(n) _____ and has properties such as source of the video file or the width and height of the video player.

​object

​ A command that indicates an action for the browser to take should end with a _____.

​semicolon

​ A user can create an embedded script by removing the _____ attribute and placing all of the JavaScript code within the script element.

​src

A(n) _____ is any group of characters enclosed within either double or single quotation marks in JavaScript.

​text string

​ The _____ property should be used only when no markup tags are involved.

​textContent


संबंधित स्टडी सेट्स

APUSH Chapter 7 Notes (1793-1815)

View Set

HEALTH ASSESSMENT PRACTICE QUESTIONS

View Set

State Simulator Exam - 200 Questions Practice Exam

View Set

Section 7, Unit 3: Subprime Lending, Predatory Lending, and Mortgage Fraud

View Set

Unit 3- marine provinces and marine sediments

View Set

English IV: Lesson Three (Test Nine)

View Set

Quizfrågor kapitel 3 från canvas

View Set

Pharmacology - Prep U - Chapter 57

View Set