When is a return statement required inside a function?

A. Every function must include at least one return statement.
B. When you use a switch statement.
C. When a return datatype (other than void) is included in the function prototype.
D. Inside an if-else statement.


C. When a return datatype (other than void) is included in the function prototype.

Computer Science & Information Technology

You might also like to view...

What is the function used to randomly choose an element from an array?

a. first item from list b. it item from list c. random item from list d. random number e. None of these

Computer Science & Information Technology

control’s Background property is a customizable ________ object.

a) Color b) BackColor c) GUIcolor d) None of the above

Computer Science & Information Technology

The feature of modular programs that allows individual modules to be used in a variety of applications is known as ____.

A. reusability B. readability C. reliability D. consistency

Computer Science & Information Technology

The Top Values query property allows the user to limit the number of records in the query results by using a preset value, by entering an integer, or by selecting a(n) ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology