O Level Exam
Menu mobile
Home
MCQ Topic Wise
INFORMATION TECHNOLOGY TOOLS AND NETWORK BASIS
New
WEB DESIGNING AND PUBLISHING
New
PROGRAMMING AND PROBLEM SOLVING THROUGH PYTHON
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Online Mock Test
INFORMATION TECHNOLOGY TOOLS AND NETWORK BASIS
New
WEB DESIGNING AND PUBLISHING
New
PROGRAMMING AND PROBLEM SOLVING THROUGH PYTHON
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Old Papers
Practical Questions
MCQ Set 1 O Level - Web Designing and Publishing - JAVSCRIPT AND ANGULAR JS
MCQ Set 1 O Level - Web Designing and Publishing - JAVSCRIPT AND ANGULAR JS
English
Hindi
Question No. -
01
Report Bug
JavaScript Code can be called by using
A.
RMI
RMI
B.
Triggering Event
Triggering Event
C.
Preprocessor
Preprocessor
D.
Function/Method
Function/Method
Explanation
JavaScript code is as easy to be implemented and run. It can be called by using a function or a method)
Question No. -
02
Report Bug
The type of a variable that is volatile is
A.
Volatile variable
Volatile variable
B.
Mutable variable
Mutable variable
C.
Immutable variable
Immutable variable
D.
Dynamic variable
Dynamic variable
Explanation
The variables whose values can be changed are called mutable variable types.
Question No. -
03
Report Bug
A hexadecimal literal begins with
A.
00
00
B.
0x
0x
C.
0X
0X
D.
Both 0x and 0X
Both 0x and 0X
Explanation
Generally, X or x denotes hexadecimal values. So, any integer literal that begins with 0X or 0x denotes a hexadecimal number.
Question No. -
04
Report Bug
When there is an indefinite or an infinity value during an arithmetic value computation, javascript
A.
Prints an exception error
Prints an exception error
B.
Prints an overflow error
Prints an overflow error
C.
Displays “Infinity”
Displays “Infinity”
D.
Prints the value as such
Prints the value as such
Explanation
When the result of a numeric operation is larger than the largest representable number (overflow), the result is a special infinity value, which JavaScript prints as Infinity. Similarly, when a negative value becomes larger than the largest representable negative number, the result is negative infinity, printed as -Infinity. The infinite values behave as you would expect: adding, subtracting, multiplying, or dividing them by anything results in an infinite value (possibly with the sign reversed.
Question No. -
05
Report Bug
Which of the following is not considered as an error in JavaScript?
A.
Syntax error
Syntax error
B.
Missing of semicolons
Missing of semicolons
C.
Division by zero
Division by zero
D.
None of these
None of these
Explanation
Division by zero is not an error in JavaScript: it simply returns infinity or negative infinity. There is one exception, however: zero divided by zero does not have a welldefined value, and the result of this operation is the special not-a-number value, printed as NaN.
Question No. -
06
Report Bug
The snippet that has to be used to check if “a” is not equal to “null” is
A.
if(a!=null)
if(a!=null)
B.
if (!a)
if (!a)
C.
if(a!null)
if(a!null)
D.
if(a!==null)
if(a!==null)
Explanation
The not-equal operator !== compares o to null and evaluates to either true or false.
Question No. -
07
Report Bug
The statement a===b refers to
कथन a===b संदर्भित करता है
A.
Both a and b are equal in value, type and reference address
ए और बी दोनों मूल्य, प्रकार और
संदर्भ पते के बराबर हैं
B.
Both a and b are equal in value
a और b दोनों का मान बराबर है
C.
Both a and b are equal in value and type
ए और बी दोनों मूल्य और प्रकार
में बराबर हैं
D.
None of these
इनमें से कोई नहीं
Explanation
a==b returns a true if a and b refer to the same object ,so they are equal, else it returns a false.
Question No. -
08
Report Bug
The function definitions in JavaScript begins with
A.
Identifier and Parantheses
Identifier and Parantheses
B.
Return type and Identifier
Return type and Identifier
C.
Return type, Function keyword, Identifier and Parantheses
Return type, Function keyword, Identifier and Parantheses
D.
Identifier and Return type
Identifier and Return type
Explanation
The function definitions begin with the keyword function followed by an identifier that names the function and a pair of parantheses around a comma-separated list of zero or more identifiers.
Question No. -
09
Report Bug
When does the function name become optional in JavaScript?
A.
When the function is defined as a looping statement
When the function is defined as a looping statement
B.
When the function is defined as expressions
When the function is defined as expressions
C.
When the function is predefined
When the function is predefined
D.
All of the above
All of the above
Explanation
The function name is optional for functions defined as expressions. A function declaration statement actually declares a variable and assigns a function object to it.
Question No. -
10
Report Bug
Which of the following javascript functions are used to convert nonnumeric values into numbers?
निम्नलिखित में से कौन सा जावास्क्रिप्ट फ़ंक्शन गैर-संख्यात्मक मानों को संख्याओं में परिवर्तित करने के लिए उपयोग किया जाता है?
A.
Number()
Number()
B.
parseFloat()
parseFloat()
C.
parseInt()
parseInt()
D.
All of the above
All of the above
Question No. -
11
Report Bug
What is the correct JavaScript syntax to write "Hello World"?
A.
System.out.println("Hello World")
System.out.println("Hello World")
B.
println ("Hello World")
println ("Hello World")
C.
document.write("Hello World")
document.write("Hello World")
D.
response.write("Hello World")
response.write("Hello World")
Question No. -
12
Report Bug
Javascript is _____ language
जावास्क्रिप्ट _____ भाषा है
A.
Client Side
Client Side
B.
Server Side
Server Side
C.
Both A and B
Both A and B
D.
None of These
None of These
Question No. -
13
Report Bug
How to find out the index of a particular character on a string
A.
position()
position()
B.
index()
index()
C.
indexOf()
indexOf()
D.
None of These
None of These
Question No. -
14
Report Bug
JavaScript is designed for following purpose
A.
To Perform Server Side Scripting Opertion
To Perform Server Side Scripting Opertion
B.
To Execute Query Related to DB on Server
To Execute Query Related to DB on Server
C.
To add interactivity to HTML Pages
To add interactivity to HTML Pages
D.
To Style HTML Pages
To Style HTML Pages
Question No. -
15
Report Bug
Which of the following is not a JavaScript datatype?
A.
Boolean
Boolean
B.
String
String
C.
Number
Number
D.
Function
Function
Question No. -
16
Report Bug
What is the output of this expression? x = 2 + "2"; document.write(x);
A.
22
22
B.
4
4
C.
2
2
D.
syntax error
syntax error
Question No. -
17
Report Bug
Which of the following is not a valid JavaScript variable name?
A.
5myvalue
5myvalue
B.
myvalue5
myvalue5
C.
Myvalue
Myvalue
D.
None of These
None of These
Question No. -
18
Report Bug
What is the alternate name for Java script?
A.
LimeScript
LimeScript
B.
ECMScript
ECMScript
C.
Coffee Script
Coffee Script
D.
ECMAScript
ECMAScript
Question No. -
19
Report Bug
Inside which HTML element do we put the JavaScript?
A.
<javascript>
<javascript>
B.
<script>
<script>
C.
<scripting>
<scripting>
D.
<link>
<link>
Question No. -
20
Report Bug
What is the correct syntax for referring to an external script called "data.js"?
A.
<script name="data.js">
<script name="data.js">
B.
<script href="data.js">
<script href="data.js">
C.
<script src="data.js">
<script src="data.js">
D.
<link href="data.js">
<link href="data.js">
Previous
1
2
3
4
5
6
7
Next
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Website development Company in Allahabad
Sarkari Exam Quiz