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
Assignment operator
C
Bitwise Operator
D
Logical Operator
Question 2
Guess the ternary operator used in the following example !!!
marks = (mark<35)?"Fail":"Pass";
A
Logical Operator
B
Conditional Operator
C
Colon Operator
D
Bitwise Operator
Question 3
Conditional Operator shown in the following example is _____________.
marks = (mark<35)?"Fail":"Pass";
A
Unary Operator
B
Binary Operator
C
Ternary Operator
D
none of these
There are 3 questions to complete.