wtmhahagd

partial answer key

May 2nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. PROGRAMMING LANGUAGES - questions
  2.  
  3. what are the four types of programming languages? - imperative, OO, functional, logic
  4. what is a token? - smallest meaningful unit of code
  5. what is a grammar? - ways tokens can be arranged
  6. what is an ambiguous grammar? - when a string of tokens can be generated multiple ways
  7. what is a binding? - association between a name and a thing
  8. what is a scope? - portion of code where binding is active
  9. what effect does early / late binding time have? - earlier = faster, later = slower but more flexible
  10. do compiled languages have early or late binding? interpreted? - compiled = earlier, interpreted = later
  11. when might you deactivate a binding? - if you enter another scope that has a local duplicate name
  12. what is a lifetime? garbage? a dangling reference? - a binding's created to destroyed time / object with no binding / binding with no object
  13. what data structures store data associated with scopes? (two of them) stack frames / symbol table.
  14. how do you draw static and dynamic links? what do you use which for?
  15. what is static scoping? dynamic scoping?
  16. what is the difference between expressions and statements?
  17. what is a side effect?
  18. what is short-circuiting?
  19. what's the difference between x++ and ++x?
  20. what is dangling else / strategies for resolving it?
  21. what kind of loop can be optimized / how?
  22. why is recursion a little inefficient w.r.t the stack?
  23. what optimization can be done for a certain type of recursion?
  24. what kinds of argument evaluation are there?
  25. what are two ways of doing object equivalence?
  26. what is coercion?
  27. what is strong typing? static typing? dynamic typing?
  28. what is polymorphism?
  29. what is orthogonality?
  30. what is a universal reference type?
  31. what is a record / structure?
  32. how is the data in a structure stored?
  33. what addressing rules may apply and what does this mean for the data in a structure?
  34. what is a variant structure?
  35. how are multidimensional arrays stored?
  36. what is a dope vector?
  37. where may arrays of constant dimension / variable dimension be allocated?
  38. what is dereferencing?
  39. what is a dangling reference?
  40. what are three garbage collection algorithms?
  41. what two pointers are used for function calling?
  42. what is inline expansion?
  43. what's the difference between call by value and call by reference?
  44. what are read-only parameters? named parameters? default parameters?
  45. what are generic subroutines? what are ways they may be implemented?
  46. what are exceptions?
  47. what are coroutines? what kind of stack do they make?
  48. what is an event handler?
  49. what are three principles of OO?
  50. what are three visibility levels?
  51. what does declaring a function as virtual mean (in languages with this)?
  52. what is a pure virtual function?
  53. what is an abstract class?
  54. what is the diamond problem?
  55. what is dynamic method binding?
  56. what data structure is used to implement dynamic method binding?
  57. what do functional languages NOT have?
  58. what do functional languages use in place of iteration?
  59. what is special about functions in functional languages?
  60. what is a Horn clause? what are the two parts?
  61. what is a query?
  62. what is a structure (in functional languages)?
  63. what is arity?
Add Comment
Please, Sign In to add comment