+91 9760004085
|
brilliantmakers@rediffmail.com
|
Geeta Nagar, Rishikesh
About
About Us
F.A.Q
Courses
Upload Resume
Activities
Events
Notice
Student Zone
Testimonals
Download App
Question Bank
Contact Us
Admission open for all Courses ::: Notes of WORD, EXCEL is available for degree college students,
Important Java Script MCQ
Q.-1: Java Script is
A)
client site and server site
B)
only client site
C)
only server site
D)
None of the above
Answer:-
only client site
Q.-2: What is work of documentwrite ?
A)
to alert a message
B)
to show the HTML tag
C)
to print the variable value
D)
All of the above
Answer:-
to print the variable value
Q.-3: How to declare variable in java script ?
A)
use this keyword
B)
use static keyword
C)
use extern variable
D)
use var keyword
Answer:-
use var keyword
Q.-4: When we use documentgetElementById ?
A)
when we use any variable value
B)
when we work with HTML tag
C)
when we work with script tag
D)
all of the above
Answer:-
when we work with HTML tag
Q.-5: Which is the proper event handling function?
A)
OnClick
B)
OnClk
C)
Click
D)
All Above
Answer:-
OnClick
Q.-6: How to identify a HTML tag in java script?
A)
by a tag name
B)
by their id
C)
by their function
D)
All of the above
Answer:-
by their id
Q.-7: What is the method to generate a pop up message ?
A)
use documentwrite and function
B)
use only alert
C)
use function and documentwrite
D)
use to InnerHTML
Answer:-
use only alert
Q.-8: JavaScript is designed for following purpose
A)
To Perform Server Side Scripting Opertion
B)
To Style HTML Pages
C)
To Execute Query Related to DB on Server
D)
To add interactivity to HTML Pages
Answer:-
To add interactivity to HTML Pages
Q.-9: JavaScript is an ________ language
A)
compiled
B)
interpreted
C)
D)
Answer:-
interpreted
Q.-10: ______ tag is an extension to HTML that can enclose any number of JavaScript statements
A)
Microsoft
B)
Navigator
C)
Live Script
D)
Native
Answer:-
Native
Q.-11: ______ JavaScript is also called
A)
Live Script
B)
Java
C)
Script
D)
All Above
Answer:-
Live Script
Q.-12: What is the correct JavaScript syntax to write "Hello World"?
A)
Systemoutprintln("Hello World"),
B)
println ("Hello World"),
C)
documentwrite("Hello World"),
D)
responsewrite("Hello World"),
Answer:-
documentwrite("Hello World"),
Q.-13: Using _______ statement is how you test for a specific condition
A)
Select
B)
If
C)
For
D)
While
Answer:-
If
Q.-14: Javascript is a _________________computer programming language
A)
Static
B)
Dynamic
C)
D)
Answer:-
Dynamic
Q.-15: JavaScript was first known as LiveScript, but _______________changed its name to JavaScript
A)
Microsoft
B)
Netscape
C)
Sun Java
D)
Apache
Answer:-
Netscape
Q.-16: Why so JavaScript and Java have similar name?
A)
JavaScript is a stripped-down version of Java
B)
JavaScript syntax is loosely based on Java
C)
They both originated on the island of Java
D)
None of the above
Answer:-
JavaScript syntax is loosely based on Java
Q.-17: Inside which HTML element do we put the JavaScript?
A)
js
B)
scripting
C)
script
D)
javascript
Answer:-
script
Q.-18: ______method evaluates a string of JavaScript code in the context of the specified object
A)
Eval
B)
ParseFloat
C)
ParseInt
D)
Efloat
Answer:-
Eval
Q.-19: Is it possible to nest functions in JavaScript?
A)
TRUE
B)
FALSE
C)
D)
Answer:-
TRUE
Q.-20: Which of the following function of String object returns the Decimal value ?
A)
ParseInt()
B)
toString()
C)
ParseFloat()
D)
All above These
Answer:-
ParseFloat()
Q.-21: What are variables used for in JavaScript Programs?
A)
Storing numbers, dates, or other values
B)
Varying randomly
C)
Causing high-school algebra flashbacks
D)
None of the above
Answer:-
Storing numbers, dates, or other values
Q.-22: Which of the following best describes JavaScript?
A)
a low-level programming language
B)
a scripting language precompiled in the browser
C)
a compiled scripting language
D)
an object-oriented scripting language
Answer:-
an object-oriented scripting language
Q.-23: Choose the client-side JavaScript object?
A)
Database
B)
Cursor
C)
Client
D)
FileUpLoad
Answer:-
FileUpLoad
Q.-24: The syntax of a blur method in a button object is ______________
A)
Blur()
B)
Blur(contrast)
C)
Blur(value)
D)
Blur(depth)
Answer:-
Blur()
Q.-25: Scripting language are
A)
High Level Programming language
B)
Assembly Level programming language
C)
Machine level programming language
D)
All
Answer:-
High Level Programming language
Q.-26: In JavaScript, Window.confirm() method return true or false value ?
A)
FALSE
B)
TRUE
C)
D)
Answer:-
TRUE
Q.-27: There are three types of loops in javascript.
A)
Yes
B)
No
C)
D)
Answer:-
Yes
Q.-28: Looping refers to perform a set of operations repeatedly
A)
TRUE
B)
FALSE
C)
D)
Answer:-
TRUE
Q.-29: The .......... object is a pre defined javascript object
A)
Function
B)
Switch
C)
Case
D)
Loop
Answer:-
Function
Q.-30: .............. are those which can be accessed from any part of the program
A)
Constant
B)
Local
C)
Global
D)
Native
Answer:-
Global