JavaScript MCQ : JS Operators (Multiple Choice Questions)


Question 1
JavaScript contains a _________________ that assigns a value to a variable based on some condition.
A
Logical Operator
B
Conditional operator
C
Bitwise Operator
D
Assignment 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
Ternary Operator
B
Unary Operator
C
none of these
D
Binary Operator
There are 3 questions to complete.