A Learning Portal from Recruitment India
JavaScript is ideal to
make computations in HTML simpler
minimize storage requirements on the web server
increase the download time for the client
none of the mentioned
Answer with explanation
Answer: Option BExplanation
To minimize storage requirements, JavaScript is always a better say.
Workspace
JavaScript is designed for following purpose
To Style HTML Pages
To add interactivity to HTML Pages.
To Perform Server Side Scripting Opertion
To Execute Query Related to DB on Server
Answer with explanation
Answer: Option BExplanation
To add interactivity to HTML Pages
Workspace
Which are usually variables that are used internally in object methods and also are globally visible variables?
Internal properties
Method properties
Variable properties
Object properties
Answer with explanation
Answer: Option CExplanation
The variable properties are usually variables that are used internally in the objects methods, but can also be globally visible variables that are used through the page.
Workspace
What is the alternative command used in Node for load()?
store()
module()
log()
require()
Answer with explanation
Answer: Option DExplanation
Use require() instead of load(). It loads and executes (only once) the named module, returning an object that contains its exported symbols.
Workspace
_____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation.
Native
Local
Server-side
Client-side
Answer with explanation
Answer: Option DExplanation
Client-side javascript statements embedded in an HTML page can respond to user events such as mouse clicks, form input, and page navigation.
Workspace
will be displayed as a JavaScript text on the browser
will work perfectly well on a Windows Machine
will throw errors and exceptions
Answer with explanation
Answer: Option CExplanation
will work perfectly well on a Windows Machine
Workspace
What will happen if a return statement does not have an associated expression?
It returns the value 0
It returns the undefined value
It will throw an exception
None of the mentioned
Answer with explanation
Answer: Option BExplanation
If the return statement does not have an associated expression, it returns the undefined value.
Workspace
head
head and body
title and head
all of the mentioned
Answer with explanation
Answer: Option BExplanation
If the script tag is placed after the body tag, then, it will not be evaluated at all. Also, it is always recommended and effective to use the script snippet in the <head> tag.
Workspace
What is the fundamental rule of lexical scoping?
Functions are declared in the scope
Functions are executed using scope chain
Both a and b
None of the mentioned
Answer with explanation
Answer: Option BExplanation
The fundamental rule of lexical scoping is that the JavaScript functions are executed using the scope chain that was in effect when they were defined.
Workspace
Super controlled loop constructs
Validation constructs
Case sensitivity check
All of the mentioned
Answer with explanation
Answer: Option DExplanation
All these facilities are available in JavaScript. Additionally, all development environments provide syntax to create and use memory variables, constants, and functions.
Workspace
Why so JavaScript and Java have similar name?
JavaScript’s syntax is loosely based on Java’s
JavaScript is a stripped-down version of Java
They both originated on the island of Java
None of the above
Answer with explanation
Answer: Option AExplanation
JavaScript’s syntax is loosely based on Java’s
Workspace