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 | |
|---|---|---|
| 1txtFirstName | AcboYearLevel | |
| 2lblResult | BbtnSave | |
| 3A button control that saves the entered data, named with the correct type prefix and purpose | CThe name has no type prefix and does not describe its purpose. It should be something like btnSubmit. | |
| 4A combobox control for choosing a year level, named with the combobox prefix | DA label control used to display a result to the user | |
| 5button1 = Button(window, text="Submit") | EThe prefix lst means a list, but an Entry is a textbox. The name should use txt, such as txtName. | |
| 6lstNames = Entry(window) | FA textbox control that collects the user's first name |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
btnSubmit — Hungarian notation for a control: a type prefix (btn button, txt textbox, lbl label, lst list, cbo combobox) plus a purpose, so btnSubmit is clearly a button.btnSubmit = Button(window, text="Submit")txtName = Entry(window)
name = txtName.get()lblResult = Label(window, text="")
lblResult.pack()lstStudents = Listbox(window)
lstStudents.pack()cboHouse = Combobox(window)
print(cboHouse.get())