Shared Flashcard Set

Details

python terminology
python terminology
18
Computer Science
Undergraduate 1
01/12/2012

Additional Computer Science Flashcards

 


 

Cards

Term
What is an object as it relates to its identity?
Definition
An object has an identity that never changes such a string type and a value that may change if the object's type is mutable.
Term
What does mutable mean?
Definition
Changable
Term
Are strings mutable?
Definition
No.
Term
What is a literal string?
Definition
Something that is delimited by single quotations such as ('Cactus')
Term
A function is a group of statements that can be organized into a ____ unit
Definition
re-usable
Term
A function call executes what?
Definition
The group of statements that are organized by the function.
Term
Define function call
Definition
It has a name followed by parantheses.
Term
Give two examples of function calls.
Definition
print(), input()
Term
What do expression statements do?
Definition
An expression statement such as print() can call a function that does not compute a useful result.
Term
How do you find an argument?
Definition
They are enclosed in parantheses after the function name print('cactus')
Term
The print built in function shows what kinds of arguments?
Definition
String arguments, and they are printed on the display followed by a new line.
Term
What does input() do?
Definition
It displays its argument as a prompt string on the screen, and it reads a line of input, and it returns the input as a string object.
Term
What does a name refer to?
Definition
An object
Term
What is an assignment statement?
Definition
A variable binds to the object that is returned from the function call, so that it can be used later.
Term
What is dereferencing?
Definition
After a variable is bound to an object, it can be dereferenced to obtain the object(perhaps what the user typed).
Term
What does the + do?
Definition
It is an operator that can be used to concatenate two string operands together to create a new string.
Term
Give an example of an assignment statement.
Definition
myName = 'Joe'
Term
Give an example of kinds of names.
Definition
function --> print, function --> input, or a variable such as myName =
Supporting users have an ad free experience!