C++ Exam 2 Q&A
This is a collection of statements that performs a specific task. A) infinite loop B) variable C) constant D) function E) None of these - Answer- Function. A function ________ contains the statements that make up the function. A) definition B) prototype C) call D) expression E) parameter list - Answer- Definition. A function can have zero to many parameters, and it can return this many values. A) zero to many B) no C) only one D) a maximum of ten E) None of these - Answer- Only one. A function is executed when it is: A) defined B) prototyped C) declared D) called E) None of these - Answer- Called. In a function header, you must furnish: A) data type(s) of the parameters B) data type of the return value C) the name of function D) names of parameter variables E) All of these - Answer- Names of parameter variables. Functions are ideal for use in menu-driven programs. When a user selects a menu item, the program can ________ the appropriate function. A) call B) prototype C) define D) declare E) None of these - Answer- Call.
Document information
- Uploaded on
- September 5, 2023
- Number of pages
- 23
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers