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 | |
|---|---|---|
| 125 | AA negative whole number, which is still an integer | |
| 2-3 | BScoreChange (Integer) = -4 | |
| 3A count of students in a class is stored in an integer field | CWrong belief that integers must be positive. Integers can be negative, so -3 is valid. | |
| 4Integers can be negative, such as a change in score | DNumStudents (Integer) = 28 | |
| 5NumStudents (Integer) = 24.5 | EA positive whole number with no decimal part, so it is an integer | |
| 6Balance (Integer) = -3 // Error: negatives not allowed | FAn integer cannot have a decimal part. A count of students must be a whole number such as 24. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
integer — A whole number with no decimal part, positive or negative, used for counts such as the number of students in a class (e.g. 25, 0 or -3).print(isinstance(25, int))whole = int(7.9)
print(whole)print(type(25))num_students = 25
print(num_students + 1)change = -3
print(type(change))