Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 21 You have a SpinCtrl named age in an instance that inherits from wx.Dialog that uses the variable named dataDlg. dataDlg is opened from

QUESTION 21

You have a SpinCtrl named age in an instance that inherits from wx.Dialog that uses the variable named dataDlg. dataDlg is opened from an instance inheriting from wx.Frame. How would you retrieve the number entered by the user in the SpinCtrl when the dialog is closed and execution returns to the MyFrame instance?

userAge = dataDlg.GetValue()

userAge = dataDlg.age.GetValue()

userAge = age.GetValue()

userAge = MyFrame.age.GetValue()

2.5 points

QUESTION 22

You have a class named MyDialog that inherits from wx.Dialog. You also have a class named MyFrame that inherits from wx.Frame. MyFrame is intended to open the dialog box and retrieve a couple of user-entered values when the dialog closes. The MyDialog constructor is called from the Myframe instance by assigning the MyFrame instance to a variable named dataDlg. The following code is not complete but should show the relationship of the two classes.bclass

MyDialog(wx.Dialog): pass class MyFrame(wx.Frame): def .... dataDlg = MyDialog()

we say MyDialog has a MyFrame

we say MyFrame is a MyDialog

We say MyDialog is a MyFrame

we say MyFrame has a MyDialog

2.5 points

QUESTION 23

Which if the following is the bit-wise OR operator?

&

\

$

|

2.5 points

QUESTION 24

SQLITE3 _____.

is a much bigger program than MySql

is a hierarchical database

requires a separate service be running like MySql does

runs on the computer's local file system

2.5 points

QUESTION 25

You execute a query that gets all records from a table. the fetchall() method returns ____.

a list containing one record where each field is a value in a tuple

a CSV file of the table contents

a list of tuples where each tuple is a record in the table

a tuple of lists where each list is a column in the table

2.5 points

QUESTION 26

Box sizers cannot be nested.

True

False

2.5 points

QUESTION 27

To insure that the resources of a dialog box are freed up after it closes, you need to execute the _____.

End method

Release method

Exit method

Destroy method

2.5 points

QUESTION 28

You can append a tuple containing a record to the list control using the append() method.

True

False

2.5 points

QUESTION 29

CSV stands for comma string values.

True

False

2.5 points

QUESTION 30

"You have a table of mailing addresses. You want to change all of the existing values of the field named 'state' to be KY (two capital letters), rather than Ky, or ky, or whatever they might be. Which SQL statement would accomplish this?"

UPDATE addresses SET state = 'KY' WHERE state = 'ky' AND state = 'Ky'

UPDATE addresses SET state = 'KY'

INSERT INTO addresses VALUES('KY')

INSERT INTO addresses (state) VALUES('KY')

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

=+working on a micro-multinational?

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago