100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten
logo-home
INF2611 EXAM PACK 2023 €2,67
In winkelwagen

Tentamen (uitwerkingen)

INF2611 EXAM PACK 2023

 2 keer verkocht
  • Vak
  • Instelling

QUESTIONS AND ANSWERS

Voorbeeld 4 van de 189  pagina's

  • 24 oktober 2023
  • 189
  • 2023/2024
  • Tentamen (uitwerkingen)
  • Vragen en antwoorden
avatar-seller
INF2611
EXAM
PACK 2023
QUESTIONS WITH
ANSWERS

, Stuvia.com - The study-notes marketplace


INF2611-2017-Oct/Nov Memo Tutorials Campus www.tutorialscampus.co.za


Question 1)


1.1)

a)

Use LCD Number widget (QLCDNumber class) to display decimal,

Use QTimer class to perform repetitive timer class



b)

The value() method of the QLCDNumber class returns the numerical value displayed by the LCD
Number widget



c)

The setMode() is used change the base of the numbers (Hex, Dec, Oct, Bin)

self.lcdNumber.setMode(QLCDNumber.Dec)



1.2)

a)

Timers is used to perform a repetitive task; to use a timer you have to create an instance of QTimer
class

b)

setSingleShot(true): set the timer to generate a timeout() signal only once

singleShot(n): set the timer to generate a timeout() signal only once after n millisecond



1.3)

a)

The purpose of selectionChanged() signal is to call function dispdate when a calendar date is
changed



b)

The name of the function that retrieves the date selected by the user is selectedDate() of the
calenderWidget, and the widget that displays the output is the object of the QDateEdit (dateEdit)




Downloaded by: Yusufdacosta |
Distribution of this document is illegal

, Stuvia.com - The study-notes marketplace


INF2611-2017-Oct/Nov Memo Tutorials Campus www.tutorialscampus.co.za


c)

self.ui.dateEdit.setDisplayFormat(‘d MMM yyyy’)



1.4)

Price = 0

If chosenoption == “VIP”:

Price = 200

If chosenoption == “Grand Stand”:

Price = 80

If chosenoption == “East Stand”:

Price = 60

If chosenoption == “Open Wing”:

Price = 40

Totalprice = Price * noOfPersons

Self.ui.PriceInfo.setText(‘Price for ’+ chosenoption+’ is R‘+str(Price)+’. Total for ‘+noOfPersons+’ is:
R’+str(Totalprice))



1.5)

a)

1) By creating an action in the Action Editor and dragging and dropping it into a menu

2) By typing text for menus and menu entries in the menu bar replacing the Type Here
placeholder

b) statusTip is use to make the status bar message to appear when the user hover over any menu
entry, set through the statusTip property




Downloaded by: Yusufdacosta |
Distribution of this document is illegal

, Stuvia.com - The study-notes marketplace


INF2611-2017-Oct/Nov Memo Tutorials Campus www.tutorialscampus.co.za


Question 2)
2.1)

1) Set the focus to the next window in the list of the child windows
2) Set the keyboard focus to the previous window in the list of child windows
3) Close all the sub windows
4) Arranges the sub windows in cascade fashion
5) Arranges the sub windows in tile fashion
6) Set the view mode of the MDI area



2.2)

1) Horizontal Layout: This type of layout arranges widgets next to each other in row

2) Vertical Layout: the vertical layout arranges the selected widgets vertically, in a column one
below another



2.3)

IsCheckable(): This method returns true if the Group Box has checkbox in its title; otherwise it return
false

isChecked(): This method returns true if the Group Box is checked



Question 3)
3.1)

Create database clinic;



3.2.1)

Cursor.execute(“””

Create table patients (patient_id smallint NOT NULL, patient_name char(40), patient_balance
float )“””)



3.2.2)

Cursor(): Returns the cursor object from the connection. The cursor object is used to transverse the
record from the result set.



3.2.3)

Execute(): Used to execute the SQL statement



Downloaded by: Yusufdacosta |
Distribution of this document is illegal

Dit zijn jouw voordelen als je samenvattingen koopt bij Stuvia:

Bewezen kwaliteit door reviews

Bewezen kwaliteit door reviews

Studenten hebben al meer dan 850.000 samenvattingen beoordeeld. Zo weet jij zeker dat je de beste keuze maakt!

In een paar klikken geregeld

In een paar klikken geregeld

Geen gedoe — betaal gewoon eenmalig met iDeal, creditcard of je Stuvia-tegoed en je bent klaar. Geen abonnement nodig.

Direct to-the-point

Direct to-the-point

Studenten maken samenvattingen voor studenten. Dat betekent: actuele inhoud waar jij écht wat aan hebt. Geen overbodige details!

Veelgestelde vragen

Wat krijg ik als ik dit document koop?

Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.

Tevredenheidsgarantie: hoe werkt dat?

Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.

Van wie koop ik deze samenvatting?

Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper brightih333. Stuvia faciliteert de betaling aan de verkoper.

Zit ik meteen vast aan een abonnement?

Nee, je koopt alleen deze samenvatting voor €2,67. Je zit daarna nergens aan vast.

Is Stuvia te vertrouwen?

4,6 sterren op Google & Trustpilot (+1000 reviews)

Afgelopen 30 dagen zijn er 67479 samenvattingen verkocht

Opgericht in 2010, al 15 jaar dé plek om samenvattingen te kopen

Begin nu gratis
€2,67  2x  verkocht
  • (0)
In winkelwagen
Toegevoegd