Javascript Quiz Questions and Answers Pdf - 1

Question: 1

Which is the conditional operator?

(A) ?:

(B) ! :

(C) :

(D) d

Ans: A

?:

Question: 2

Which is an assignment operator?

(A) =

(B) –

(C) /

(D) *

Ans: A

=

Question: 3

______ is a list of characters, and a string literal by enclosing single or double quotes?

(A) String

(B) Numbers

(C) Boolean

(D) Constant

Ans: A

String

Question: 4

Which is used to separate the statements in JavaScript?

(A) (;) semicolon

(B) (:) colon

(C) (,) comma

(D) (.) full stop

Ans: A

(;) semicolon

Question: 5

JavaScript is a

(A) Assembly language

(B) Machine language

(C) Case-sensitive language

(D) Low level language

Ans: C

Case-sensitive language

Question: 6

Variable name is also known as

(A) Identifier

(B) Float

(C) String

(D) Constant

Ans: A

Identifier