2025 – INF1511 – ASSESSMENT 8 – QUESTIONS AND ANSWERS
Assessment 8
Started on Sunday, 22 September 2024,
State Finished
Completed on Sunday, 22 September 2024,
Time taken
Marks 15.00/15.00
Grade 100.00 out of 100.00
Question 1
The following code is recommended to clear all the current items displayed in a list
widget: ____________________________
a.
self.ui.lstList.ClearEverything()
b.
self.ui.lstList.clear()
c.
self.ui.lstList.AllItemsclear()
d.
self.ui.lstList.EraseClear()
Question 2
The widgets in the item views category are _____
a.
used to initiate an action.
b.
used to display many data values.
c.
not visible when the program is executing.
d.
used to arrange other widgets.
1
, 2025 – INF1511 – ASSESSMENT 8 – QUESTIONS AND ANSWERS
Question 3
The purpose of the following code is to
______self.ui.lstList.addItem(self.ui.edtLine.text())
a.
to copy the selected item in a list to a edit text
b.
the code has no purpose as there is a syntax error
c.
add the text in an edit text to a list widget
d.
to compare the length of the strings in the text edit and the list widget
Question 4
Which one of the following widgets is NOT a buttons widget in Qt Designer?
a.
tool box
b.
dialog button box
c.
tool button
d.
check box
Question 5
To add text to a label widget, the _____ method is used.
a.
setText()
b.
callText()
c.
fetchText()
2
Assessment 8
Started on Sunday, 22 September 2024,
State Finished
Completed on Sunday, 22 September 2024,
Time taken
Marks 15.00/15.00
Grade 100.00 out of 100.00
Question 1
The following code is recommended to clear all the current items displayed in a list
widget: ____________________________
a.
self.ui.lstList.ClearEverything()
b.
self.ui.lstList.clear()
c.
self.ui.lstList.AllItemsclear()
d.
self.ui.lstList.EraseClear()
Question 2
The widgets in the item views category are _____
a.
used to initiate an action.
b.
used to display many data values.
c.
not visible when the program is executing.
d.
used to arrange other widgets.
1
, 2025 – INF1511 – ASSESSMENT 8 – QUESTIONS AND ANSWERS
Question 3
The purpose of the following code is to
______self.ui.lstList.addItem(self.ui.edtLine.text())
a.
to copy the selected item in a list to a edit text
b.
the code has no purpose as there is a syntax error
c.
add the text in an edit text to a list widget
d.
to compare the length of the strings in the text edit and the list widget
Question 4
Which one of the following widgets is NOT a buttons widget in Qt Designer?
a.
tool box
b.
dialog button box
c.
tool button
d.
check box
Question 5
To add text to a label widget, the _____ method is used.
a.
setText()
b.
callText()
c.
fetchText()
2