JavaScript MCQ : JS Operators (Multiple Choice Questions)


Question 1
JavaScript contains a _________________ that assigns a value to a variable based on some condition.
A
Conditional operator
B
Bitwise Operator
C
Assignment operator
D
Logical Operator
Question 2
Guess the ternary operator used in the following example !!!
marks = (mark<35)?"Fail":"Pass";
A
Logical Operator
B
Bitwise Operator
C
Colon Operator
D
Conditional Operator
Question 3
Conditional Operator shown in the following example is _____________.
marks = (mark<35)?"Fail":"Pass";
A
none of these
B
Ternary Operator
C
Unary Operator
D
Binary Operator
There are 3 questions to complete.