18 Questions
What is the term for the ability to take more than one form?
Polymorphism
What is dynamic binding associated with?
A polymorphic reference
What is the purpose of message passing in object-oriented programming?
To invoke a function in the receiving object
What is the term for the linking of a procedure call to the code to be executed in response to the call?
Binding
What is an example of achieving polymorphism in C++?
Function overloading
What is the name of the general-purpose modeling language?
UML
What is the purpose of a function prototype?
To declare a function before its use
What is the term for the data passed into a function?
Argument
What is the term for a variable in a method definition?
Parameter
What is the term for the specific code that is executed when a function is called?
Function body
What is the purpose of a function definition?
To define the operation of a function
What is the term for a function that takes no arguments and returns no value?
Function with no argument and no return value
What is the fundamental idea behind the object-oriented approach?
To combine both data and functions into a single unit
What is a class in C++?
A user-defined data type
What is the term for wrapping of data and functions together as a single unit?
Encapsulation
What is the result of defining a class in C++?
Any number of objects can be created
What is data hiding or information hiding?
Preventing data from direct access by the program
What is an object in object-oriented programming?
A combination of data and function
This quiz covers the basics of functions in C++ programming, including function prototypes, function calls, and function definitions. Test your understanding of function elements in C++.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free