Skip to main content

Section 3.4 Assessment: Relational Expressions

Subsection 3.4.1 Write Relational Expressions

For each of the following, fill in the blank with the appropriate operator.

Exercises 3.4.2 Exercises

    1.

    Q1: z is odd
    z % 2 1

    2.

    Q2: z is not greater than y’s square root
    z Math.sqrt(y)

    3.

    Q3: y is a multiple of z
    y % z 0

    4.

    Q4: z is not zero
    z 0

    5.

    Q5: z is nonnegative
    z 0

    6.

    Q6: x is even
    x % 2 1
You have attempted of activities on this page.