Quiz: Write Your Own Commands (Functions)

Test your understanding of function creation, usage, and return types in C++.

In the last lesson, you learned how to write your own functions in C++. You used void functions to perform tasks and return-type functions to send back values, all while organizing your code into neat, reusable blocks.

Let’s go through a quick quiz to make sure you’ve locked in how functions work.

Get hands-on with 1400+ tech skills courses.