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 | |
|---|---|---|
| 1strName | AThe int prefix says integer, but the value is a string. The prefix should be str, giving strName. | |
| 2blnPassed | BintStudentAge | |
| 3A whole-number variable named with a Hungarian notation prefix, then camel casing for the rest of the name | CThe prefix starts with a capital letter. Hungarian notation prefixes must be lower case, so it should be strName. | |
| 4A decimal-number variable named with a Hungarian notation prefix and a descriptive word | DA variable holding a Boolean (True or False) value, shown by the bln prefix | |
| 5StrName = "Ava" | EA variable holding a string (text), shown by the str prefix | |
| 6intName = "Liam" | FfltPrice |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Hungarian notation — A naming style where a variable name starts with a short lower-case prefix showing its data type, e.g. strName, intAge, fltPrice, blnPassed.strName = "Ava"intAge = 16fltPrice = 4.50blnPassed = Truemarks = 72
blnHasPassed = marks >= 50