Functions – Yes / No Questions

1. Functions cannot return a floating point number

A. Yes
B. No

Correct Answer: B. No
Advertisement

2. Every function must return a value

A. Yes
B. No

Correct Answer: B. No
Advertisement

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

A. Yes
B. No

Correct Answer: A. Yes
Advertisement

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

A. Yes
B. No

Correct Answer: B. No
Advertisement

5. Will the following functions work?

Screenshot 4

A. Yes
B. No

Correct Answer: A. Yes
Advertisement

Leave A Comment?