Ask Question

Which statement will call this module and pass 12 as the argument?

Module showValue (Integer quantity)

Answer

a) Call showValue (Integer)

b) Call showValue (12)

c) Call showValue (Integer 12)

d) Call showValue (Real)

+2
Answers (1)
  1. 18 May, 06:33
    0
    Call showValue (12)

    Explanation:

    The function is a block of the statement which performs the special task.

    if you define the function, then you have to call that function.

    Then, program control moves to the function and start to execute otherwise not execute the function.

    the syntax for calling the function:

    name (argument_1, argument_2, ...);

    we can put any number of arguments in the calling.

    check the options one by one for finding the answer:

    Call showValue (Integer) : this is valid calling but it passes the variable, not the 12. this is not correct.

    Call showValue (Integer 12) : This is not valid calling, because it passes the data type as well which is incorrect.

    Call showValue (Real) : this is valid calling but it passes the variable, not the 12. this is not correct.

    Call showValue (12) : this valid calling and also pass the value 12.

    Therefore, the correct answer is option b.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which statement will call this module and pass 12 as the argument? Module showValue (Integer quantity) Answer a) Call showValue (Integer) ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers