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

Home » JavaScript Objective Questions

JavaScript Objective Questions - 48


Question: 1

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

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


Question: 2

(A) True
(B) False

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


Question: 3

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

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


Question: 4

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

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


Question: 5

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

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


Question: 6

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

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


Question: 7

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

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


Question: 8

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

Forum
Beginner 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

Forum
Beginner 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

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


Question: 11

(A) True
(B) False

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


Question: 12

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

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


Question: 13

(A) Yes
(B) No

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


Question: 14

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

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


Question: 15

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

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


Question: 16

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

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


Question: 17

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

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


Question: 18

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

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


Question: 19

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

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


Question: 20

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

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


Question: 21

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

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


Question: 22

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

Forum
Practitioner 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

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


Question: 24

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

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


Question: 25

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

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


Question: 26

(A) 77.300000#77#123#2.34#
(B) 77.300000#77#123#2#
(C) 77.300000#77#123#234#
(D) 77.3#77#123#2.34#

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


Question: 27

(A) 350
(B) 25496
(C) 254-96
(D) Error

Forum
Expert regularexpressions[Posted by: Admin | Chicago, USA]


Question: 28

(A) True
(B) False

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


Question: 29

(A) 9 & 12345
(B) 9 & 5
(C) 9 & 15
(D) 5 & 15

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


Question: 30

(A) join()
(B) concat()
(C) connect()
(D) add()

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


Question: 31

(A) True
(B) False

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


Question: 32

(A) True
(B) False

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


Question: 33

(A) Yes, it provides try, catch as well as throw key word for exception handling
(B) Yes, but it provides only try block
(C) Yes, but it provides only Try catch block, but does not allow throw exception
(D) No

Forum
Expert exceptions[Posted by: Admin | Chicago, USA]


Question: 34

(A) True
(B) False

Forum
Expert exceptions[Posted by: Admin | Chicago, USA]


Question: 35

(A) OnMouseKeyDown
(B) OnMouseKeyUp
(C) onMouseout
(D) onMouseover

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


Question: 36

(A) onkeyboardpress
(B) onkeydown
(C) onfocus
(D) onclick

Forum
Practitioner other[Posted by: Admin | Chicago, USA]


Question: 37

(A) clearsetTimeout()
(B) stopTimeout()
(C) clearTimeout()
(D) cancelTimeout()

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


Question: 38

(A) Alert Box
(B) Prompt Box
(C) Confirm Box
(D) Message Box

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


Question: 39

(A) isNaN()
(B) nonNaN()
(C) NaN()
(D) None of the listed option

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


Question: 40

(A) True
(B) False

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


Question: 41

(A) True
(B) False

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


Question: 42

(A) replace()
(B) append()
(C) slice()
(D) search()

Forum
Practitioner variables[Posted by: Admin | Chicago, USA]


Question: 43

(A) Throws Error
(B) It returns the decimal values in string form
(C) If returns only the integer portion of the number
(D) None of the listed option

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


Question: 44

(A) Throws Error
(B) object
(C) Displays Nothing
(D) Current Date

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


Question: 45

(A) onclick
(B) onsubmit
(C) focuschange
(D) onchange

Forum
Practitioner event[Posted by: Admin | Chicago, USA]


Question: 46

(A) Image
(B) Canvas
(C) MoveCursor
(D) Draw

Forum
Practitioner other[Posted by: Admin | Chicago, USA]


Question: 47

(A) True
(B) False

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


Question: 48

(A) True
(B) False

Forum
Beginner other[Posted by: Admin | Chicago, USA]



[Contribute Here]