Shared Flashcard Set

Details

PL
Chapter 5
20
Computer Science
Not Applicable
04/25/2007

Additional Computer Science Flashcards

 


 

Cards

Term
Issues with names
Definition
case sensitivity, characters, keywords, length
Term
keywords
Definition
know in context, but used elsewhere
Term
reserved
Definition
can't be used anywhere else
(better and less confusing)
Term
Danger of case sensitive names
Definition
easy to confuse, violates syntax consistency
Term
Alias
Definition
more than one variable for same memory location
Term
l-value
Definition
address value (think l = location)
Term
r-value
Definition
variable value
Term
4 major binding times
Definition
compile, load, link, run-time
Term
static bind
Definition
before run and no changes
Term
dynamic binding
Definition
at run-time can change
Term
Implicit Typing Pros/Cons
Definition
pro: highly flexible
con: compilier can't help you (sorry bud)
Term
coersion
Definition
1. implicitly done
2. info preserving
Term
lifetime
Definition
time during which the variable is bound to be a specific memory location
Term
type error:
Definition
appliation of operator to inappropriate operand
Term
type checking
Definition
activity of ensuring that the operands of an operator anre of compatible types
Term
Strongly typed
Definition
all types know and checked at compile, each name has a single type (no changes)
Term
scope
Definition
range of statements in which the name is valid
Term
static scope issues
Definition
too much data access, everyone has main variable, rigid
Term
referencing environment
Definition
all variables that are visible in that statement
Term
pros and cons of dynamic scoping
Definition
con: no protection, all have access, difficult to read, slower

pro: no need to pass parameters
Supporting users have an ad free experience!