Deck 9: Getting Started With Javascript Tutorial

ملء الشاشة (f)
exit full mode
سؤال
In JavaScript, the clearTimeout() method is used to clear all repeated commands.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Parameters are treated as variables within a function.
سؤال
Server-side and client-side programming are the two main types of web-based programming.
سؤال
The first character of a variable must be a numeral or an underscore character ( _ ).
سؤال
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.
سؤال
JavaScript demands strict application of rules for syntax and program structure.
سؤال
There is no limit to the number of time-delayed commands a browser can process.
سؤال
A logical error is the easiest to fix as the errors in the code can be traced easily.
سؤال
JavaScript supports methods to change the date stored within a Date object.
سؤال
JavaScript comments can be entered on single or multiple lines.
سؤال
The async attribute stalls script processing until after the page has been completely parsed and loaded.
سؤال
The script element can be placed anywhere within the HTML document.
سؤال
The Math.round(x) method rounds the value of x down to the next lowest integer.
سؤال
An Infinity value is generated for an operation whose result is less than the smallest numeric value.
سؤال
An object can be modified by changing its properties or by applying a method.
سؤال
JavaScript is case sensitive.
سؤال
A variable requires an initial value to be defined.
سؤال
If no value is assigned to a Boolean variable, it is interpreted as having a value of true .
سؤال
Both HTML tags and text content can be returned by the innerHTML property.
سؤال
JavaScript is a procedural language that needs a compiler to translate the code into machine language.
سؤال
To break a text string into several lines, which means that the text string continues on the next line, the _____ character should be used.

A) forward slash
B) backslash
C) colon
D) semicolon
سؤال
Identify a statement that is added to the first line of the file to run a script in strict mode.

A) "use strict";
B) "mode strict";
C) use: strict
D) mode: strict
سؤال
JavaScript code is attached to an HTML file using the _____ element.

A) label
B) java
C) script
D) attach
سؤال
A command that indicates an action for the browser to take should end with a _____.

A) semicolon
B) backslash
C) colon
D) forward slash
سؤال
_____ is the programming language for client-side programs.

A) Perl
B) JavaScript
C) C#
D) PHP
سؤال
Developers advocate that JavaScript be run in _____ in which all lapses in syntax result in load-time or run-time errors.

A) protect mode
B) private mode
C) safe mode
D) strict mode
سؤال
The isNaN(value) function returns a Boolean value of true if the value is not numeric.
سؤال
A _____ occurs after a script has been successfully loaded with no syntax errors and is being executed by a browser.

A) load-time error
B) run-time error
C) logical error
D) fatal error
سؤال
_____ is the process of locating and fixing a programming error.

A) Scripting
B) Buffering
C) Debugging
D) Booting
سؤال
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.

A) breakpoints
B) thresholds
C) blocks
D) lapses
سؤال
Which of the following is created by a programmer for use in an application.

A) Built-in objects
B) Browser objects
C) Document objects
D) Customized objects
سؤال
Identify a shortcut key on the keyboard to open the debugging tools.

A) F9
B) F12
C) F8
D) F10
سؤال
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.

A) "use strict";
B) "use local";
C) "use global";
D) "use moderate";
سؤال
JavaScript is used as a programming tool for:

A) managing databases.
B) designing style sheets for websites.
C) creating interactive web forms and animated graphics.
D) providing virtual reality, diagnosis, and nonlinear controls.
سؤال
A user can create an embedded script by removing the _____ attribute and placing all of the JavaScript code within the script element.

A) method
B) src
C) enctype
D) id
سؤال
Identify a command that displays a dialog box containing the message "Hello World!".

A) Window.alert("Hello World!");
B) Window.Alert("Hello World!");
C) window.alert("Hello World!");
D) window.Alert("Hello World!");
سؤال
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.

A) class
B) method
C) object
D) event
سؤال
_____ are intrinsic to the JavaScript language.

A) Built-in objects
B) Event-driven objects
C) Browser objects
D) Customized objects
سؤال
The _____ attribute tells a browser to parse the HTML and JavaScript code together, only pausing to process the script before returning to the HTML file.

A) async
B) defer
C) src
D) type
سؤال
_____ programming distributes the load to prevent a server from getting overloaded with program-related requests.

A) Client-side
B) Server-side
C) Inductive
D) Semantic
سؤال
Objects are organized into groups called _____.

A) object collections
B) object pools
C) object buckets
D) object topologies
سؤال
Identify an expression that can be used to refer an element by its id attribute.

A) document.getElementById( id )
B) Document.getElementbyID( id)
C) document.getelementById( id )
D) Document.getelementByID( id )
سؤال
Identify a return value for the expression 5/"A" using JavaScript.

A) 5
B) NaN
C) Infinity
D) A
سؤال
Which of the following can be referenced only after the browser has finished parsing the page content?

A) Built-in objects
B) Browser objects
C) Document objects
D) Customized objects
سؤال
Identify a property used to refer an HTML code that is stored within a page element.

A) element.innerHTML
B) element.textContent
C) element.offsetTop
D) element.insertAdjacentHTML
سؤال
Which of the following syntax is used for a function to return a value?

A) return value; function_name(parameters){ commands }
B) function return value; { function_name(parameters) commands }
C) function function_name(parameters){ commands return value;}
D) function_name(parameters) { return value; commands }
سؤال
Identify the output of the following code. var x = 8; var y = 6;

A) 56
B) 48
C) 28
D) 96
سؤال
Identify a method that repeatedly runs commands at specified time breaks in a function created.

A) setInterval("command", interval)
B) setTimeout("command", interval)
C) setTimeout(interval, delay)
D) setInterval(interval, delay)
سؤال
Identify an expression used to apply a method to an object.

A) object.object(method)
B) Object.name(method)
C) object.method(values)
D) Object.name(values)
سؤال
Which of the following methods of the Math operator rounds x up to the next highest integer?

A) Math.round(x)
B) Math.ceil(x)
C) Math.rand(x)
D) Math.floor(x)
سؤال
Identify a command that uses the dateDiv variable to refer the page element with ID dateNow.

