Presentation is loading. Please wait.

Presentation is loading. Please wait.

The University of Texas – Pan American

Similar presentations


Presentation on theme: "The University of Texas – Pan American"— Presentation transcript:

1 The University of Texas – Pan American
CSCI/CMPE 4341 Topic: Programming in Python Chapter 9: Python XML Processing – Exercises Xiang Lian The University of Texas – Pan American Edinburg, TX 78539

2 Objectives In this chapter, you will do some exercise about:
Graphical User Interfaces (GUIs) in Python Python XML processing

3 Multiple Choices Labels are defined with class ____, which is a subclass of Widget A. Labels B. Label C. TextBox D. Text Text Box display texts and can be defined by ___ class. A. TextBox B. Button C. Entry D. Checkbutton Method _____displays text in a text box. A. enter() B. insert() C. display() D. toString() Method _____ displays a message dialog. A. display() B. method() C. showinfo() D. messageBox() A _____ is a component that the user clicks to trigger an action. A. Textbox B. Entry C. Label D. Button

4 Multiple Choices (cont'd)
In XML, _____ help avoid naming collisions. A. naming conventions B. inheritances C. namespaces D. data declarations The tags of XML data are enclosed by: A. { } B. < > C. [ ] D. ( ) Each end tag of XML data contains ____ character. A. \ B. // C. / D. & An XML document can contain _____ tags. A. only B. < C. >=1 D. None of the above

5 True/False Statements
All tkinter classes inherit from Frame. A Label displays only text. The Entry component creates multiple-line text areas. The CheckBox component creates a check box in the window. Event <Enter> handles the event in which a mouse is clicked.

6 True/False Statements (cont'd)
XML data are not case sensitive. An XML document may contain only one root element. XML is a programming language. XML is a formatting language. XML documents must have the .xml extension.


Download ppt "The University of Texas – Pan American"

Similar presentations


Ads by Google