Practice Free PCEP-30-02 Exam Online Questions
Question #131
Which of the following statements are true? (Choose two.)
- A . The result of the / operator is always an integer value.
- B . The operator uses right-sided binding.
- C . The right argument of the % operator cannot be zero.
- D . Addition precedes multiplication.
Correct Answer: BC
Question #132
An operator able to check whether two values are not equal is coded as:
- A . <>
- B . !=
- C . =/=
- D . not ==
Correct Answer: B
Question #133
The following statement …
assert x == 0
- A . will stop the program if x is equal to 0.
- B . has no effect.
- C . is erroneous.
- D . will stop the program if x is not equal to 0.
Correct Answer: D
Question #134
Which of the following statements are correct? (Choose two.)
- A . 7 + False evaluates to False
- B . True or False evaluates to True
- C . True + 1 evaluates to 2
- D . True and False evaluates to True
- E . type(”) returns <class ‘bool’>
Correct Answer: BC
