Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
38 Cards in this Set
- Front
- Back
A non-programming-language-specific characterization of a set of ordered steps for solving a problem
|
Pseudocode
|
|
Reserved words that form a construct of the language
|
keywords
|
|
type("128") resolves to?
|
<type 'str'>
|
|
Which is a long integer:
987654321 25.5L 0xFFFF 0L |
0L
|
|
A list is a ___ data structure and a string is a ___ data structure.
(options: immutable/mutable) |
mutable, immutable
|
|
What is produces when this is executed?
x = "Sum = " y = 45 + 50 print "%s%d" % (x,y) (options: typeError, sum = 95, sum = 45 + 50, %s%d) |
Sum = 95
|
|
Identifiers listed in the parentheses of a function def are called?
|
formal paramaters
|
|
Identifiers listed in the parentheses of a function call are called?
|
arguments
|
|
range (0,30,5)
|
[0,5,10,15,20,25]
|
|
(func(y=25)), the var y is what type of argument?
|
keyword argument
|
|
from math import pi, would enable?
math.pi ** 2 x = math.pi ** 2 pi ** 2 x = pi ** 2 |
pi ** 2
|
|
A dictionary structure falls into which of the following data structure categories?
(options: immutable, mapping, sequential, all of the above) |
mapping
|
|
Which is not an acceptable data type for use as a dictionary key?
(options: int, string, tuple, list) |
list
|
|
x = {1,1,2,3,3}, what would function call len(x) return?
|
3, can not have duplicates
|
|
readline() does what?
|
Reads a single line as a string
|
|
The asynchronous interaction between a user and components of a GUI application basically defines: event driven programming, obj oreinted programming, class based programming?
|
event driven programming
|
|
The placement of components in a GUI container is managed via?
|
a layout strategy
|
|
The class method that returns the current value of obj attributes is?
|
state method
|
|
Which defers to a TypeError exception?
except ValueError, e: except: except Exception, e: all of the above |
all of the above
|
|
What exception is raised if the interpretor encounters a var that has not ben defined?
|
NameError
|
|
The parent calls recommended to uses when implementing a custom exception class is?
|
Exception
|
|
A custom exception class may contain:
attributes constructer method state method all of the above |
all of the above
|
|
Which translation method completely transforms code before it is executed?
|
compiler
|
|
String data types are immutable/mutable?
|
immutable
|
|
Best resources for finding a list of python built in functions?
|
Library Reference
|
|
Reserved words that form a construct of the language?
|
keywords
|
|
What is found in the parentheses of a fucntion call?
|
arguments
|
|
What is found in the parentheses of a function def?
|
parameters
|
|
010101 is what number format?
|
Octal
|
|
0x is what number format?
|
hexadecimal
|
|
0b is what number format?
|
binary
|
|
x = ("128",) is what data type?
|
tuple
|
|
Tuples do not have ___, where as lists do.
|
order
|
|
A combination of values, vars, operators, and functioins that are interpeted according to the particular rules of precedence and the rules of association for a particular programming language
|
Expression
|
|
What data type is mutable and sequential?
|
Lists
|
|
A function def is an example of ___ and a function call is an example of ___.
|
encapsulation, abstraction
|
|
The code to the right side of an assignment operator is a?
|
expression
|
|
x = [0,1,2,3,4,5]
x[2:len(x):3) resolves to? |
[2,5]
|