Computer Science, asked by traks, 1 year ago

Question 5: Predict whether the output will be true or false-
1. (5 <= 5) || (3 < 14)
2. (5 != 3) && (9 == 3)
3. (6/5 == 0) || (6% 5 == 0)
4. (6 > 5) && (7 > 8)​

Answers

Answered by smahiagarwal030
0

Answer:

1.True

2.False

3.False

4.False

Answered by AskewTronics
0

1) True, 2) False, 3) False 4) False are the correct answer for the above question.

Explanation:

  1. The first option returns true because both the condition is true and the or operator states true if any of the conditions are true. Both conditions are true because 5 is equal to 5 and the 3 is less than the 14.
  2. The second option returns false because the second condition "9 is equal to 3" is false and the 'and' operation states that true only if both the condition will true.
  3. The third condition is also false because both the condition is false and the 'OR' operation states true if any of the conditions is true.
  4. The fourth option is also false because the second condition is false and the 'and' operation returns true if both the condition is true.

Learn More:

  • && and || operator : https://brainly.in/question/10874212
Similar questions