4.2. Assessment: Relational Expressions¶
Write Relational Expressions
For each of the following, fill in the blank with the appropriate operator.
Q1: z is odd
z % 2 |blank| 1
Q2: z is not greater than y’s square root
z |blank| Math.sqrt(y)
Q3: y is a multiple of z
y % z |blank| 0
Q4: z is not zero
z |blank| 0
Q5: z is nonnegative
z |blank| 0
Q6: x is even
x % 2 |blank| 1
You have attempted of activities on this page