Shared Flashcard Set

Details

CSC119
Final Exam Multiple Choice
35
Computer Science
Undergraduate 1
12/12/2016

Additional Computer Science Flashcards

 


 

Cards

Term
Program Routine
Definition
A named group of instructions that accomplishes some task
Term
Invoked
Definition
A routine may be invoked/called as many times as needed in a given program
Term
Function
Definition
Python's version of a program routine
Term
Actual Arguments
Definition
Also Known As "arguments" which are the values passed to functions to be operated on
Term
Formal Parameters
Definition
AKA "Parameters" which are the placeholder names for the arguments passed
Term
Value-Returning Function
Definition
A program routine called for its return value, and is therefore similar to a mathematical function
Term
Side-Effect
Definition
An action other than returning a function value, such as displaying output on the screen
Term
Non-Value-Returning Function
Definition
A function called for its side effects and not for a returned function value
Term
Order
Definition
Correspondence of actual arguments and formal parameters is determined by the order of arguments passed and not their names
Term
Default Argument
Definition
An argument that can be optionally provided in a given function call. When not provided, corresponding parameter provides a default value
Term
Local Variable
Definition
Variable that is only accessible from within the function it resides.
Term
Global Variable
Definition
Variable defined by outside of any function definition. Bad programming practice
Term
Object
Definition
Contains set of attributes stored in set of instance variables and set of functions called methods that provide its behavior
Term
Reference
Definition
Value that references or points to location of another entity.
Term
Dereferenced Value
Definition
Value a reference points to
Term
Garbage Collection
Definition
A method of determining which locations in memory are no longer in use
Term
Built-In Function
Definition
Variable's reference value that can be determined with this ID
Term
Reference Value
Definition
When one variable is assigned to another, it is this value that is assigned.
Term
Shallow Copy
Definition
Elements within each list are not copied
Term
Deep Copy
Definition
This operation makes a complete copy of a list
Term
Module
Definition
Refers to design/implementation of specific functionality to be incorporated into a program
Term
Module Interface
Definition
Specification of what it provides and how it is to be used
Term
Client
Definition
Any program code making use of a given module
Term
Docstring
Definition
A string literal denoted by triple quotes used in Python for providing specification of certain program elements
Term
Python Module
Definition
File containing Python definitions and statements
Term
Standard (Built-In) Modules
Definition
Python Standard Library contains set of these modules
Term
NameSpace
Definition
Provides context for set of identifiers
Term
NameClash
Definition
When two otherwise distinct entities with same identifier becomes part of same scope
Term
Main Module
Definition
Identified as first "top-level" module executed
Term
From-Import
Definition
With this form of import, imported identifiers become part of importing module's namespace. Preferred form of import in Python
Term
Module Private Variables
Definition
All variables in Python are public. Variables beginning with 2 underscores are intended to be private
Term
write() method
Definition
Used to output text to a file
Term
close() method
Definition
Call this method to close the file after all info has been written
Term
Try Suite/Try Block
Definition
Block of code surrounded by try and except headers
Term
Exception Handler
Definition
Suite following the except header.
Supporting users have an ad free experience!