Ask Question
21 January, 11:23

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)

+5
Answers (1)
  1. 21 January, 11:32
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers