142k views
5 votes
Select the two true statements about functions with parameters:

A) Parameters can only be used once within the body of a function.
B) Functions with parameters can be used to prevent the creation of duplicated code.
C) Parameters help generalize the solution of a specific problem.
D) Values do not need to be provided to a function with parameters in any particular order.

1 Answer

3 votes

Answer:

Option (B) and (C) is the correct option to the following question.

Step-by-step explanation:

Because the function is the module of the program and we call that function again and again anywhere whenever we need that function in the program.

Function is used to carry out any operation which is used in the program many times and it creates the program short and simple.

For example: if we need to add or multiply two numbers many times in the program then, we create one or two functions for addition and subtraction or one program for both, when we need them we call them.

User KSS
by
5.9k points