Define break statement in C++
In C++, the break statement is used to terminate the execution of a loop or a switch statement immediately, regardless
of the condition. It transfers control to the statement following the loop or switch.
Write a note on inline function
An inline function is a function where the compiler replaces the function call with the actual code of the function during
compilation. This helps eliminate the overhead of a function call.
How will you declare an object in C++?
To declare an object in C++, you first need to define a class, which serves as a blueprint for the object.
State the purpose of array
The primary purpose of an array is to store a collection of elements of the same data type in a contiguous memory
location. This allows for efficient organization and access of multiple data values using a single variable name.
What is member function?
A member function is a function that is defined within a class in C++. It operates on the data members of the class and
defines the behaviors or actions of its objects.
Mention the purpose of multilevel inheritance
Multilevel inheritance in object-oriented programming allows a class to inherit properties and methods from another
class, which in turn inherits from a base class, creating a chain of inheritance.
Show the uses of this pointer
The 'this' pointer in C++ is used to refer to the current instance of the class. It helps in accessing the class's own
members when they are shadowed by parameters or local variables.
What is dynamic object?
A dynamic object in C++ is an object that is created at runtime using the new operator. It is allocated on the heap rather
than the stack.
Recall the need of miscellaneous function
Miscellaneous functions are used to perform various tasks such as manipulating data, interacting with the environment,
or providing specific functionality beyond basic operations.
Define the term string
A string is a sequence of characters used to represent text. In C++, strings can store letters, numbers, symbols, and
spaces.