Get the FREE certificate on C, C++, Java, Python, Perl, PHP, SQL, Linux & Javascript!  

CppBuzz.com
  
Home C C++ Java Python Perl PHP Spring SQL Javascript Linux Forum

You are here : Home » Javascript Objective Questions

Javascript Objective Questions - 48 Questions


Question: 1

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

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



Question: 2

(A) True
(B) False

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



Question: 3

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

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



Question: 4

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

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

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



Question: 6

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

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



Question: 7

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

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



Question: 8

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

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

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

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



Question: 11

(A) True
(B) False

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



Question: 12

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

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



Question: 13

(A) Yes
(B) No

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



Question: 14

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

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



Question: 15

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

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



Question: 16

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

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



Question: 17

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

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



Question: 18

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

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



Question: 19

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

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



Question: 20

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

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



Question: 21

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

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



Question: 22

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

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

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



Question: 24

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

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



Question: 25

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

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#

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



Question: 27

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

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



Question: 28

(A) True
(B) False

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



Question: 29

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

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



Question: 30

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

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



Question: 31

(A) True
(B) False

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



Question: 32

(A) True
(B) False

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

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



Question: 34

(A) True
(B) False

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



Question: 35

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

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



Question: 36

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

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



Question: 37

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

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



Question: 38

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

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



Question: 39

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

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



Question: 40

(A) True
(B) False

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



Question: 41

(A) True
(B) False

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



Question: 42

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

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

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



Question: 44

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

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



Question: 45

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

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



Question: 46

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

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



Question: 47

(A) True
(B) False

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



Question: 48

(A) True
(B) False

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



[Contribute Here]