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

  • (A) !
  • (B) !=
  • (C) !==
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) !=

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

  • (A) Object
  • (B) Number
  • (C) Boolean
  • (D) String
πŸ’¬ Discuss
βœ… Correct Answer: (B) Number

Q. If the operator value is null, then the unary operator returns the typeof _________.

  • (A) string
  • (B) boolean
  • (C) object
  • (D) undefined
πŸ’¬ Discuss
βœ… Correct Answer: (C) object

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

  • (A) Void
  • (B) Eval
  • (C) Comparison
  • (D) In
πŸ’¬ Discuss
βœ… Correct Answer: (A) Void

Q. 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]
πŸ’¬ Discuss
βœ… Correct Answer: (C) delete A.B

Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (B) False

Q. 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) False True
  • (B) True False
  • (C) False False
  • (D) True True
πŸ’¬ Discuss
βœ… Correct Answer: (A) False True

Q. which operator outputs the remainder of an integer division?

  • (A) Increment
  • (B) Modulus
  • (C) Subtraction
  • (D) Add
πŸ’¬ Discuss
βœ… Correct Answer: (B) Modulus

Q. Which operator checks if the value of the left operand is greater than the value of the right operand?

  • (A) Greater than or Equal to
  • (B) Less than
  • (C) Greater than
  • (D) Equal
πŸ’¬ Discuss
βœ… Correct Answer: (C) Greater than

Q. Which of the following statement is true about BitWise OR?

  • (A) It is a unary operator and operates by reversing all the bits in the operand.
  • (B) It performs a Boolean AND operation on each bit of its integer arguments
  • (C) Both A and B
  • (D) It performs a Boolean OR operation on each bit of its integer arguments.
πŸ’¬ Discuss
βœ… Correct Answer: (D) It performs a Boolean OR operation on each bit of its integer arguments.