• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/21

Click to flip

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;

21 Cards in this Set

  • Front
  • Back
What is the first step in the compilation process?
What is the output?
Lexical Analyzer ("Lexer")
Token stream
What is the second step in the compilation process?

What is the output
Parser
I: Stream of tokens
O: Parse Tree / Abstract Syntax Tree
What is the last stage in the compilation process?
Semantic Analyzer
-think type checking
Variable Declaration
Declare a type for a variable
Variable Definition
Assign a value to a variable
What is the first type of pointer problem?
Bad pointer-pointer declared but not initialized with a memory address.
What is the second type of pointer problem.
Dangling pointer-dynamic allocation deallocated but a pointer somewhere still references it.
What is the third type of pointer problem?
Lost heap dynamic variable - "memory leak." Pointer assigned to another address and original address lost. Space for that original address is never deallocated.
What is "Implicit Scaling"
A compiler automatically adjusts the reference of an address based on the size of the data type.
What is a binding?
A binding is an association between an attribute and an entity.
Initialization
The binding of a variable to a value at the time it is bound to storage.
What is an l-value?
The memory address of a variable
What is a r-value?
The contents of a memory address of a variable
Blocks
Create a static scope inside program unit (ie the int i inside a for loop).
What is the first design issue of an array?
What types are legal for subscripts?
What is the second design issue of an array?
What is the maximum number of dimensions?
What is the third design issue of an array?
Range checking?
What is the fourth design issue of an array?
How are array object initialized? i.e. how are the values in the array stored in memory?
What is the fifth design issue of an array?
Are slices allowed?
What is the sixth design issue for an array?
When are subscript ranges bound?
What is the seventh design issue for an array?
When does allocation take place?