Look at the following pseudocode module header: Module myModule (Integer a, Integer b, Integer c) Now look at the following call to myModule: Call myModule (3, 2, 1) When this executes, what value will be stored in a? What value will be stored in b? What value will be stored in c?

Respuesta :

Answer:

"3, 2 and 1" is the correct answer for the above question.

Explanation:

  • The module or function is used to some task for which it is designed. This task is defined in the body of the module at the time of definition.
  • Some functions or modules are parameterized based, which means that this type of function takes some value to process any task.
  • The above-defined module also takes three values to process, a,b and c. this value is passed at the time of calling 3,2 and1.
  • The three are passed as the first value which is assigned for the a variable because the a variable is the first argument of the function.
  • The two are passed as the second value which is assigned for the b variable because the b variable is the second variable which is defined as the second argument of the function.
  • The one is passed as the third value which is assigned for the c variable because the c variable is the third variable which is defined as the third argument of the function.
  • Hence the answer is a=3, b=2 and c=1.