Javascript Expression And Operator MCQ

This section focuses on the "Javascript Expression And Operator" of the Javascript (JS). These Multiple Choice Questions (mcq) should be practiced to improve the Javascript skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.

1. Which operator is known as the equality operator, which checks whether its two operators are "equal"?

A. =
B. ==
C. ===
D. &&

View Answer


2. Which operator is known as the strict equality operator, which checks whether its two operators are identical or not?

A. =
B. ==
C. ===
D. &&

View Answer


3. Which operator will return false if two value are equal?

A. !
B. !=
C. !==
D. All of the above

View Answer


4. When using comparative operators,if after object to primitive conversion, at least one operand is not a string, both operands are converted to?

A. String
B. Boolean
C. Number
D. Object

View Answer


5. If the operator value is null, then the unary operator returns the typeof …………….

A. undefined
B. object
C. boolean
D. string

View Answer


6. which operator evaluates its operands, then discards the value and returns undefined?

A. In
B. Comparison
C. Eval
D. Void

View Answer


7. If var A={B:3, C:5}, how to use the delete operator to delete one of the properties of an object.

A. delete
B. delete A
C. delete A.B
D. delete A[0]

View Answer


8. What will be the output if we compare "ten" and 10 with less then comparison operator("ten"<10)?

A. True
B. False
C. undefined
D. error

View Answer


9.  If an operator is NaN or converts to NaN, what wil comparison operator always returns ?

A. True
B. False
C. Undefined
D. NAN

View Answer


10. State whether the following statements are True or False for strict equality operator(= = =).
i) If the two values have different types they are equal.
ii) If both values are null or both values are undefined, they are equal.

A. True True
B. False False
C. True False
D. False True

View Answer






Also check :


Discussion


* You must be logged in to add comment.