Out of below four cases

  1. -5+5
  2. " "
  3. 0X0
  4. "0.00" + 0
  1. 1 and 4

  2. 2 and 4

  3. 3 and 1

  4. 2 and 3


Correct Option: A

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) 1 and 4 - This option is correct because both -5+5 and "0.00" + 0 can be evaluated to produce a valid result. -5+5 equals 0, and "0.00" + 0 equals "0.00" (a string concatenation).

Option B) 2 and 4 - This option is incorrect because the expression " " is an empty string and cannot be evaluated to produce a valid result. Therefore, option 2 is incorrect.

Option C) 3 and 1 - This option is incorrect because the expression 0X0 is not a valid mathematical expression. It appears to be a typo or incorrect format for multiplication. Therefore, option 3 is incorrect.

Option D) 2 and 3 - This option is incorrect because, as explained earlier, the expression " " is an empty string and cannot be evaluated to produce a valid result. Therefore, option 2 is incorrect.

The correct answer is option A. This option is correct because both -5+5 and "0.00" + 0 can be evaluated to produce valid results.

Find more quizzes: