Q. Given the declarations~~~boolean b;~~~short x1 = 100, x2 = 200, x3 = 300; Which of the following statement is evaluated to true?

  • (A) b = x1 * 2 == x2;
  • (B) b = x1 + x2 != 3 * x1;
  • (C) b = (x3 - 2*x2<0) && ((x3 = 400)<2**x2);
  • (D) b = (x3 - 2*x2>0) || ((x3 = 400) 2*x2);
πŸ’¬ Discuss
βœ… Correct Answer: (A) b = x1 * 2 == x2;

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
146
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate