Computer Science, asked by kimjeenie, 3 months ago

write the values after execution of the following statements, if a=3, b=5 and c=9

i. a>b || a>c

ii. !(a= =3)​

Answers

Answered by BrainlyProgrammer
7

Solution with Explaination:-

Given:

  • a=3
  • b=5
  • c=9

Question 1:

  • a>b||a>c

>> a>b || a>c

= 3>5 || 3>9 ( 3>5, condition false, So it will return Boolean value false)

= False || 3>9. (Here again, 3>9 condition false, will return Boolean value False

= False || False (Boolean rule: False OR False =False)

= False

  • Correct Answer:- False

_______________

Question 2:

  • !(a= =3)

>> !(a==3)

= !(3==3). (a=3, so, 3==3, condition true)

=!( True)

= False

  • Correct Answer: False

______________

Similar questions