Lists and Dictionaries
GUIs!
Objects and Classes
Modules
pygame Graphics
and Sound
100
This operator "glues" two lists together.
What is the concatenation (+) operator?
100
This easyGUI function allows a user to input text.
What is easygui.enterbox()?
100
Objects collect these two items together.
What are functions/methods and data/attributes/properties?
100
To use modules in another Python script, you must first _______ the module.
What is import?
100
To keep a pygame program running, it must include this.
What is an event loop?
200
This list operation reorders a list into a set order.
What is sort()?
200
This easyGUI function prints a message in a box.
What is easygui.msgbox()?
200
To access a property or method of a object, you put this operator between the object variable name and the property/method name.
What is the dot operator?
200
This module allows you to choose random numbers.
What is random?
200
After importing pygame, and before you call any additional pygame functions, you must first enter this command.
What is pygame.init()?
300
Python dictionaries retrieve values using this.
What is a key/index?
300
To create or edit a GUI using PythonCard, you use this program.
What is PythonCard Resource Editor?
300
These two steps are required to create an object.
What are define a class then instantiate the class?
300
To access advanced mathematical operations, like square root (sqrt()), you must first import this module.
What is math?
300
To create sound using pygame, you can use this pygame module.
What is pygame.mixer?
400
This list operation returns a contiguous subset of list elements.
What is slice?
400
In a PythonCard GUI, the individual buttons, check boxes, etc... are called this.
What is a component?
400
This commonly used variable name, referred to as the instance reference, tells a class which object called the method.
What is self?
400
Python modules written in Python have this file extension.
What is .py?
400
To set the sound volume using pygame, you set the volume by setting a number between these two values.
What are 0 and 1?
500
This dictionary function returns a list of all keys stored in the dictionary.
What is .keys()?
500
PythonCard event handlers always take these two parameters.
What are self and event?
500
This built-in class method creates a class instance and sets the default properties.
What is __init__(self)?
500
This term describes a container that provides context for the identifiers (properties and methods) it holds, and allows the disambiguation of homonym identifiers.
What is a namespace?
500
To reduce the complexity of collision detection between multiple sprites in pygame, it is recommended that you collect sprites together using this pygame sprite class.
What is pygame.sprite.Group()?