Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4,6 TrustPilot
logo-home
Autre

INF2611 Assignment 1 2024 memo

Note
-
Vendu
11
Pages
4
Publié le
19-04-2024
Écrit en
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.

Montrer plus Lire moins
Établissement
Cours

Aperçu du contenu

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()

École, étude et sujet

Établissement
Cours

Infos sur le Document

Publié le
19 avril 2024
Nombre de pages
4
Écrit en
2023/2024
Type
AUTRE
Personne
Inconnu

Sujets

$4.53
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
CrystalIndigo University of South Africa (Unisa)
S'abonner Vous devez être connecté afin de pouvoir suivre les étudiants ou les formations
Vendu
486
Membre depuis
5 année
Nombre de followers
226
Documents
73
Dernière vente
5 mois de cela
CrystalIndigo Solutions

providing all solutions to all computer science modules

4.1

51 revues

5
27
4
13
3
6
2
1
1
4

Documents populaires

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions