If a=20 and b=10 then which of the following results to FALSEOptions :a>10&&a>ba>10||a==ba>10&&a==bnone of the above
Question
If a=20 and b=10 then which of the following results to FALSE
Options :
a > 10 && a > b
a > 10 || a == b
a > 10 && a == b
none of the above
Solution
The given options are:
- a>10 && a>b
- a>10 || a==b
- a>10 && a==b
- none of the above
Let's evaluate each option:
- a>10 && a>b: This translates to 20>10 and 20>10, which is TRUE.
- a>10 || a==b: This translates to 20>10 or 20==10, which is TRUE because 20 is indeed greater than 10.
- a>10 && a==b: This translates to 20>10 and 20==10, which is FALSE because 20 is not equal to 10.
So, the option that results to FALSE is "a>10 && a==b".
Similar Questions
If a=20 and b=10 then which of the following results to FALSEOptions :a>10&&a>ba>10||a==ba>10&&a==bnone of the above
Assume that A = 5, B = 6, C = 10.Which of the following Expressions will be TRUE?A > B or B < CA > B and B < CA != BA + B >= CA % B == 5
Using the Boolean operator A && B, if A = true and B = true, what would the result be?truefalse0true and false
int A= 5, B = 2, C = 10, ans; ans = ((A*B < C) || C%A == B);Group of answer choicesTrueFalse
What will be the output of the following statement?a = 5b = 5print(a is b)Options: Pick one correct answer from belowTrueFalseBoth A and BNone of the Above
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.