61.8k views
3 votes
Which of the following is NOT true about functions? They go below the main program in the source code file. They do a single task - like a mini program. They are a collection of commands that are given a name. Their name describes what they do.

User Nam Nguyen
by
7.1k points

1 Answer

1 vote

Answer:

First-line i.e, "They go below the main program in the source code file" is the correct answer.

Step-by-step explanation:

A method is a set of instruction, that can be used in a program whenever we need, it can be divided into two parts user define and built-in. In user define method three-point are very important, that are method definition, declaration, and calling.

  • These types of methods should be declared and defined above the main method, and it calls inside the method.
  • It also known as a mini-program because it is used to perform a specific task.
  • Both users define and built-in is a collection of the commands.

User Blythe
by
7.3k points