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