Instructions:
Answer all the questions in the answer book.
Answers in pencil will not be marked.
The marks are provided in brackets next to the questions.
Enjoy!
Duration: 2 hours
Marks: 70
[Please Turn Over]
, 11
INF2611
May/June 2017
Question 1: Menus and Widgets (12)
1.1. A menu bar consists of several menus, each of which consists of several entries.
Describe two methods on how to add entries in the menu bar. (4)
1.2. Dock widget
a) Which class is used to create a dock widget? (1)
b) What is the purpose of using a dock widget? (2)
c) List the four allowable dock areas of the dock widget. (4)
d) Is the following statement true or false? (1)
The user can drag a dock window out of the dock area entirely so that it becomes a
free-floating window.
Question 2: Database handling (18)
2.1. For your assignment project for this subject you connected your GUI application to a
database. What are the advantages of connecting an application to a database? (4)
2.2. Provide a short description of each of the following MySQL data types: (4)
Smallint
Char
Varchar
Longblob