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;
22 Cards in this Set
- Front
- Back
Which translation mechanism completely converts source code to machine language before it is executed?
|
Compiler
|
|
Which translation mechanism converts source code to machine language as it is executed?
|
Interpreter
|
|
What is found in the parantheses of a function call?
|
Arguments
|
|
What is found in the parantheses of a function definition?
|
Parameters
|
|
What is the result of:
(x and not x) or (not y or y) |
1
|
|
Which number format starts with "0b"?
|
Binary
|
|
Which number format starts with "0x"?
|
Hexadecimal
|
|
Which number format starts with "0"?
|
Octal
|
|
What data type is x?
x = ("128",) |
Tuple
|
|
What is a combination of values, variables, operators and functions that are interpeted according to the particular rules of precedence and the rules of association for a particular programming language?
|
Expression
|
|
Given x=["123"] what data type will input return?
|
List
|
|
Given x=["123"] what data type will raw_input return?
|
String
|
|
A function definition is an example of ___ and a function call is and example of ___.
|
Function def - encapsulation
Function call - abstraction |
|
The code on the right side of an assignment operator is referred to as?
|
Expression
|
|
Given x=[0,1,2,3,4,5]
What would x[2:len(x):3] resolve to? |
[2,5]
|
|
In the function call (func(y=25)), the variable y is referred to as what type of argument?
|
Keyword
|
|
(from math import pi) would enable what expression?
math.pi**2, x=math.pi**2, pi**2, x=pi**2 |
pi**2
|
|
A dictonary structure is: immutable, mapping, or sequential?
|
Mapping
|
|
Which is not an acceptable data type for use as a dictionary key: int, string, tuple, list?
|
List
|
|
Given (x={1,1,2,3,3]), what would (len(x)) return?
|
3, because a set cannot have duplicates
|
|
readline() returns what from a file?
|
A single line as a string
|
|
What method moves the file pointer to a specified position in a file?
|
Seek
|