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 | |
|---|---|---|
| 1strFirstName | AfltPrice | |
| 2blnPassed | BThe int prefix is wrong because the value is text. It should use str, as in strStudentName. | |
| 3An integer variable for a student's age using Hungarian notation and camel casing | CA string variable, shown by the str prefix before the descriptive name FirstName | |
| 4A float variable holding a decimal price, with the data type prefix first | DThe name has no data type prefix. Hungarian notation needs one, such as intAge. | |
| 5intStudentName = "Ava" | EA Boolean variable holding True or False, shown by the bln prefix | |
| 6age = 16 | FintStudentAge |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Hungarian notation — Starting a variable name with a short data type prefix, then a descriptive name, such as strName, intAge, fltPrice or blnPassed.strName = "Ava"intAge = 16fltPrice = 4.5blnIsMember = FalseblnPassed = True
if blnPassed:
print("Well done")