Karteikarten
Programming Theory Test 2
Karten in diesem Stapel (23)
- 1Imperative languagesAbstractions of von Neumann architecture
- 2AbstractionsIn a language for the memory cells of the machine are variables
- 3Variables are characterized by ?Attributes
- 4Most important attribute of a veriableType
- 5To design a type what must be considerdScope
Lifetime
Type checking
Initialization
Type Compatibility - 6Variable NameA string of characters used to identify some entity in a program
- 7Keyworda word that is special only in certain contexts:
Integer Apple - Integer is a data type and therefore, it is a keyword - 8Reserved worda special word that cannot be used as a user-defined name
- 9Are reserved words better than keywords?Yes as a language design choice, reserved words are better than keywords because the ability to redefine keywords can be confusing
- 10A variable is an abstraction of a memory cell. What is the sextuple of attributes that characterize a variableName
Address
Value
Type
Lifetime
Scope - 11Do all variables have a name?No
- 12Addressthe memory address with which it is associated
- 13l-valuethe address of a variable
- 14AliasesIf two variable names can be used to access the same memory location
- 15Typedetermines the range of values of variables and the set of operations that are defined for values of that type, in the case of floating point, type also determines the precision
- 16Valuethe contents of the location with which the variable is associated
- 17r-valuevalue of a variable
- 18Bindingan association between an entity and an attribute such as:
between a variable and its type or value
between an operation and a symbol - 19Binding timethe time at which a binding takes place
- 20Scope of a bindingthe part of the program in which the binding is active
- 21static bindingfirst occurs before run time and remains unchanged throughout program execution
- 22dynamic bindingfirst occurs during execution or can change during execution of the program
- 23—
Informationen
- Beschreibung
- Karteikarten am Programming Theory Test 2, erstellt von Thomas Scott am 24/03/2019.
- Erstellt von
- Thomas Scott
- Aufrufe
- 0
- Bewertung