Difference between revisions of "WebFund 2013W Lecture 6"

From Soma-notes
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Topics:
Topics:
* git
* git
* Functions in JavaScript (Chapter 4 in Crawford).
* 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 the constructor invocation pattern, a function returns what value if there is no explicit return statement? (one word)
# In the function invocation pattern, <tt>this</tt> is bound to which object? (one word)
# The apply function invocation pattern does not allow you to set the value of <tt>this</tt>. (true/false)
# The use of <tt>that</tt> is to get around the limitations of the function invocation pattern. (true/false)
# 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 <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 <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 <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)
# When an exception is thrown in JavaScript with <tt>throw</tt> and handled with a <tt>try/catch</tt> statement, what is the type of the exception message (i.e., the type of the parameter to the <tt>catch</tt> clause)? (one word)
# Augmenting a built-in type in JavaScript uses the same syntax as adding a method to a regular object. (true/false)
# Augmenting a built-in type in JavaScript uses the same syntax adding a method to a regular object. (true/false)
# Current versions of JavaScript are tail recursive. (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)
# 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)
# 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)
# 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)