Question: question 12and3 Exercises (No programming is required. Your submission should be a word or pdf document) Question 1: (2 Marks) When arguments are passed between
question 12and3 Exercises (No programming is required. Your submission should be a word or pdf document) Question 1: (2 Marks) When arguments are passed between the calling code and the called function, parameters and their corresponding arguments are matched by: a. their data types b. their relative positions in the parameter and argument lists c. their names d. whether they are inputs to or outputs from the function e. alphabetical order Question 2: (2 Marks) The scope of a function parameter is identical to the scope of a local variable declared in the outermost block of the function body. a. True b. False Question 3: (2 Marks) If a variable v is accessible only within a function named "foo", then v is either a. b. c. d. e. a global variable or a parameter of foo. a local variable within foo or a formal parameter of foo. a local variable within foo or an argument to foo. a global variable or an argument to foo. a static variable. Question 4: (2 Marks) Let, fun be a function defined as follows
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