A) var dateDiv = document.getElementById("dateNow");
B) var dateNow = document.getElementById(dateDiv),
C) var dateNow = document.getElementById("dateDiv");
D) var dateDiv = document.getElementById(dateNow),
سؤال
Identify an expression that defines a date object.

A) new Date("month, day, year hrs:mins:secs");
B) new Date("month day, year" "hrs:mins:secs");
C) new Date("month day, year hrs:mins:secs");
D) new Date("month, day, year" hrs:mins:secs);
سؤال
Identify a syntax to set the time-delayed commands.

A) SettimeOut(delay);
B) Setinterval(interval);
C) setTimeout("command", delay);
D) setInterval("command", interval);
سؤال
The _____ property should be used only when no markup tags are involved.

A) innerHTML
B) outerHTML
C) textContent
D) insertAdjacentHTML
سؤال
A(n) _____ is a named item in a program that stores a data value, such as a number or text string, or an object, such as a part of the web browser or browser window.

A) variable
B) entity
C) constant
D) class
سؤال
The _____ attribute can be applied to the script element to ensure that an object can be referenced within a JavaScript program that runs only after the page has completed loading.

A) async
B) defer
C) charset
D) type
سؤال
A(n) _____ is any group of characters enclosed within either double or single quotation marks in JavaScript.

A) entity
B) text string
C) null value
D) object
سؤال
Identify a syntax to access any of the mathematical constants supported by the Math object.

A) math.constant
B) Math.CONSTANT
C) m ath.CONSTANT
D) Math.constant
سؤال
Identify a syntax for JavaScript function.

A) function_name function ( parameters ){ commands }
B) Function_name function ( commands ){ parameters }
C) function function_name ( parameters ){ commands }
D) Function function_name ( commands ){ parameters }
سؤال
A(n) _____ is a collection of commands that performs an action or returns a value.

