The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
I need help for this 5 questions :( Please help me as soon as possible :(Â
Â
Â
1/31/2017 Quizzes  CPSCÂ1045Â003 Â004  Intro. to Web Programming  Langara College Question 1 (1 point)
Which of the following is a primary goal of functions? Data Abstraction
Confuse Students
Procedural Abstraction
Increase Complexity
Save Question 2 (1 point)
Which of the following statements best describes a function parameter. A vaule that cannot be changed by the
function.
A local variable whose value is set by code
oustide the function.
A special data type used only in functions.
A global variable accessible thorughout the
program.
Save Question 3 (1 point)
Given the following JS code:
var a;
function bar( b ) { var c; ...
}
function foo( d ) { var e; bar( e ); ...
}
Which varaibles are accessible within function foo? (Select all that apply). a b c d e Save Question 4 (1 point) Which of the following correctly describes what a funciton is or does? [Select all that apply] A function defines a local scope for its
variables.
A function is a value of type "function".
A function hides the complexity of an
algorithm behind a name.
A function is a small program that does a
computation with its input to produces an
output.
Save Question 5 (1 point) Which of the following accurately describe or are examples of "pure"
functions? [Select all that apply] https://d2l.langara.bc.ca/d2l/lms/quizzing/user/attempt/quiz_start_frame.d2l?ou=81452&isprv=&drc=0&qi=110631&cfql=0&dnb=0 1/2 1/31/2017 Quizzes  CPSCÂ1045Â003 Â004  Intro. to Web Programming  Langara College A function which has been "beautified" with
perfect indentation.
Math.sqrt( x )
A function that passes JSHint with no errors.
prompt( msg )
document.write( msg )
A function with no sideÂeffects. https://d2l.langara.bc.ca/d2l/lms/quizzing/user/attempt/quiz_start_frame.d2l?ou=81452&isprv=&drc=0&qi=110631&cfql=0&dnb=0 2/2
-----------