Which of the following function of Array object applies a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value?
pop()
push()
reduce()
reduceRight()
JSON strings have to be in
single quote
double quote
single quote or double quote
Which of the following navigator object properties is the same in both Netscape and IE?
navigator.appCodeName
navigator.appName
navigator.appVersion
None of the above
JavaScript was invented at _______ Lab .
Netscape
Google Lab
AT&T Bell LAb
Sun Microsystem
One of the special features of an interpreter in reference with the for loop is that ___________
Before each iteration, the interpreter evaluates the variable expression and assigns the name of the property
The iterations can be infinite when an interpreter is used
The body of the loop is executed only once
the iteration is finite when an interpreter is used
_____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation.
Client-side
Server-side
Local
Native
Which of the following function of String object causes a string to be italic, as if it were in an tag?
fixed()
fontcolor()
fontsize()
italics()
JSON name/value pair is written as
name’ : ‘value’
name = ‘value’
name = “value”
“name” : “value”
Is this placement of JS code inside HTML Element is Error Free ?
<html><head><title>My Page</title> </head> <body> <a href="javascript:myFunction();">Click here</a> <script language="javascript" type="text/javascript"> function myFunction() { alert('Hello world'); } </script> </body> </html>
No
Yes
Which of the following is the correct syntax to display “Welcome” in an alert box using JavaScript?
alert-box(“Welcome”);
confirm("Welcome");
msgbox(“Welcome”);
alert(“Welcome”);
When a user views a page containing a JavaScript program, which machine actually executes the script?
The User's machine running a Web browser
The Web server
A central machine deep within Netscape's corporate offices
The development environment offers which standard construct for data validation
Super controlled loop constructs
Case sensitivity check
Validation constructs
All of the mentioned
In JavaScript, Window.prompt() method return true or false value ?
False
True
State the correct place of JS Code inside HTML -
Inside Body
Inside Head
Inside Single JavaScript File
All of these
JavaScript Code is written inside file having extension __________.
.jvs
.javascript
.js
.jsc
What does the tag do?
Enclose text to be displayed by non-JavaScript browsers.
Prevents scripts on the page from executing.
Describes certain low-budget movies.
Which was the first browser to support JavaScript ?
Mozilla Firefox
Google Chrome
IE
Which of the following is not considered as an error in JavaScript?
Syntax error
Missing of semicolons
Division by zero
JavaScript is ______ Side Scripting Language.
Server
ISP
Browser
None of These
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
All modern browsers supports JS.
______ attribute is used to specify the character encoding used in an external script file.
type
charset
character
Choose the server-side JavaScript object?
FileUpLoad
Function
File
Date
JavaScript Code can be called by using _________.
Function / Method
RMI
Preprocessor
None Of thease
What is mean by "this" keyword in javascript?
It refers current object
It referes previous object
It is variable which contains value
What is the correct JavaScript syntax to write "Hello World"?
System.out.println("Hello World")
println ("Hello World")
document.write("Hello World")
response.write("Hello World")
When a JavaScript object is sent to Java, the runtime engine creates a Java wrapper of type ___________
ScriptObject
JSObject
JavaObject
Jobject
Which of the following is not JavaScript Data Types?
Undefined
Number
Boolean
Float
In March 1996, _______________ was released, featuring support for JavaScript.
Netscape Navigator 1.0
Internet Explorer 2.0
Netscape Navigator 2.0
Internet Explorer 1.0
To open a dialog box each time an error occurs, which of the following is added to prefs.js?
user_pref("javascript.classic.error_alerts", true);
user_pref("javascript.classic.error_alerts ", false);
user_pref("javascript.console.open_on_error ", true);
user_pref("javascript.console.open_on_error ", false);