Python Review Questions, CH. 3-4 PDF
Python Review Questions, CH. 3-4 PDF
Chapter 3:
11) The not operator takes a Boolean expression as its operand and
reverses its logical value.
TRUE OR FALSE
1. False
2. False
3. False
4. True – A decision structure can be nested inside another decision
structure.
5. True – Same as #9 above
Chapter 4:
5) An infinite loop has no way of ending and repeats until the program
is interrupted.
6) The -= operator is an example of an augmented assignment
operator.
11) The input operation that appears just before a validation loop is
known as the priming read.
TRUE OR FALSE
4.False
5.True – In a nested loop, the inner loop goes through all of its iterations for
every single iteration of the outer loop
7.False