Computer Science, asked by udaychanpa635, 4 months ago

solve thisss plzz .

Attachments:

Answers

Answered by anindyaadhikari13
1

Answer:-

Given, x=10, y=20

  1. b=(x==10) is true because the statement x is equal to 10 is true.
  2. b=(x!=10) is false because the statement x not equals 10 is false.
  3. b=(x==10 and y==20) is true because both the statements are correct.
  4. b=(x!=10 and y==20) is false because the first condition is false i.e., x!=10 is false.
  5. b=(x==10 and y!=20) is false because x==10 is true but y!=20 is false. Hence, the ultimate result is false.
  6. b=(x!=10 and y!=20) is false because both the conditions are false.
  7. b=(x==10 or y==20) is true because either of the conditions is true.
  8. b=(x!=10 or y==20) is true because one of the conditions is true although the other condition is false.
  9. b=(x==10 or y!=20) is true because the first condition is true although the second condition is false.
  10. b=(x!=10 or y!=20) is false because both the conditions are false.
Similar questions