Question: Fill in the following table with TRUE or FALSE for the ! boolean expression: ! FALSE TRUE For Your Reference: The following is the Order

  1. Fill in the following table with TRUE or FALSE for the ! boolean expression:

!

FALSE

TRUE

For Your Reference: The following is the Order of Evaluation precedence:

1. (), ++, --

2. !

3. *, /, %

4. +, -

5. <, <=, >, >=

5. ==, !=

6. &&

7. ||

8. assignment =

(http://faculty.virginia.edu/comp-phys/phys2660/html/references/www.cppreference.com/operator_precedence.html)

  1. EVALUATE THE FOLLOWING:

Given: x = 2, y = 5, z = 12

x > y

a = x > y

x == z

x != z

  1. What will be the result of each expression?

int x = 5;

int y = 3;

  • ((x < 5) && (y >=2))
  • ((x > 5) || (y == 3))
  • !(x == 5)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!