When you call Screen.pixeldepth what does it return? - Answers Number of bits used to display
one color
Which of the following statements accurately describe the concept of "NaN" in JavaScript? -
Answers It is a property of the global object
NaN is a non-configurable, non-writable property
NaN indicates a failed operation on numbers
Which of the following are true about the JavaScript "Document" Object? - Answers A Document
object represents the HTML document that is displayed in that window
The document contains the contents of the page
Which of the following accurately describes the "mouseout" event in JavaScript? - Answers It
occurs when the mouse pointer is moved out of an element, or out of one of its children
Which of the following statements about JavaScript basics is/are true? - Answers JavaScript is
case-sensitive.
JavaScript is a single-threaded programming language.
What is the purpose of the Browser Object Model (BOM)? - Answers To provide a way for
JavaScript to interact with the web browser
What are different types of Inheritance in JavaScript? - Answers Classical Inheritance
Prototype Inheritance
What does the "Continue" Statement in JavaScript do? - Answers It terminates the execution of
statements while iterating the loop
What is the purpose of the toLocaleString() method in JavaScript? - Answers Returns a string
with the local representation of the date and time
_____ returns the number of options displayed in the selection list. - Answers select.length
What is the definition of a function in JavaScript? - Answers A block of code that performs a
specific task and returns a result
What is the difference between using single quotes and double quotes in JavaScript? - Answers
Single quotes and double quotes can be used interchangeably to define strings in JavaScript
Which of the following statements are true about JavaScript Objects? - Answers To create
object classes, you should apply a function known as an object constructor that defines the
, properties and methods associated with the object type
One object class can include objects defined in other classes
What is the purpose of the return statement in a function? - Answers To specify the value that
should be returned from the function
Which of the following provides the most accurate definition of "Block Scope"? - Answers The
variables can be scoped to the nearest pair of curly braces. Which means they can't be
accessed from outside that pair of curly braces
What are the categories that Non-Primitive datatypes are divided into? - Answers Object Array
What is the primary function of using "console.log()" in JavaScript? - Answers To debug and
troubleshoot the issues
To display information and feedback to the user
Which of the following options can be used to determine the height of the screen in JavaScript?
- Answers screen.height
screen.availHeight
Which of the following best defines "Global Scope" in JavaScript? - Answers A scope that is
available throughout the entire program
Which of the following statements are correct about methods in JavaScript? - Answers Methods
are actions that can be performed on objects
Method is a property containing a function definition
Methods are functions stored as object properties
What is returned by Screen.colordepth when invoked? - Answers number of bits used to display
one color
Which of the following statements is correct about instance properties in JavaScript? - Answers
These properties hold data that are specific to a given object instance
What does the "Break" Statement in JavaScript do? - Answers It allows you to exit the loop
What is the output of the following code?
console.log(typeof true); - Answers boolean
What is the purpose of the createElement method in JavaScript? - Answers To create new
elements in the Document Object Model (DOM)