Computer Science - Object Oriented Programming Using C++ - Discussion

41. 

Evaluate the following expression: 7 >=3 + 4 || 6<4 && 2<5

[A]. True
[B]. False

Answer: Option A

Explanation:

No answer description available for this question.

R.Nithya said: (Apr 26, 2012)  
Operators - +,>=,||,&&

7>=4+3 -> 7>=7 -> True
6<4 -> False
2<5 -> True
True || False && True ->True && True -> True

Robi said: (Dec 7, 2012)  
First && part is executed, then || part is executed.
ie; true || false && true -> true || false -> true

Akabari said: (Aug 29, 2017)  
Yes, right @Robi.

Ayesha.. said: (Jun 15, 2020)  
Operators - +,>=,&&,||

First && part is executed, then || part is executed.

ie; ( true || false) && (true) -> true.

true && true -> true.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.