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 | |
|---|---|---|
| 1student_score = 85 | AA Python function named in snake_case so it follows the standard Python style | |
| 2def calculate_total_marks(): | BThe styles are mixed. bonusPoints is camelCase and should be bonus_points to match total_marks. | |
| 3snake_case is different from camelCase because it uses underscores instead of capital letters to separate words | Cfirst_name (not firstName) | |
| 4Follow one naming style consistently so every variable in a program is easy to read | Dtotal_marks = 0 average_mark = 0 | |
| 5studentScore = 85 | EThis uses camelCase, but Python style expects snake_case. It should be student_score. | |
| 6total_marks = 90 bonusPoints = 5 | FA Python variable named in snake_case: lowercase words joined by underscores |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
snake_case — A naming style where all letters are lowercase and words are joined by underscores, like student_score. Python uses it for variables and functions, and it should be used consistently.student_score = 85
print(student_score)def calculate_average(total, count):
return total / count
avg = calculate_average(240, 3)last_name = "Nguyen"
full_name = "Ava " + last_namedef get_total_points(points):
return sum(points)high_score = 0
if new_score > high_score:
high_score = new_score