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
Other

INF2611 Assignment 1 2024 memo

Rating
-
Sold
11
Pages
4
Uploaded on
19-04-2024
Written in
2023/2024

INF2611 Assignment 1 2024 memoINF2611 Assignment 1 MCQ Crystal Indigo! Providing all solutions you need anytime NOTE: Questions may be numbered differently Question 1 Which one of the following statements is correct about size constraint settings on widgets? 1. If the maximumSize property is set for a list widget, and the window size is increased, the list widget increases in size. 2. If the maximumSize property is set for a list widget, and the window size is decreased, the list widget decreases in size. 3. If the maximumSize property is set for a list widget, and the window size is decreased, the list widget size does not change. 4. If the maximumSize property is set for a list widget, and the window size is decreased, the list widget increases in size. Question 2 Which of the following functions converts the argument passed, into an integer type? len() str() int() round() Question 3 Which of the following functions returns the number of characters in a string? len() str() int() round()Question 4 A form includes a checkbox that is not checked, a listbox and a pushbutton widget. The pushbutton is clicked twice in the form. The code is executed. The following is added to the list: ________. Syntax Error: "Not checked Not checked" "Checked" "Not checked" Question 5 The abbreviation GUI stands for _____ Graphical User Interface General User Interface Graphical Usage Interaction Graphical User Interchange Question 6 Choose the best option. MDI applications are made up of : a main window, menubar, toolbar, central space only a main window and a central space. only a main window and a toolbar. only a central space. Question 7 Which one of the following statements is NOT correct? PyQt supports Unix, Mac OS, Linux and Windows. PyQt is a GUI widgets toolkit. PyQt is not dependent on the Qt libraries to run. PyQT API is a large collection of classes and methods. Question 8 A form includes a checkbox that is checked, a listbox and a pushbutton widget. The PushButton on the form is clicked three times. The following is added to the list: "Checked" Syntax Error: "Not checked" "Checked Checked Checked" Question 9 Which of the following widgets is NOT an example of a Model Bases Item View? Table View (QTableView) Column View (QColumnView) List Widget (QListWidget) Tree View (QTreeViewGeneral User Interaction)Question 10 The Default data type in a Line Edit Widget is: integer string Boolean Double Question 11 Calculate the amount of tax payable on a salary based on a RadioButton selection. Select the line of code that should be inserted into B. to determine what tax percentage to apply: def calctax (self) #convert the salary value in lineEdit_salary to numeric A. _____________________ #test which tax percentage to use B. ______________________ tax = salary * 0.1 else: tax=salary * 0.2 #display tax amount in lineEdit_tax C. ___________________________________ 1. if Button_10p_Checked(): 2. if Button_10p_Selected(): 3. if radioButton_10p_Checked(): 4. if Button_10p_Dot(): Question 12 The GUI application allows user to enter text and replace an item in a list with the text as shown in the screens. Which of the following lines of code is required at #YOUR CODE HERE to complete the function? def changelist(self): newtext = EditC() row=WidgetEntRow() WidgetEtem(WidgetEntRow()) ##YOUR CODE ______________ 1. WidgetEtItem(row,newtext) 2. WidgetEItem(row,newtext) 3. WidgetEtItem(row,QListWidgetItem(newtext)) 4. WidgetEItem(row,QListWidgetItem(newtext)) Question 13 User login dialogs are common in applications. The user first provides a correct username and password, and then is able to use the application. This is an example of ___ modal dialog multiple document interface single document interface modeless dialogQuestion 14 You need to display a list of options to a user, from which the user should be able to select more than one option. You will use widgets from the ______________ class. QInputDialog QRadioButton QListWidgetItem QCheckBox Question 15 PyQt is used to ______ develop graphical user interfaces for Python programs. develop command line code in Python. write if statements in Python. write loop statements in Python.

Show more Read less
Institution
Course

Content preview

INF2611 Assignment 1 MCQ

Crystal Indigo!
Crystal Indigo!
Providing all solutions you need anytime
+27 76 626 8187




NOTE: Questions may be numbered differently


Question 1 Which one of the following statements is correct about size
constraint settings on widgets?
1. If the maximumSize property is set for a list widget, and the window size is increased, the
list widget increases in size.
2. If the maximumSize property is set for a list widget, and the window size is decreased, the
list widget decreases in size.
3. If the maximumSize property is set for a list widget, and the window size is decreased, the
list widget size does not change.
4. If the maximumSize property is set for a list widget, and the window size is decreased, the
list widget increases in size.




Question 2 Which of the following functions converts the argument
passed, into an integer type?
1. len()
2. str()
3. int()
4. round()


Question 3 Which of the following functions returns the number of
characters in a string?

1. len()
2. str()
3. int()
4. round()

Written for

Institution
Course

Document information

Uploaded on
April 19, 2024
Number of pages
4
Written in
2023/2024
Type
OTHER
Person
Unknown

Subjects

$4.65
Get access to the full document:

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

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.
CrystalIndigo University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
490
Member since
6 year
Number of followers
226
Documents
73
Last sold
1 week ago
CrystalIndigo Solutions

providing all solutions to all computer science modules

4.1

53 reviews

5
27
4
14
3
6
2
1
1
5

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