Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 9 pages
Class notes

Lecture notes INF2611 - Visual Programming II (inf1511)

Document preview thumbnail
Preview 2 out of 9 pages

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

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

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
$6.40

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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
4.0
(4)
Sold
51
Followers
46
Items
24
Last sold
9 months ago




Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

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

Student with book image

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

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions