JavaScript MCQ : JS Operators (Multiple Choice Questions)


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