GoConqr has a new look! Let us know what you think.

Flashcards

Programming Theory Test 2

Thomas Scott English 23 cards

Cards in this deck (23)

  1. 1Imperative languagesAbstractions of von Neumann architecture
  2. 2AbstractionsIn a language for the memory cells of the machine are variables
  3. 3Variables are characterized by ?Attributes
  4. 4Most important attribute of a veriableType
  5. 5To design a type what must be considerdScope
    Lifetime
    Type checking
    Initialization
    Type Compatibility
  6. 6Variable NameA string of characters used to identify some entity in a program
  7. 7Keyworda word that is special only in certain contexts:
    Integer Apple - Integer is a data type and therefore, it is a keyword
  8. 8Reserved worda special word that cannot be used as a user-defined name
  9. 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
  10. 10A variable is an abstraction of a memory cell. What is the sextuple of attributes that characterize a variableName
    Address
    Value
    Type
    Lifetime
    Scope
  11. 11Do all variables have a name?No
  12. 12Addressthe memory address with which it is associated
  13. 13l-valuethe address of a variable
  14. 14AliasesIf two variable names can be used to access the same memory location
  15. 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
  16. 16Valuethe contents of the location with which the variable is associated
  17. 17r-valuevalue of a variable
  18. 18Bindingan association between an entity and an attribute such as:
    between a variable and its type or value
    between an operation and a symbol
  19. 19Binding timethe time at which a binding takes place
  20. 20Scope of a bindingthe part of the program in which the binding is active
  21. 21static bindingfirst occurs before run time and remains unchanged throughout program execution
  22. 22dynamic bindingfirst occurs during execution or can change during execution of the program
  23. 23—

Information

Description
Flashcards on Programming Theory Test 2, created by Thomas Scott on 24/03/2019.
Created by
Thomas Scott
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?