**Nouvelle formation !**Tous les codeurs devraient apprendre

**l'IA générative !**

+ 17

# if A>B is false , then which of the following will always be true ? and why ? a) A<B b)A<=B c)A=B d)A==B

i want to post your responses somewhere else to solve arguments

47 Réponses

+ 35

If A>B is false
So if we have A<B or A<=B or A==B is true
So the The most correct answer is option b
Because Includes all possible modes
If A<=B true

+ 14

Aman sharma see
We have A>B as false
It means There are 3 correct modes
A<B
A==B
A<=B
So the answer which includes all modes is A<=B
Option
Let me say an example
4>5 if false so we can say 4<5 is true
But we don't know the exact number so
If we have 5>5 if false then 5==5 is true
So As a result of these two examples A<=B is correct ☺️

+ 6

If A>B is false then there would arise 2 scenarios that you must confirm.
1) A could be less than B
2) A could be equal to B
The option that matches the above is b).

+ 6

A <= B

+ 4

🅰🅹
I told
We don't know the exact number
We only have A and b
So if A>B is false
It's possible that Both A and B be a same number
So 5>5 is false then 5==5 is true

+ 4

A<=B

+ 4

(b) option

+ 3

sorry guys, first I answered correctly then I thought a>b is TRUE 😅 sry its my mistake

+ 3

Ona Nixon 🇹🇿 👑
Try to understand this with value
A = 1
B = 2
1 > 2 //false
1 < 2 //true
1 <= 2 //true
1 == 2 //false
in case of A = 2, B = 2
A > B //false
A == B //true
A <= B //true
So finally A <= B will be always true

+ 3

Donya Khoobani
Yes got it that's why I deleted my comment.

+ 3

Option b which is including option a too. Look, the given condition means a is lesser than b, but they haven't put any light in the fact that of its equal or not so I think to play safe you must consider option b.

+ 3

A<B Because if A>B is false, the opposite is true.
A<=B Because A is either smaller or equal to B

+ 3

if A> B is false so the proposition that is true is that A == B or A <= B or A<B so we can just use B

+ 2

Donya Khoobani
Attending to Bool's algebra.... A or B answers are ok.
The reason? The opposite of "A>B" is at least "A<B" but also could be equal, so... "A<=B"
But, thinking in programming languages, it could be limited. There are some of them doesn't accomplish. E.g. when A and B are of different type.
Go ahead a bit more about "C" answer..
"A=B" is an assignment operation, not a conditional operation per sé but could be truth if contains true value and is used in a condition statement. Other time more... it could depend on language. E.g.
let A, B;
B = true;
// A is undefined so A>B is falsy but with...
If (A=B) {
// is truth: first assigns, after evaluate A=true
}
I hope this helps.

+ 2

A<=B
Because it includes all modes

+ 2

b) A<=B because inversion

+ 2

Based on the arguments given, i would say A<=B will be the right answer since it has all the right conditions which A>B is false.

+ 1

A<B returns true
Also A<B to z returms true

+ 1

C) Because a=b is an assignment operation .. not a comparison 🤗
A<B is okay but most programming languages allow only lowercase letters..

+ 1

Its A<=B. We dont the values but we know that A cant be bigger. So that mean A can be less or equal to B.