A) function
B) argument
C) entity
D) pointer
سؤال
Match between columns
It is used to reference an object as part of a collection in a document.
Decrement operator
It is used to reference an object as part of a collection in a document.
value.toPrecision(n)
It is used to reference an object as part of a collection in a document.
document.anchors
It is used to reference an object as part of a collection in a document.
window.alert(" ");
It is used to reference an object as part of a collection in a document.
element .outerHTML
It is used to reference an object as part of a collection in a document.
collection[idref]
It is used to reference an object as part of a collection in a document.
element .textContent
It is used to reference an object as part of a collection in a document.
value .toFixed(n)
It is used to reference an object as part of a collection in a document.
Run-time error
It is used to reference an object as part of a collection in a document.
parseInt(string)
It appears when a fault happens when a browser is unable to complete a line of code.
Decrement operator
It appears when a fault happens when a browser is unable to complete a line of code.
value.toPrecision(n)
It appears when a fault happens when a browser is unable to complete a line of code.
document.anchors
It appears when a fault happens when a browser is unable to complete a line of code.
window.alert(" ");
It appears when a fault happens when a browser is unable to complete a line of code.
element .outerHTML
It appears when a fault happens when a browser is unable to complete a line of code.
collection[idref]
It appears when a fault happens when a browser is unable to complete a line of code.
element .textContent
It appears when a fault happens when a browser is unable to complete a line of code.
value .toFixed(n)
It appears when a fault happens when a browser is unable to complete a line of code.
Run-time error
It appears when a fault happens when a browser is unable to complete a line of code.
parseInt(string)
It is indicated by the - - symbol, which reduces the operand's value by 1.
Decrement operator
It is indicated by the - - symbol, which reduces the operand's value by 1.
value.toPrecision(n)
It is indicated by the - - symbol, which reduces the operand's value by 1.
document.anchors
It is indicated by the - - symbol, which reduces the operand's value by 1.
window.alert(" ");
It is indicated by the - - symbol, which reduces the operand's value by 1.
element .outerHTML
It is indicated by the - - symbol, which reduces the operand's value by 1.
collection[idref]
It is indicated by the - - symbol, which reduces the operand's value by 1.
element .textContent
It is indicated by the - - symbol, which reduces the operand's value by 1.
value .toFixed(n)
It is indicated by the - - symbol, which reduces the operand's value by 1.
Run-time error
It is indicated by the - - symbol, which reduces the operand's value by 1.
parseInt(string)
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
Decrement operator
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
value.toPrecision(n)
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
document.anchors
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
window.alert(" ");
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
element .outerHTML
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
collection[idref]
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
element .textContent
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
value .toFixed(n)
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
Run-time error
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
parseInt(string)
It returns the text within element disregarding any HTML tags.
Decrement operator
It returns the text within element disregarding any HTML tags.
value.toPrecision(n)
It returns the text within element disregarding any HTML tags.
document.anchors
It returns the text within element disregarding any HTML tags.
window.alert(" ");
It returns the text within element disregarding any HTML tags.
element .outerHTML
It returns the text within element disregarding any HTML tags.
collection[idref]
It returns the text within element disregarding any HTML tags.
element .textContent
It returns the text within element disregarding any HTML tags.
value .toFixed(n)
It returns the text within element disregarding any HTML tags.
Run-time error
It returns the text within element disregarding any HTML tags.
parseInt(string)
It is an object collection in which all the elements are marked with the tag.
Decrement operator
It is an object collection in which all the elements are marked with the tag.
value.toPrecision(n)
It is an object collection in which all the elements are marked with the tag.
document.anchors
It is an object collection in which all the elements are marked with the tag.
window.alert(" ");
It is an object collection in which all the elements are marked with the tag.
element .outerHTML
It is an object collection in which all the elements are marked with the tag.
collection[idref]
It is an object collection in which all the elements are marked with the tag.
element .textContent
It is an object collection in which all the elements are marked with the tag.
value .toFixed(n)
It is an object collection in which all the elements are marked with the tag.
Run-time error
It is an object collection in which all the elements are marked with the tag.
parseInt(string)
It extracts the first integer value from a sequence of characters.
Decrement operator
It extracts the first integer value from a sequence of characters.
value.toPrecision(n)
It extracts the first integer value from a sequence of characters.
document.anchors
It extracts the first integer value from a sequence of characters.
window.alert(" ");
It extracts the first integer value from a sequence of characters.
element .outerHTML
It extracts the first integer value from a sequence of characters.
collection[idref]
It extracts the first integer value from a sequence of characters.
element .textContent
It extracts the first integer value from a sequence of characters.
value .toFixed(n)
It extracts the first integer value from a sequence of characters.
Run-time error
It extracts the first integer value from a sequence of characters.
parseInt(string)
It is a command to create a dialog box containing a message.
Decrement operator
It is a command to create a dialog box containing a message.
value.toPrecision(n)
It is a command to create a dialog box containing a message.
document.anchors
It is a command to create a dialog box containing a message.
window.alert(" ");
It is a command to create a dialog box containing a message.
element .outerHTML
It is a command to create a dialog box containing a message.
collection[idref]
It is a command to create a dialog box containing a message.
element .textContent
It is a command to create a dialog box containing a message.
value .toFixed(n)
It is a command to create a dialog box containing a message.
Run-time error
It is a command to create a dialog box containing a message.
parseInt(string)
It returns the HTML code within element as well as the HTML code of element itself.
Decrement operator
It returns the HTML code within element as well as the HTML code of element itself.
value.toPrecision(n)
It returns the HTML code within element as well as the HTML code of element itself.
document.anchors
It returns the HTML code within element as well as the HTML code of element itself.
window.alert(" ");
It returns the HTML code within element as well as the HTML code of element itself.
element .outerHTML
It returns the HTML code within element as well as the HTML code of element itself.
collection[idref]
It returns the HTML code within element as well as the HTML code of element itself.
element .textContent
It returns the HTML code within element as well as the HTML code of element itself.
value .toFixed(n)
It returns the HTML code within element as well as the HTML code of element itself.
Run-time error
It returns the HTML code within element as well as the HTML code of element itself.
parseInt(string)
It returns a text string displaying value to n decimal places.
Decrement operator
It returns a text string displaying value to n decimal places.
value.toPrecision(n)
It returns a text string displaying value to n decimal places.
document.anchors
It returns a text string displaying value to n decimal places.
window.alert(" ");
It returns a text string displaying value to n decimal places.
element .outerHTML
It returns a text string displaying value to n decimal places.
collection[idref]
It returns a text string displaying value to n decimal places.
element .textContent
It returns a text string displaying value to n decimal places.
value .toFixed(n)
It returns a text string displaying value to n decimal places.
Run-time error
It returns a text string displaying value to n decimal places.
parseInt(string)
سؤال
Match between columns
It returns the text within element disregarding any HTML tags.
Decrement operator
It returns the text within element disregarding any HTML tags.
value.toPrecision(n)
It returns the text within element disregarding any HTML tags.
document.anchors
It returns the text within element disregarding any HTML tags.
window.alert(" ");
It returns the text within element disregarding any HTML tags.
element .outerHTML
It returns the text within element disregarding any HTML tags.
collection[idref]
It returns the text within element disregarding any HTML tags.
element .textContent
It returns the text within element disregarding any HTML tags.
value .toFixed(n)
It returns the text within element disregarding any HTML tags.
Run-time error
It returns the text within element disregarding any HTML tags.
parseInt(string)
It returns the HTML code within element as well as the HTML code of element itself.
Decrement operator
It returns the HTML code within element as well as the HTML code of element itself.
value.toPrecision(n)
It returns the HTML code within element as well as the HTML code of element itself.
document.anchors
It returns the HTML code within element as well as the HTML code of element itself.
window.alert(" ");
It returns the HTML code within element as well as the HTML code of element itself.
element .outerHTML
It returns the HTML code within element as well as the HTML code of element itself.
collection[idref]
It returns the HTML code within element as well as the HTML code of element itself.
element .textContent
It returns the HTML code within element as well as the HTML code of element itself.
value .toFixed(n)
It returns the HTML code within element as well as the HTML code of element itself.
Run-time error
It returns the HTML code within element as well as the HTML code of element itself.
parseInt(string)
It is used to reference an object as part of a collection in a document.
Decrement operator
It is used to reference an object as part of a collection in a document.
value.toPrecision(n)
It is used to reference an object as part of a collection in a document.
document.anchors
It is used to reference an object as part of a collection in a document.
window.alert(" ");
It is used to reference an object as part of a collection in a document.
element .outerHTML
It is used to reference an object as part of a collection in a document.
collection[idref]
It is used to reference an object as part of a collection in a document.
element .textContent
It is used to reference an object as part of a collection in a document.
value .toFixed(n)
It is used to reference an object as part of a collection in a document.
Run-time error
It is used to reference an object as part of a collection in a document.
parseInt(string)
It appears when a fault happens when a browser is unable to complete a line of code.
Decrement operator
It appears when a fault happens when a browser is unable to complete a line of code.
value.toPrecision(n)
It appears when a fault happens when a browser is unable to complete a line of code.
document.anchors
It appears when a fault happens when a browser is unable to complete a line of code.
window.alert(" ");
It appears when a fault happens when a browser is unable to complete a line of code.
element .outerHTML
It appears when a fault happens when a browser is unable to complete a line of code.
collection[idref]
It appears when a fault happens when a browser is unable to complete a line of code.
element .textContent
It appears when a fault happens when a browser is unable to complete a line of code.
value .toFixed(n)
It appears when a fault happens when a browser is unable to complete a line of code.
Run-time error
It appears when a fault happens when a browser is unable to complete a line of code.
parseInt(string)
It extracts the first integer value from a sequence of characters.
Decrement operator
It extracts the first integer value from a sequence of characters.
value.toPrecision(n)
It extracts the first integer value from a sequence of characters.
document.anchors
It extracts the first integer value from a sequence of characters.
window.alert(" ");
It extracts the first integer value from a sequence of characters.
element .outerHTML
It extracts the first integer value from a sequence of characters.
collection[idref]
It extracts the first integer value from a sequence of characters.
element .textContent
It extracts the first integer value from a sequence of characters.
value .toFixed(n)
It extracts the first integer value from a sequence of characters.
Run-time error
It extracts the first integer value from a sequence of characters.
parseInt(string)
It is an object collection in which all the elements are marked with the tag.
Decrement operator
It is an object collection in which all the elements are marked with the tag.
value.toPrecision(n)
It is an object collection in which all the elements are marked with the tag.
document.anchors
It is an object collection in which all the elements are marked with the tag.
window.alert(" ");
It is an object collection in which all the elements are marked with the tag.
element .outerHTML
It is an object collection in which all the elements are marked with the tag.
collection[idref]
It is an object collection in which all the elements are marked with the tag.
element .textContent
It is an object collection in which all the elements are marked with the tag.
value .toFixed(n)
It is an object collection in which all the elements are marked with the tag.
Run-time error
It is an object collection in which all the elements are marked with the tag.
parseInt(string)
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
Decrement operator
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
value.toPrecision(n)
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
document.anchors
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
window.alert(" ");
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
element .outerHTML
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
collection[idref]
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
element .textContent
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
value .toFixed(n)
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
Run-time error
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
parseInt(string)
It returns a text string displaying value to n decimal places.
Decrement operator
It returns a text string displaying value to n decimal places.
value.toPrecision(n)
It returns a text string displaying value to n decimal places.
document.anchors
It returns a text string displaying value to n decimal places.
window.alert(" ");
It returns a text string displaying value to n decimal places.
element .outerHTML
It returns a text string displaying value to n decimal places.
collection[idref]
It returns a text string displaying value to n decimal places.
element .textContent
It returns a text string displaying value to n decimal places.
value .toFixed(n)
It returns a text string displaying value to n decimal places.
Run-time error
It returns a text string displaying value to n decimal places.
parseInt(string)
It is a command to create a dialog box containing a message.
Decrement operator
It is a command to create a dialog box containing a message.
value.toPrecision(n)
It is a command to create a dialog box containing a message.
document.anchors
It is a command to create a dialog box containing a message.
window.alert(" ");
It is a command to create a dialog box containing a message.
element .outerHTML
It is a command to create a dialog box containing a message.
collection[idref]
It is a command to create a dialog box containing a message.
element .textContent
It is a command to create a dialog box containing a message.
value .toFixed(n)
It is a command to create a dialog box containing a message.
Run-time error
It is a command to create a dialog box containing a message.
parseInt(string)
It is indicated by the - - symbol, which reduces the operand's value by 1.
Decrement operator
It is indicated by the - - symbol, which reduces the operand's value by 1.
value.toPrecision(n)
It is indicated by the - - symbol, which reduces the operand's value by 1.
document.anchors
It is indicated by the - - symbol, which reduces the operand's value by 1.
window.alert(" ");
It is indicated by the - - symbol, which reduces the operand's value by 1.
element .outerHTML
It is indicated by the - - symbol, which reduces the operand's value by 1.
collection[idref]
It is indicated by the - - symbol, which reduces the operand's value by 1.
element .textContent
It is indicated by the - - symbol, which reduces the operand's value by 1.
value .toFixed(n)
It is indicated by the - - symbol, which reduces the operand's value by 1.
Run-time error
It is indicated by the - - symbol, which reduces the operand's value by 1.
parseInt(string)
سؤال
Case-Based Critical Thinking Questions Case 9-2 Robin maintains a web page for updating the metro timings in the city. He would like the website to display the present day's schedule. To do this, Robin writes a code that includes an object to retrieve the day of the week and then loads the appropriate data into the page. Robin includes an expression to the code, var thisDay = new Date("May 23, 2018 14:35:05"); Identify the value for the month that will be displayed on the web page by using thisDay.getMonth() method.

