Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1if x > 0 AND x < 10: | AOutput: True | |
| 2result = true | BValid: Both must be True | |
| 3x > 0 and x < 10 | COutput: False | |
| 4not False | DError: Use lowercase 'and' | |
| 5print(True or False) | EError: Use True not true | |
| 6print(True and False) | FOk: Returns True |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Boolean — A data type with only two values: True or False.~~andprint(True and True)print(True or False)print(not False)print(5 > 3 and 2 < 10)print(not (10 == 5))