Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Login

Register Now

Welcome to All Test Answers

Gaddis Python 2e Chapter 14


 

Download  file with the answers

If you are not a member register here to download this file 


 

Chapter Fourteen

MULTIPLE CHOICE

1. What are the items that appear on the graphical interface window called?
a. Buttons
b. Icons
c. Widgets
d. Graphical elements

ANS: C

2. What types of programs are event-driven?
a. GUI programs
b. Command line programs
c. Procedural programs
d. Modular programs

ANS: A

3. Which widget allows the user to select a value by moving a slider along a track?
a. Entry
b. Scale
c. Scrollbar
d. Slider

ANS: B

4. The Toplevel widget is a container, like a(n) _____, but displays in its own window.
a. Label
b. Frame
c. Canvas
d. Message

ANS: B

5. Which widget will display multiple lines of text?
a. Label
b. Canvas
c. Message
d. Text

ANS: C

6. Which widget will create an area that displays one line of text or an image?
a. Label
b. Frame
c. Canvas
d. Message

ANS: A

7. Which widget will create a rectangular area that can be used to display graphics?
a. Label
b. Frame
c. Canvas
d. Message

ANS: C

8. In Python, what module is used to create a GUI program?
a. tkinter
b. Pgui
c. gint
d. pygui

ANS: A

9. In which environment can a user determine the order in which things happen?
a. Command line
b. GUI
c. ALU
d. CPU

ANS: B

10. In a GUI environment, most interactions are done through small windows known as _____ that display information and allow the user to perform actions.
a. input boxes
b. windows
c. dialog boxes
d. message boxes

ANS: C

11. In which type of interface is a prompt displayed that allows the user to enter a command, which is then executed?
a. Command line
b. GUI
c. ALU
d. CPU

ANS: A

12. The _____ accepts the user’s commands.
a. register
b. CPU
c. operating system
d. ALU

ANS: C

13. With what part of the computer does the user interact?
a. Graphical unit
b. User interface
c. Register
d. CPU

ANS: B

14. How many graphical widgets does the tkinter module provide?
a. Five
b. Ten
c. Fifteen
d. Twenty

ANS: C

15. The acronym GUI stands for:
a. Graphical User Interface
b. Graphical Unit Interface
c. Graphical User Interaction
d. Graphical Users’ Interface

ANS: A

TRUE/FALSE

1. True/False: Python does not have GUI programming features built into the language itself.

ANS: T

2. True/False: Programs that use tkinter do not always run reliably under IDLE.

ANS: T

3. True/False: A root widget’s destroy method can be used as a callback function for a quit button.

ANS: T

4. True/False: Using the radio buttons, the user can make multiple selections at one time.

ANS: F

5. True/False: Check buttons are displayed in groups and used to make mutually exclusive selections.

ANS: F

6. True/False: Many computer users find a command line interface relatively easy to use.

ANS: F

7. True/False: In a GUI environment, no text input is possible.

ANS: F

8. True/False: The pack method determines where a widget should be positioned.

ANS: T

9. True/False: An info dialog box is a simple window that displays a message to the user and has an OK button that closes the dialog box.

ANS: T

10. True/False: To use the showinfo function, the tkinter.messagebox module needs to be imported.

ANS: T

FILL IN THE BLANK

1. A(n) _______________ allows the user to interact with the operating system and other programs through graphical elements on the screen.

ANS: GUI

2. The GUI popularized the use of the _______________ as an input device.

ANS: mouse

3. _______________ are small windows that display information and allow the user to perform actions.

ANS: Dialog boxes

4. GUI programs respond to the actions of the user, and so they are called _______________ programs.

ANS: event-driven

5. The _______________ module allows you to create GUI programs in Python.

ANS: tkinter

6. The _______________ widget is used to display text in a window.

ANS: Label

7. The Label widget’s _______________ method determines where a widget should be positioned and makes the widget visible when the main window is displayed.

ANS: pack

8. A(n) _______________ is a container that can hold other widgets and organize the widgets in a window.

ANS: Frame

9. A(n) _______________ function is a function or method that executes when the user clicks the button.

ANS: callback

10. A(n) _______________ is a widget that the user can click to cause an action to occur.

ANS: Button

About

Leave a reply

Captcha Click on image to update the captcha .

error: Content is protected !!