A) 35
B) 4
C) 14
D) 3
سؤال
Identify a function that extracts the first numeric value from the text string .

A) parseInt(string)
B) parseFloat(string)
C) isFinite(value)
D) isNaN(value)
سؤال
Case-Based Critical Thinking Questions Case 9-1 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. Identify an object created by Terin that will contain information about the current URL.

A) history object
B) screen object
C) location object
D) navigator object
سؤال
Case-Based Critical Thinking Questions Case 9-2 Robin maintains a web page for updating the metro timings in the city. He would like the website to display the present day's schedule. To do this, Robin writes a code that includes an object to retrieve the day of the week and then loads the appropriate data into the page. Identify an expression that Robin must use to define the current date on the web page.

A) new Date(year, month, day, hrs, mins, secs);
B) new date("hrs", "mins", "secs", "day", "month", "year");
C) this.day( hrs, mins, secs, year, month, day ),
D) this Day("day", "month", "hrs", "mins", "secs", "year"),
سؤال
Match between columns
الفرضيات:
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
الردود:
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
سؤال
Explain briefly about converting between numbers and text.
سؤال
Case-Based Critical Thinking Questions Case 9-2 Robin maintains a web page for updating the metro timings in the city. He would like the website to display the present day's schedule. To do this, Robin writes a code that includes an object to retrieve the day of the week and then loads the appropriate data into the page. Robin includes an expression to the code, var thisDay = new Date("May 23, 2018 14:35:05"); He also includes the method thisDay.getDay() in the code. What is the result for the given method?

A) 1
B) 3
C) 4
D) 5
سؤال
Explain the syntax rules that must be maintained when writing JavaScript commands.
سؤال
Explain the syntax to reference objects in JavaScript.
سؤال
Case-Based Critical Thinking Questions Case 9-1 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?

A) navigator object
B) location object
C) history object
D) document object
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/72
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 9: Getting Started With Javascript Tutorial
1
In JavaScript, the clearTimeout() method is used to clear all repeated commands.
False
2
Parameters are treated as variables within a function.
True
3
Server-side and client-side programming are the two main types of web-based programming.
True
4
The first character of a variable must be a numeral or an underscore character ( _ ).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
5
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
6
JavaScript demands strict application of rules for syntax and program structure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
7
There is no limit to the number of time-delayed commands a browser can process.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
8
A logical error is the easiest to fix as the errors in the code can be traced easily.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
9
JavaScript supports methods to change the date stored within a Date object.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
10
JavaScript comments can be entered on single or multiple lines.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
11
The async attribute stalls script processing until after the page has been completely parsed and loaded.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
12
The script element can be placed anywhere within the HTML document.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
13
The Math.round(x) method rounds the value of x down to the next lowest integer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
14
An Infinity value is generated for an operation whose result is less than the smallest numeric value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
15
An object can be modified by changing its properties or by applying a method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
16
JavaScript is case sensitive.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
17
A variable requires an initial value to be defined.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
18
If no value is assigned to a Boolean variable, it is interpreted as having a value of true .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
19
Both HTML tags and text content can be returned by the innerHTML property.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
20
JavaScript is a procedural language that needs a compiler to translate the code into machine language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
21
To break a text string into several lines, which means that the text string continues on the next line, the _____ character should be used.

A) forward slash
B) backslash
C) colon
D) semicolon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
22
Identify a statement that is added to the first line of the file to run a script in strict mode.

A) "use strict";
B) "mode strict";
C) use: strict
D) mode: strict
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
23
JavaScript code is attached to an HTML file using the _____ element.

A) label
B) java
C) script
D) attach
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
24
A command that indicates an action for the browser to take should end with a _____.

A) semicolon
B) backslash
C) colon
D) forward slash
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
25
_____ is the programming language for client-side programs.

A) Perl
B) JavaScript
C) C#
D) PHP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
26
Developers advocate that JavaScript be run in _____ in which all lapses in syntax result in load-time or run-time errors.

A) protect mode
B) private mode
C) safe mode
D) strict mode
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
27
The isNaN(value) function returns a Boolean value of true if the value is not numeric.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
28
A _____ occurs after a script has been successfully loaded with no syntax errors and is being executed by a browser.

A) load-time error
B) run-time error
C) logical error
D) fatal error
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
29
_____ is the process of locating and fixing a programming error.

A) Scripting
B) Buffering
C) Debugging
D) Booting
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
30
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.

A) breakpoints
B) thresholds
C) blocks
D) lapses
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
31
Which of the following is created by a programmer for use in an application.

A) Built-in objects
B) Browser objects
C) Document objects
D) Customized objects
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
32
Identify a shortcut key on the keyboard to open the debugging tools.

A) F9
B) F12
C) F8
D) F10
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
33
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.

A) "use strict";
B) "use local";
C) "use global";
D) "use moderate";
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
34
JavaScript is used as a programming tool for:

A) managing databases.
B) designing style sheets for websites.
C) creating interactive web forms and animated graphics.
D) providing virtual reality, diagnosis, and nonlinear controls.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
35
A user can create an embedded script by removing the _____ attribute and placing all of the JavaScript code within the script element.

A) method
B) src
C) enctype
D) id
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
36
Identify a command that displays a dialog box containing the message "Hello World!".

A) Window.alert("Hello World!");
B) Window.Alert("Hello World!");
C) window.alert("Hello World!");
D) window.Alert("Hello World!");
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
37
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.

A) class
B) method
C) object
D) event
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
38
_____ are intrinsic to the JavaScript language.

A) Built-in objects
B) Event-driven objects
C) Browser objects
D) Customized objects
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
39
The _____ attribute tells a browser to parse the HTML and JavaScript code together, only pausing to process the script before returning to the HTML file.

A) async
B) defer
C) src
D) type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
40
_____ programming distributes the load to prevent a server from getting overloaded with program-related requests.

A) Client-side
B) Server-side
C) Inductive
D) Semantic
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
41
Objects are organized into groups called _____.

A) object collections
B) object pools
C) object buckets
D) object topologies
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
42
Identify an expression that can be used to refer an element by its id attribute.

A) document.getElementById( id )
B) Document.getElementbyID( id)
C) document.getelementById( id )
D) Document.getelementByID( id )
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
43
Identify a return value for the expression 5/"A" using JavaScript.

A) 5
B) NaN
C) Infinity
D) A
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
44
Which of the following can be referenced only after the browser has finished parsing the page content?

A) Built-in objects
B) Browser objects
C) Document objects
D) Customized objects
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
45
Identify a property used to refer an HTML code that is stored within a page element.

A) element.innerHTML
B) element.textContent
C) element.offsetTop
D) element.insertAdjacentHTML
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
46
Which of the following syntax is used for a function to return a value?

A) return value; function_name(parameters){ commands }
B) function return value; { function_name(parameters) commands }
C) function function_name(parameters){ commands return value;}
D) function_name(parameters) { return value; commands }
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
47
Identify the output of the following code. var x = 8; var y = 6;

A) 56
B) 48
C) 28
D) 96
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
48
Identify a method that repeatedly runs commands at specified time breaks in a function created.

A) setInterval("command", interval)
B) setTimeout("command", interval)
C) setTimeout(interval, delay)
D) setInterval(interval, delay)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
49
Identify an expression used to apply a method to an object.

A) object.object(method)
B) Object.name(method)
C) object.method(values)
D) Object.name(values)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
50
Which of the following methods of the Math operator rounds x up to the next highest integer?

A) Math.round(x)
B) Math.ceil(x)
C) Math.rand(x)
D) Math.floor(x)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
51
Identify a command that uses the dateDiv variable to refer the page element with ID dateNow.

A) var dateDiv = document.getElementById("dateNow");
B) var dateNow = document.getElementById(dateDiv),
C) var dateNow = document.getElementById("dateDiv");
D) var dateDiv = document.getElementById(dateNow),
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
52
Identify an expression that defines a date object.

A) new Date("month, day, year hrs:mins:secs");
B) new Date("month day, year" "hrs:mins:secs");
C) new Date("month day, year hrs:mins:secs");
D) new Date("month, day, year" hrs:mins:secs);
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
53
Identify a syntax to set the time-delayed commands.

A) SettimeOut(delay);
B) Setinterval(interval);
C) setTimeout("command", delay);
D) setInterval("command", interval);
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
54
The _____ property should be used only when no markup tags are involved.

A) innerHTML
B) outerHTML
C) textContent
D) insertAdjacentHTML
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
55
A(n) _____ is a named item in a program that stores a data value, such as a number or text string, or an object, such as a part of the web browser or browser window.

A) variable
B) entity
C) constant
D) class
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
56
The _____ attribute can be applied to the script element to ensure that an object can be referenced within a JavaScript program that runs only after the page has completed loading.

A) async
B) defer
C) charset
D) type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
57
A(n) _____ is any group of characters enclosed within either double or single quotation marks in JavaScript.

A) entity
B) text string
C) null value
D) object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
58
Identify a syntax to access any of the mathematical constants supported by the Math object.

A) math.constant
B) Math.CONSTANT
C) m ath.CONSTANT
D) Math.constant
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
59
Identify a syntax for JavaScript function.

A) function_name function ( parameters ){ commands }
B) Function_name function ( commands ){ parameters }
C) function function_name ( parameters ){ commands }
D) Function function_name ( commands ){ parameters }
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
60
A(n) _____ is a collection of commands that performs an action or returns a value.

A) function
B) argument
C) entity
D) pointer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
61
Match between columns
It is used to reference an object as part of a collection in a document.
Decrement operator
It is used to reference an object as part of a collection in a document.
value.toPrecision(n)
It is used to reference an object as part of a collection in a document.
document.anchors
It is used to reference an object as part of a collection in a document.
window.alert(" ");
It is used to reference an object as part of a collection in a document.
element .outerHTML
It is used to reference an object as part of a collection in a document.
collection[idref]
It is used to reference an object as part of a collection in a document.
element .textContent
It is used to reference an object as part of a collection in a document.
value .toFixed(n)
It is used to reference an object as part of a collection in a document.
Run-time error
It is used to reference an object as part of a collection in a document.
parseInt(string)
It appears when a fault happens when a browser is unable to complete a line of code.
Decrement operator
It appears when a fault happens when a browser is unable to complete a line of code.
value.toPrecision(n)
It appears when a fault happens when a browser is unable to complete a line of code.
document.anchors
It appears when a fault happens when a browser is unable to complete a line of code.
window.alert(" ");
It appears when a fault happens when a browser is unable to complete a line of code.
element .outerHTML
It appears when a fault happens when a browser is unable to complete a line of code.
collection[idref]
It appears when a fault happens when a browser is unable to complete a line of code.
element .textContent
It appears when a fault happens when a browser is unable to complete a line of code.
value .toFixed(n)
It appears when a fault happens when a browser is unable to complete a line of code.
Run-time error
It appears when a fault happens when a browser is unable to complete a line of code.
parseInt(string)
It is indicated by the - - symbol, which reduces the operand's value by 1.
Decrement operator
It is indicated by the - - symbol, which reduces the operand's value by 1.
value.toPrecision(n)
It is indicated by the - - symbol, which reduces the operand's value by 1.
document.anchors
It is indicated by the - - symbol, which reduces the operand's value by 1.
window.alert(" ");
It is indicated by the - - symbol, which reduces the operand's value by 1.
element .outerHTML
It is indicated by the - - symbol, which reduces the operand's value by 1.
collection[idref]
It is indicated by the - - symbol, which reduces the operand's value by 1.
element .textContent
It is indicated by the - - symbol, which reduces the operand's value by 1.
value .toFixed(n)
It is indicated by the - - symbol, which reduces the operand's value by 1.
Run-time error
It is indicated by the - - symbol, which reduces the operand's value by 1.
parseInt(string)
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
Decrement operator
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
value.toPrecision(n)
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
document.anchors
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
window.alert(" ");
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
element .outerHTML
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
collection[idref]
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
element .textContent
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
value .toFixed(n)
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
Run-time error
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
parseInt(string)
It returns the text within element disregarding any HTML tags.
Decrement operator
It returns the text within element disregarding any HTML tags.
value.toPrecision(n)
It returns the text within element disregarding any HTML tags.
document.anchors
It returns the text within element disregarding any HTML tags.
window.alert(" ");
It returns the text within element disregarding any HTML tags.
element .outerHTML
It returns the text within element disregarding any HTML tags.
collection[idref]
It returns the text within element disregarding any HTML tags.
element .textContent
It returns the text within element disregarding any HTML tags.
value .toFixed(n)
It returns the text within element disregarding any HTML tags.
Run-time error
It returns the text within element disregarding any HTML tags.
parseInt(string)
It is an object collection in which all the elements are marked with the tag.
Decrement operator
It is an object collection in which all the elements are marked with the tag.
value.toPrecision(n)
It is an object collection in which all the elements are marked with the tag.
document.anchors
It is an object collection in which all the elements are marked with the tag.
window.alert(" ");
It is an object collection in which all the elements are marked with the tag.
element .outerHTML
It is an object collection in which all the elements are marked with the tag.
collection[idref]
It is an object collection in which all the elements are marked with the tag.
element .textContent
It is an object collection in which all the elements are marked with the tag.
value .toFixed(n)
It is an object collection in which all the elements are marked with the tag.
Run-time error
It is an object collection in which all the elements are marked with the tag.
parseInt(string)
It extracts the first integer value from a sequence of characters.
Decrement operator
It extracts the first integer value from a sequence of characters.
value.toPrecision(n)
It extracts the first integer value from a sequence of characters.
document.anchors
It extracts the first integer value from a sequence of characters.
window.alert(" ");
It extracts the first integer value from a sequence of characters.
element .outerHTML
It extracts the first integer value from a sequence of characters.
collection[idref]
It extracts the first integer value from a sequence of characters.
element .textContent
It extracts the first integer value from a sequence of characters.
value .toFixed(n)
It extracts the first integer value from a sequence of characters.
Run-time error
It extracts the first integer value from a sequence of characters.
parseInt(string)
It is a command to create a dialog box containing a message.
Decrement operator
It is a command to create a dialog box containing a message.
value.toPrecision(n)
It is a command to create a dialog box containing a message.
document.anchors
It is a command to create a dialog box containing a message.
window.alert(" ");
It is a command to create a dialog box containing a message.
element .outerHTML
It is a command to create a dialog box containing a message.
collection[idref]
It is a command to create a dialog box containing a message.
element .textContent
It is a command to create a dialog box containing a message.
value .toFixed(n)
It is a command to create a dialog box containing a message.
Run-time error
It is a command to create a dialog box containing a message.
parseInt(string)
It returns the HTML code within element as well as the HTML code of element itself.
Decrement operator
It returns the HTML code within element as well as the HTML code of element itself.
value.toPrecision(n)
It returns the HTML code within element as well as the HTML code of element itself.
document.anchors
It returns the HTML code within element as well as the HTML code of element itself.
window.alert(" ");
It returns the HTML code within element as well as the HTML code of element itself.
element .outerHTML
It returns the HTML code within element as well as the HTML code of element itself.
collection[idref]
It returns the HTML code within element as well as the HTML code of element itself.
element .textContent
It returns the HTML code within element as well as the HTML code of element itself.
value .toFixed(n)
It returns the HTML code within element as well as the HTML code of element itself.
Run-time error
It returns the HTML code within element as well as the HTML code of element itself.
parseInt(string)
It returns a text string displaying value to n decimal places.
Decrement operator
It returns a text string displaying value to n decimal places.
value.toPrecision(n)
It returns a text string displaying value to n decimal places.
document.anchors
It returns a text string displaying value to n decimal places.
window.alert(" ");
It returns a text string displaying value to n decimal places.
element .outerHTML
It returns a text string displaying value to n decimal places.
collection[idref]
It returns a text string displaying value to n decimal places.
element .textContent
It returns a text string displaying value to n decimal places.
value .toFixed(n)
It returns a text string displaying value to n decimal places.
Run-time error
It returns a text string displaying value to n decimal places.
parseInt(string)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
62
Match between columns
It returns the text within element disregarding any HTML tags.
Decrement operator
It returns the text within element disregarding any HTML tags.
value.toPrecision(n)
It returns the text within element disregarding any HTML tags.
document.anchors
It returns the text within element disregarding any HTML tags.
window.alert(" ");
It returns the text within element disregarding any HTML tags.
element .outerHTML
It returns the text within element disregarding any HTML tags.
collection[idref]
It returns the text within element disregarding any HTML tags.
element .textContent
It returns the text within element disregarding any HTML tags.
value .toFixed(n)
It returns the text within element disregarding any HTML tags.
Run-time error
It returns the text within element disregarding any HTML tags.
parseInt(string)
It returns the HTML code within element as well as the HTML code of element itself.
Decrement operator
It returns the HTML code within element as well as the HTML code of element itself.
value.toPrecision(n)
It returns the HTML code within element as well as the HTML code of element itself.
document.anchors
It returns the HTML code within element as well as the HTML code of element itself.
window.alert(" ");
It returns the HTML code within element as well as the HTML code of element itself.
element .outerHTML
It returns the HTML code within element as well as the HTML code of element itself.
collection[idref]
It returns the HTML code within element as well as the HTML code of element itself.
element .textContent
It returns the HTML code within element as well as the HTML code of element itself.
value .toFixed(n)
It returns the HTML code within element as well as the HTML code of element itself.
Run-time error
It returns the HTML code within element as well as the HTML code of element itself.
parseInt(string)
It is used to reference an object as part of a collection in a document.
Decrement operator
It is used to reference an object as part of a collection in a document.
value.toPrecision(n)
It is used to reference an object as part of a collection in a document.
document.anchors
It is used to reference an object as part of a collection in a document.
window.alert(" ");
It is used to reference an object as part of a collection in a document.
element .outerHTML
It is used to reference an object as part of a collection in a document.
collection[idref]
It is used to reference an object as part of a collection in a document.
element .textContent
It is used to reference an object as part of a collection in a document.
value .toFixed(n)
It is used to reference an object as part of a collection in a document.
Run-time error
It is used to reference an object as part of a collection in a document.
parseInt(string)
It appears when a fault happens when a browser is unable to complete a line of code.
Decrement operator
It appears when a fault happens when a browser is unable to complete a line of code.
value.toPrecision(n)
It appears when a fault happens when a browser is unable to complete a line of code.
document.anchors
It appears when a fault happens when a browser is unable to complete a line of code.
window.alert(" ");
It appears when a fault happens when a browser is unable to complete a line of code.
element .outerHTML
It appears when a fault happens when a browser is unable to complete a line of code.
collection[idref]
It appears when a fault happens when a browser is unable to complete a line of code.
element .textContent
It appears when a fault happens when a browser is unable to complete a line of code.
value .toFixed(n)
It appears when a fault happens when a browser is unable to complete a line of code.
Run-time error
It appears when a fault happens when a browser is unable to complete a line of code.
parseInt(string)
It extracts the first integer value from a sequence of characters.
Decrement operator
It extracts the first integer value from a sequence of characters.
value.toPrecision(n)
It extracts the first integer value from a sequence of characters.
document.anchors
It extracts the first integer value from a sequence of characters.
window.alert(" ");
It extracts the first integer value from a sequence of characters.
element .outerHTML
It extracts the first integer value from a sequence of characters.
collection[idref]
It extracts the first integer value from a sequence of characters.
element .textContent
It extracts the first integer value from a sequence of characters.
value .toFixed(n)
It extracts the first integer value from a sequence of characters.
Run-time error
It extracts the first integer value from a sequence of characters.
parseInt(string)
It is an object collection in which all the elements are marked with the tag.
Decrement operator
It is an object collection in which all the elements are marked with the tag.
value.toPrecision(n)
It is an object collection in which all the elements are marked with the tag.
document.anchors
It is an object collection in which all the elements are marked with the tag.
window.alert(" ");
It is an object collection in which all the elements are marked with the tag.
element .outerHTML
It is an object collection in which all the elements are marked with the tag.
collection[idref]
It is an object collection in which all the elements are marked with the tag.
element .textContent
It is an object collection in which all the elements are marked with the tag.
value .toFixed(n)
It is an object collection in which all the elements are marked with the tag.
Run-time error
It is an object collection in which all the elements are marked with the tag.
parseInt(string)
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
Decrement operator
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
value.toPrecision(n)
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
document.anchors
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
window.alert(" ");
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
element .outerHTML
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
collection[idref]
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
element .textContent
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
value .toFixed(n)
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
Run-time error
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
parseInt(string)
It returns a text string displaying value to n decimal places.
Decrement operator
It returns a text string displaying value to n decimal places.
value.toPrecision(n)
It returns a text string displaying value to n decimal places.
document.anchors
It returns a text string displaying value to n decimal places.
window.alert(" ");
It returns a text string displaying value to n decimal places.
element .outerHTML
It returns a text string displaying value to n decimal places.
collection[idref]
It returns a text string displaying value to n decimal places.
element .textContent
It returns a text string displaying value to n decimal places.
value .toFixed(n)
It returns a text string displaying value to n decimal places.
Run-time error
It returns a text string displaying value to n decimal places.
parseInt(string)
It is a command to create a dialog box containing a message.
Decrement operator
It is a command to create a dialog box containing a message.
value.toPrecision(n)
It is a command to create a dialog box containing a message.
document.anchors
It is a command to create a dialog box containing a message.
window.alert(" ");
It is a command to create a dialog box containing a message.
element .outerHTML
It is a command to create a dialog box containing a message.
collection[idref]
It is a command to create a dialog box containing a message.
element .textContent
It is a command to create a dialog box containing a message.
value .toFixed(n)
It is a command to create a dialog box containing a message.
Run-time error
It is a command to create a dialog box containing a message.
parseInt(string)
It is indicated by the - - symbol, which reduces the operand's value by 1.
Decrement operator
It is indicated by the - - symbol, which reduces the operand's value by 1.
value.toPrecision(n)
It is indicated by the - - symbol, which reduces the operand's value by 1.
document.anchors
It is indicated by the - - symbol, which reduces the operand's value by 1.
window.alert(" ");
It is indicated by the - - symbol, which reduces the operand's value by 1.
element .outerHTML
It is indicated by the - - symbol, which reduces the operand's value by 1.
collection[idref]
It is indicated by the - - symbol, which reduces the operand's value by 1.
element .textContent
It is indicated by the - - symbol, which reduces the operand's value by 1.
value .toFixed(n)
It is indicated by the - - symbol, which reduces the operand's value by 1.
Run-time error
It is indicated by the - - symbol, which reduces the operand's value by 1.
parseInt(string)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
63
Case-Based Critical Thinking Questions Case 9-2 Robin maintains a web page for updating the metro timings in the city. He would like the website to display the present day's schedule. To do this, Robin writes a code that includes an object to retrieve the day of the week and then loads the appropriate data into the page. Robin includes an expression to the code, var thisDay = new Date("May 23, 2018 14:35:05"); Identify the value for the month that will be displayed on the web page by using thisDay.getMonth() method.

A) 35
B) 4
C) 14
D) 3
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
64
Identify a function that extracts the first numeric value from the text string .

A) parseInt(string)
B) parseFloat(string)
C) isFinite(value)
D) isNaN(value)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
65
Case-Based Critical Thinking Questions Case 9-1 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. Identify an object created by Terin that will contain information about the current URL.

A) history object
B) screen object
C) location object
D) navigator object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
66
Case-Based Critical Thinking Questions Case 9-2 Robin maintains a web page for updating the metro timings in the city. He would like the website to display the present day's schedule. To do this, Robin writes a code that includes an object to retrieve the day of the week and then loads the appropriate data into the page. Identify an expression that Robin must use to define the current date on the web page.

A) new Date(year, month, day, hrs, mins, secs);
B) new date("hrs", "mins", "secs", "day", "month", "year");
C) this.day( hrs, mins, secs, year, month, day ),
D) this Day("day", "month", "hrs", "mins", "secs", "year"),
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
67
Match between columns
الفرضيات:
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It is an object collection in which all the elements are marked with the tag.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns the HTML code within element as well as the HTML code of element itself.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It returns a text string displaying value to n decimal places.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It is used to reference an object as part of a collection in a document.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It appears when a fault happens when a browser is unable to complete a line of code.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It is a command to create a dialog box containing a message.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It extracts the first integer value from a sequence of characters.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It is indicated by the - - symbol, which reduces the operand's value by 1.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns a text string displaying value to n significant digits either to the left or to the right of the decimal point.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
It returns the text within element disregarding any HTML tags.
الردود:
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
Decrement operator
value.toPrecision(n)
document.anchors
window.alert(" ");
element .outerHTML
collection[idref]
element .textContent
value .toFixed(n)
Run-time error
parseInt(string)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
68
Explain briefly about converting between numbers and text.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
69
Case-Based Critical Thinking Questions Case 9-2 Robin maintains a web page for updating the metro timings in the city. He would like the website to display the present day's schedule. To do this, Robin writes a code that includes an object to retrieve the day of the week and then loads the appropriate data into the page. Robin includes an expression to the code, var thisDay = new Date("May 23, 2018 14:35:05"); He also includes the method thisDay.getDay() in the code. What is the result for the given method?

A) 1
B) 3
C) 4
D) 5
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
70
Explain the syntax rules that must be maintained when writing JavaScript commands.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
71
Explain the syntax to reference objects in JavaScript.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
72
Case-Based Critical Thinking Questions Case 9-1 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?

A) navigator object
B) location object
C) history object
D) document object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 72 في هذه المجموعة.