WebFund 2013W Lecture 6

From Soma-notes
Revision as of 12:00, 24 January 2013 by Soma (talk | contribs) (→‎Questions)
Jump to navigation Jump to search

Topics:

  • git
  • Functions in JavaScript (Chapter 4 in Crawford).


Questions

  1. In the method invocation pattern, a function returns what value if there is no explicit return statement? (one word)
  2. In the constructor invocation pattern, a function returns what value if there is no explicit return statement? (one word)
  3. In the function invocation pattern, this is bound to which object? (one word)
  4. The apply function invocation pattern does not allow you to set the value of this. (true/false)
  5. The use of that is to get around the limitations of the function invocation pattern. (true/false)
  6. In git, which is the term used for making a local copy of a remote repository, branch, clone, or fork? (one word)
  7. In git, pushes to the main repository can be dangerous because they can cause file conflicts, add unwanted changes, and cannot be easily undone. (true/false)
  8. When an exception is thrown in JavaScript with throw and handled with a try/catch statement, what is the type of the exception message (i.e., the type of the parameter to the catch clause)? (one word)
  9. Augmenting a built-in type in JavaScript uses the same syntax adding a method to a regular object. (true/false)
  10. Current versions of JavaScript are tail recursive. (true/false)
  11. Read access to unqualified symbols are resolved by looking at the symbols defined in the inner most function context outward until the global function context is reached. (true/false)
  12. Read access to object properties are resolved by looking at the object's properties and then by looking at the chain of objects pointed to by the objects on the prototype chain. (true/false)