Difference between revisions of "WebFund 2013W Lecture 6"

From Soma-notes
Jump to navigation Jump to search
(Created page with "==Questions== # In the method invocation pattern, a function returns what value if there is no explicit <tt>return</tt> statement? (one word) # In the constructor invocation ...")
 
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Topics:
* git
* Functions in JavaScript (Chapter 4 in Crockford).
Audio for the lecture on January 24, 2013 is [http://homeostasis.scs.carleton.ca/~soma/webfund-2013w/comp2406-2013w-lec6-24Jan2013.m4a here].
==Questions==
==Questions==
# In the method invocation pattern, a function returns what value if there is no explicit <tt>return</tt> statement?  (one word)
# In <tt>git</tt>, which is the term used for making a local copy of a remote repository, <tt>branch</tt>, <tt>clone</tt>, or <tt>fork</tt>? (one word)
# In the constructor invocation pattern, a function returns what value if there is no explicit return statement? (one word)
# In <tt>git</tt>, pushes to the main repository can be dangerous because they can cause file conflicts, add unwanted changes, and cannot be easily undone. (true/false)
# In the function invocation pattern, <tt>this</tt> is bound to which object? (one word)
# Augmenting a built-in type in JavaScript uses the same syntax as adding a method to a regular object. (true/false)
# The apply function invocation pattern does not allow you to set the value of <tt>this</tt>. (true/false)
# 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)
# The use of <tt>that</tt> is to get around the limitations of the function invocation pattern. (true/false)
# 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 <tt>prototype</tt> chain. (true/false)

Latest revision as of 15:43, 24 January 2013

Topics:

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

Audio for the lecture on January 24, 2013 is here.

Questions

  1. In git, which is the term used for making a local copy of a remote repository, branch, clone, or fork? (one word)
  2. 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)
  3. Augmenting a built-in type in JavaScript uses the same syntax as adding a method to a regular object. (true/false)
  4. 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)
  5. 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)