Functions – Yes / No Questions

1. Functions cannot return a floating point number

A. Yes
B. No

Correct Answer: B. No

2. Every function must return a value

A. Yes
B. No

Correct Answer: B. No

3. If a function contains two return statements successively, the compiler will generate warnings. Yes/No ?

A. Yes
B. No

Correct Answer: A. Yes

4. Maximum number of arguments that a function can take is 12

A. Yes
B. No

Correct Answer: B. No

5. Will the following functions work?

Screenshot 4

A. Yes
B. No

Correct Answer: A. Yes

Leave A Comment?

2 × four =