Tutorial 9 Quiz - Getting Started with JavaScript

Tutorial 9 Quiz - Getting Started with JavaScript

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

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

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (30)

Section 1

(30 cards)

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

Front

​text string

Back

​ A variable requires an initial value to be defined.

Front

False

Back

​ Identify a syntax for JavaScript function.

Front

function function_name(parameters){ commands }

Back

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

Front

setInterval("command", interval)

Back

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

Front

False

Back

​ 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.

Front

"use strict";

Back

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

Front

​backslash

Back

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

Front

False

Back

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

Front

True

Back

​ 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.

Front

​breakpoints

Back

​ Objects are organized into groups called _____.

Front

object collections

Back

​ Parameters are treated as variables within a function.

Front

True

Back

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

Front

​NaN

Back

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

Front

​Debugging

Back

JavaScript comments can be entered on single or multiple lines.

Front

True

Back

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

Front

False

Back

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

Front

​JavaScript

Back

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

Front

​semicolon

Back

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?​

Front

​navigator object

Back

​ 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.

Front

True

Back

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

Front

function function_name(parameters){ commands return value;}

Back

​ 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.

Front

​object

Back

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

Front

​96

Back

​ JavaScript is case sensitive.

Front

True

Back

​ _____ are intrinsic to the JavaScript language.

Front

​Built-in objects

Back

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

Front

​src

Back

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

Front

Document objects

Back

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

Front

window.alert("Hello World!");

Back

JavaScript is used as a programming tool for: ​

Front

​creating interactive web forms and animated graphics

Back

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

Front

​textContent

Back