Professional Documents
Culture Documents
LLAGAS
V. PRE TEST
True/False: This pre-test will try to assess your knowledge prior to the discussion of the topic. Each item
is a statement for you to evaluate whether true or false. Please put a check on the column that
corresponds to your answer.
LEARNING TASK M1.2 Objective: This activity intends to achieve objective No. 4,5. Instruction: Following
the syntax of declaring a variable in C, declare your own variables with the following data (2 pts each):
Part 1: Evaluate the following expressions as to true or false based on the used operators.
Suppose a= 6, b c=3. (2 pts each)=7,
TRUE 1. (a <=b)
a = a<b
a = 6<7
TRUE 2. ! (a*b <= b*c)
! (a*b=a*b<b*c)
! (a*b=6*7<7*3)
! (a*b=42<21>
FALSE 3. ( (b=2) <= c)
( (b=2) <=c )
( (b=2=0 ) <=c )
( (7-22=5<=3 )
( (5 < = 3 )
TRUE 4. ! (a*b != b*a)
! (6*7 ! = 6*7)
! (6*7 != 6*7)
! ( 42! =42 )
FALSE 5. ! (c==3)
ZILDJIAN XAVIER F. LLAGAS
! (3= = 3
TRUE 6. (a<=b) || (b>=c)
( 6<=7)||(7>=3)
TRUE 7. (b!=c) && (c<=a)
(7!=3) &&(3<=6
TRUE 8. (b> c) && (c>a)
(7>3) %% (3>6)
TRUE 9. ! ((a>=c) || (b>=a))
!(( 6>7=3) || ( 7>=6)
FALSE 10. !(a<=b) || ! (b>=c)
! (6<=7) 11 ! (7)=3)
VIII. Post-Test
1. TRUE
2. /TRUE
3. TRUE
4. TRUE
5. TRUE
6. FALSE
7. FALSE
8. FALSE
9. FALSE
10. FALSE
ZILDJIAN XAVIER F. LLAGAS
M.1
Pseudo code
FLOWCHART
START
‘’Student Age’’
‘’student age’’
Print
FALSE TRUE
Student
ages >or=
‘’not qualified’’
‘’qualified’’
Stop