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;
60 Cards in this Set
- Front
- Back
- 3rd side (hint)
What is python?
|
A high-level, general-purpose programming language
|
|
|
What is a float?
|
A less-accurate numerical value like a decimal
|
long number
|
|
What operation can be used in string?
|
ord to chr and vice versa
|
convert
|
|
a function is like a __________
|
subprogram
|
small program inside main program
|
|
What is the part of the program that creates a function?
|
Function Definition
|
def
|
|
A variable...
|
Parameter
|
|
|
What term refers to the places in a program that a given variable can be referenced?
|
Scope
|
Sniping...
|
|
What is the term for variables used inside a function?
|
Local Variable
|
|
|
A function is called by using its name followed by a list of _______
|
actual parameters
|
another name for "arguments"
|
|
when does the calling program suspend execution
|
at the point of the call
|
|
|
What function converts a numeric codes to the corresponding character?
|
the chr function
|
|
|
What function returns the numeric (ordinal) code of a single character?
|
the ord function
|
|
|
What term should be used to add an item to the end of a list?
|
the append term
|
|
|
What operator can be used to separate a string?
|
the split operator
|
spaces
|
|
What function is used to convert a string containing digits into a number?
|
the eval function
|
|
|
the split function produces a sequence of strings. what term gets each successive sub string?
|
numString
|
|
|
when calling a function that returns multiple values, what method should be used to properly carry out the return?
|
simultaneous assignment
|
|
|
What is the main way to send information from a function back to the caller?
|
return values
|
|
|
Parameters are always passed by ______
|
value
|
|
|
What operator is used to output a copy of a string that has the first letter capitalized?
|
s.capitalize()
|
|
|
What operator is used to output a copy of a string with the first character of each word capitalized?
|
s.title()
|
|
|
What operator is used to output a copy of a string with all characters capitalized?
|
s.upper()
|
|
|
What operator is used to center a string output in a field of given width?
|
s.center(width)
|
|
|
What operator is used to count the number of occurrences of a certain character in a string?
|
s.count(chr)
|
|
|
What operator is used to find the first position of a character in a string?
|
s.find(chr)
|
|
|
What character is used to concatenate a list of strings into one big string?
|
s.join(list)
|
|
|
what operator is used to input prompt from user string
|
input
|
|
|
What operator uses value from user
|
eval
|
|
|
What operator is used to replace occurrences of a character in a string with a new character?
|
s.replace(oldchr,newchr)
|
|
|
What operator uses to join two words together?
|
+
|
|
|
What is the process of encoding information for the purpose of keeping it secret or transmitting it privately?
|
encryption
|
|
|
What is the study of encryption methods?
|
cryptography
|
|
|
When is encryption used?
|
For transmission of credit card and other personal info through the web
|
|
|
Define Modern Computer
|
a machine that stores and manipulated information under control of a changeable program
|
|
|
What is a computer program?
|
a detailed step-by-step set of instructions for a computer to carry out.
|
|
|
What is computer science?
|
the study of algorithms, problem-solving, and computational process.
|
|
|
What is the question associated with computer science?
|
What can be computed?
|
|
|
What techniques are used by computer scientists to answer the question of what can be computed?
|
it is answered using techniques like design, analysis, and experimentation.
|
|
|
What is the function of the CPU?
|
to carry out all the basic operations of data including simple arithmetic operations
|
|
|
What are some examples of secondary memory?
|
hard drive, floppy, CD, DVD
|
|
|
in what order is the fetch-execute cycle
|
fetch, decode, execute
|
|
|
Define syntax
|
the precise form of language structure
|
|
|
Define semantics
|
the precise meaning of a language structure
|
|
|
What does a compiler do?
|
convert programs written in a high-level language to the machine language of a computer
|
|
|
What does an interpreter do?
|
simulate a computer that understands a high-level language, analyzes and executed then source code per instruction
|
|
|
Who created Python and what year?
|
Guido van Rossum, 1991
|
|
|
What is a program usually composed of?
|
a module or script or function
|
|
|
What is a "for" loop?
|
a command for python to repeat the same thing repeatedly. they are referred to as control structures
|
|
|
What is the software development process?
|
analyze problem (whats wrong?), determine specs (what will program do?), create design (how will it do it?), implement design (create program), test/debug, maintain the program
|
|
|
What is pseudocode?
|
precise English that describes what a program does per step and does not involve coding
|
|
|
What is an expression?
|
a fragment of code that produces or calculated new data values
|
|
|
What is the term for a specific value (like 1, 6, 9...)?
|
literal
|
"literally"
|
|
What is the purpose of an input statement?
|
to get information from a user to input into a variable
|
|
|
What are two data types?
|
decimal fractions and whole numbers
|
|
|
What is the abbreviation/nickname for a whole number?
|
integer or int
|
numeric literal without decimal
|
|
What is the abbreviation/nickname of a fraction decimal?
|
floating point or float value
|
a literal with a decimal point
|
|
when asked how many different arrangements are possible, what mathematical function is most useful?
|
factorial (6!)
|
woah!
|
|
Integers can be converted to floats by adding what?
|
add a " .0" at the end of any int to create a decimal/float
|
|
|
What is the term for controlling type conversion ?
|
explicit typing
|
|
|
Define "mutable" in strings
|
strings are "mutable", they cannot be changed
|
|