WorksheetsQuiz 1
Total questions: 30
Worksheet time: 22mins
This is the standard GUI library for Python, it provides a powerful object-oriented interface to the Tk GUI toolkit?
(a)
What is another term for user interface components such as buttons, labels and text boxes used in a GUI application?
(a)
This widget is used to draw shapes, such as lines, ovals, polygon and rectangle in your application?
(a)
This widget is used to display single line text field for accepting values from the user?
(a)
This widget is used to add scrolling capability to various widgets, such as list boxes?
(a)
This widget is used to display single line text field for accepting values from the user?
(a)
This widget is used to display a number of options as checkboxes. The user can select multiple options at a time?
(a)
This widget is used to display a number of options as radio buttons. The user can select only one option at a time?
(a)
This widget is used to display text in multiple lines?
(a)
This widget is used to display buttons in your application?
(a)
This geometry manager organizes widgets in blocks before placing them in the parent widget?
(a)
This geometry manager organizes widgets by placing them in a specific position in the parent widget?
(a)
This geometry manager organizes widgets in a table-like structure in the parent widget?
(a)
This grid option is used to set how many rows widget to occupy?
rowspan
colspan
row
column
This grid option is used to set how many columns widget to occupy?
row
column
rowspan
columnspan
This option in grid method is used to set how many pixels to pad widget, horizontally and vertically, outside v's borders?
ipadx and ipady
padx and pady
column
row
This option in pack method determines whether widget fills any extra space allocated to it by the packer, or keeps its own minimal dimensions?
fill
place
side
expand
This option in grid method is used to set how many pixels to pad widget, horizontally and vertically, outside v's borders?
ipadx and ipady
padx and pady
column
row
This option in place method is used to place widget on exact spot of widget position: values may be N, E, S, W, NE, NW, SE, or SW, compass directions indicating the corners and sides of widget?
anchor
border
x,y
location
This widget is used to provide a list of options to a user?
List
Listbox
Scrollbar
Option
This is a self-contained, high-reliability, embedded, full-featured, public-domain, SQL database engine
MySQL
SQLite
SQL
mySQLite
To use SQLite, we must import sqlite3 which of the following is the correct statement?
import sqlite
use sqlite
import sqlite3
use sqlite3
TRUE or FALSE?
To create a connection on sqlite database and the database name is myDb.db we can use this statement.
con = sqlite3.connect('myDB.db')
TRUE
FALSE
TRUE or FALSE?
To close the database connection we can use the following commands.
connection.closed('myDb.db')
TRUE
FALSE
TRUE or FALSE?
To execute SQL statement we can use the following statement to insert values to a table.
cur.execute('INSERT FROM tblStudent VALUES (1, 'Mikel','Bensi','Cabanatuan');')
TRUE
FALSE
TRUE or FALSE?
To display all the content of the table we can use the following statement.
cur.exe("Select * FROM tblStudent")
TRUE
FALSE
TRUE or FALSE
DROP is used to delete the entire database or a table.
TRUE
FALSE
TRUE or FALSE?
To delete a record in the table we can use the following statement.
cur.execute('DELETE INTO tblStudent WHERE id=1')
TRUE
FALSE
TRUE or FALSE?
To delete a table we can use the following statement.
cur.execute('DELETE TABLE tblStudent')
TRUE
FALSE
TRUE or FALSE?
To save changes in the database tables we can use the following statement.
con.commit()
TRUE
FALSE
