The following conditional expression is written in the C language. It is false when variable a is assigned either 10 or 20 and true otherwise.
!(a = = 10 a = = 20)
Which of the following conditional expressions is equivalent?
a) a != 10 II b !=20
b) a<=1011b>=20
c) a< 101Ia> 20
d) a = = 10 && a = = 20
e) a != 10 && a != 20
f) !(a = = 10) && !(a = = 20)
e) a != 10 && a != 20
Approach: Remove the not operator (!)
Flip applicable relational operators (= becomes != in two places) Flip applicable logical operators (II becomes &&)
You might also like to view...
Discuss how you would change the DM to support the queries identified
What will be an ideal response?
______ are used to document a program and improve its readability.
Fill in the blank(s) with the appropriate word(s).
Selection criteria can be added to a SQL query using which keyword?
a. FROM. b. WHERE. c. SELECT. d. LIKE.
Define stickiness.
What will be an ideal response?