Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » JavaScript Objective Questions

JavaScript Objective Questions - 48

Showing 1 - 20 of 48


Question: 1

(A) window.alert("cppbuzz");
(B) alert("cppbuzz");
(C) window("cppbuzz");
(D) alert("cppbuzz")

Level: Beginner Category: methods
[Posted by: Admin | Chicago, USA]


Question: 2

(A) True
(B) False

Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 3

(A) cppbuzz
(B) cpp/buzz
(C) NaN
(D) None of the above

Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 4

(A) Error in Script
(B) '10'20
(C) 1020
(D) 40

Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 5

(A) Nothing is printed
(B) 0 is printed
(C) Infinity is printed
(D) Some Garbage Value

Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 6

(A) 0
(B) undefined
(C) error
(D) NaN

Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 7

(A) 1111
(B) 1110
(C) 1010
(D) 1011

Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 8

(A) Error
(B) Nothing is printed
(C) 10
(D) 20

Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 9

(A) 4
(B) 2 plus 2 is 4
(C) 2 plus 2 is 22
(D) 2 plus 2 is 2 + 2

Level: Beginner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 10

(A) 2+2+ = 2 plus 2
(B) 4 + = 2 plus 2
(C) 4 = 2 plus 2
(D) Syntax Error

Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 11

(A) True
(B) False

Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]


Question: 12

(A) Nothing is printed
(B) human
(C) Error
(D) NaN

Level: Expert Category: other
[Posted by: Admin | Chicago, USA]


Question: 13

(A) Yes
(B) No

Level: Practitioner Category: operators
[Posted by: Admin | Chicago, USA]


Question: 14

(A) Error
(B) Nothing is printed
(C) 20
(D) 10

Level: Beginner Category: conditional
[Posted by: Admin | Chicago, USA]


Question: 15

(A) Error
(B) Nothing is printed
(C) 10
(D) 11

Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]


Question: 16

(A) 10
(B) 11
(C) Nothing is printed
(D) Error

Level: Practitioner Category: conditional
[Posted by: Admin | Chicago, USA]


Question: 17

(A) 01234
(B) 012345
(C) 135
(D) 024

Level: Beginner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 18

(A) 024
(B) 135
(C) Compilation Error
(D) 5

Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 19

(A) 01234
(B) 12345
(C) 1234
(D) Compilation Error

Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 20

(A) 01234
(B) 12345
(C) 1234
(D) Compilation Error

Level: Practitioner Category: loops
[Posted by: Admin | Chicago, USA]


Question: 21

(A) 012345
(B) 01234
(C) 135
(D) 13

Level: Practitioner Category: arrays
[Posted by: Admin | Chicago, USA]


Question: 22

(A) Error
(B) Nothing is printed
(C) Javascript
(D) JavascriptJavascript

Level: Practitioner Category: arrays
[Posted by: Admin | Chicago, USA]


Question: 23

(A) It is Error
(B) Nothing is printed
(C) 0 is the output
(D) NaN is the output

Level: Expert Category: methods
[Posted by: Admin | Chicago, USA]


Question: 24

(A) 1
(B) 0
(C) NaN
(D) None of the above

Level: Expert Category: methods
[Posted by: Admin | Chicago, USA]


Question: 25

(A) <h1>Javascript Questions</h1>
(B) Javascript Questions
(C) Error
(D) "<h1>Javascript Questions</h1>"

Level: Practitioner Category: methods
[Posted by: Admin | Chicago, USA]