You are on page 1of 1

THIRD QUARTER

ICT 9 – WORKSHEET 3.1

Name: _Anahaw,Khalil TJ Gamaliel C._____ _ Section: St. Lawrence

Truth Table: Complete the table by evaluating each expression. WRITE the correct answer in
Result1, Result2 and Boolean Result column. (26 pts)
*No.1 is done.

GIVEN A = 20 B = 22 C = 42
No. Operand1 Result1 Operat Operand2 Result Boolean
or 2 Result
1. C-B 20 < A++ 21 true
2. C%A 2.1 == C/A 2.1 True
3. --C 40 < ++B 23 false
4. A+B 42 > C-B+A 40 True
5. C%B 1.9 != C/B 1.9 false
6. A-B+C 40 >= C-B+A 40 True
7. ! A++ != B- - false True
8. C <= B True && C % B != C /B True True
9. B%A <=2 False || C % A == B%A True False
10. C % A ==2 True ^ C / A > B/A True True

Show your solution here:

Example in No. 1:

No. Operand1 Result1 Operator Operand2 Result2 Boolean


Result
1. C-B 20 < A++ 21 true
42/20 2.1 (2.1==2.1) 42/20 2.1 true
--42 40 (40 < 23) ++22 23 false
20+22 42 (42 > 40) 42-22+20 40 true
42/22 1.9 (1.9!=1.9) 42/22 1.9 false
20-22+42 40 (40>=40) 42-22+20 40 true
(!) 20++ != 22-- false true
42<=22 True (True&&True ) 42/22 != 42/22 True true
22/20<=2 False (false l l true ) 42/20 == 22/20 True false
42/20 ==2 true (True^true ) 42/20 > 22/20 True true

You might also like