INF2611 May/Jun 2018 exam paper — questions
🔒 Scan locked
The paper, as written
Every question, by topic
Question 1.a · File handling · 5 marks
This question concerns file handling in Python. Python relies on file handling to store and retrieve data. Explain the three steps required for working with files, enhancing your explanation with commented code.Show the full question
Question 1.b · File handling · 3 marks
This question concerns file handling in Python. Explain what it means that a file can be opened in a number of modes. Give examples of the modes that may be used, together with snippets of code that illustrate each mode.Show the full question
Question 1.c · File handling · 2 marks
This question concerns file handling in Python. Explain what PyQT is and compare it to the command line, providing examples to support your explanation.Show the full question
Question 2.1 · Widgets and menus · 4 marks
Define what a widget is in the context of Python GUI development, listing at least four characteristics of widgets, and provide coded examples that illustrate your explanation.Show the full question
Question 2.2 · Widgets and menus · 4 marks
Explain what a table widget is used for, and give the code required to add data to a table widget using the setItem() method.Show the full question
The full Spot Map and the marks by year — and this paper’s scan.