100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

Lecture notes INF2611 - Visual Programming II (inf1511)

Rating
-
Sold
1
Pages
9
Uploaded on
26-05-2021
Written in
2020/2021

This document gives the past group discussion quiz of exam preparation for last year 2020

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
May 26, 2021
Number of pages
9
Written in
2020/2021
Type
Class notes
Professor(s)
Jan mentz
Contains
All classes

Subjects

Content preview

lOMoARcPSD|8112944




INF 2611
VISUAL PROGRAMMING II
GROUP PREPARATION QUIZ
EXAM 2020

, lOMoARcPSD|8112944




INF2611 Group 1E Exam Preparation Quiz 1
(INF2611_2020_S2-G1E)
1. What are widgets and why are they useful in programming? (2 Points)
The main component for creating a user interface are widgets, such as buttons, menus and scrollbars. They are used for
receiving user input but also to display data and status information. Widgets can also be nested inside another.

2. Name any 3 widgets that you have used in your assignments. (3 Points)
You used among others these widgets:
 Clock widget
 Calendar
 Displaying information in a table
 Displaying graphics


3. Explain how you would add a LCD widget and how you can use this to show the system time. (5
Points)
To use the Clock widget you use the methods:
 Use the setMode() method, to change the base of the numbers. Available options are Hex, Dec, Oct, Bin.
 Use the display() method to display the content as LCD digits.
 Use the value() method that can return the numerical value displayed by the LCD Number widget.
 For the system clock time displayed, to update automatically, you are required to implement timers.

4. Explain how you would add a calendar widget and how you can use this to display the date
selected in a date edit widget. (3 Points)
To use the calendar widget you use the methods:
 Use method selectedDate() that returns the currently selected date.
 Use method monthShown() that return the currently displayed month.
 Use method yearShown() that returns the currently selected year.
 Use method setFirstDayOfWeek() to set the day in the first column.
 Use method selectionChanged() when you select a date other than the selected date.(example selecting date by mouse or
keyboard).
 You can change various properties in the Calendar Widget such as minimumDate, maximumDate, selectionMode etc.

5. Why is a combobox useful in applications? (1 Point)
Combobox is an input widget, that displays a pop-up list. It forces the user to use only values available in the pop-up
list. Which means it controls user input and ensures validity and accuracy of input.

6. Explain how you can use a combo box in a GUI. (3 Points)
You can use a combo box to display listed items.
 You can use it to change an item.
 Remove an item
 Add an item to the list
$6.09
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Document also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
JayJo University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
51
Member since
4 year
Number of followers
46
Documents
24
Last sold
1 month ago

4.0

4 reviews

5
3
4
0
3
0
2
0
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions