C++ is a popular programming language used to create computer programs. Have you studied this subject? Check out these C++ final exam questions and answers and get to revise your concepts. This interactive quiz consists of well-researched questions and answers about the C++ concepts. So, give it a try and see how much score you can make. So, are you See moreready to take this quiz? Let's start then. All the best!
True
False
Rate this question:
Cpp_malloc
Create_new
Mem_create
New
Rate this question:
Void startGame(int numPlayers&);
Void startGame(int& numPlayers);
Void startGame(int* numPlayers);
Void startGame(int numPlayers*);
Rate this question:
A right curly bracket.
A right brace.
Double colons.
A semi-colon.
Rate this question:
Protected
Public
Private
Overloaded
Rate this question:
Have Class Bob "friend" Class Alice.
Have Class Alice "friend" Class Bob.
Make "secret" public.
Create a public member functions for Alice and Bob called getSecret().
Rate this question:
Class Animal is a virtual block class.
Class Animal is a friend of Class Cat and Class Dog.
Class Animal is an abstract base class.
Class Animal is an interface.
Rate this question:
Class Constructor
Copy Constructor
Virtual Constructor
Overloaded Abstract Virtual Constructor
Rate this question:
2
3
2,3
2,3,4
Rate this question:
Passing an object by value to a function.
Returning an object by value from a function.
Both a and b.
Passing an object by reference to a constructor.
Rate this question:
Implicit
Explicit
Both
None
Rate this question:
Person a
Person b
Person c
None of the above
Rate this question:
True
False
Rate this question:
Free
Free[]
Delete
Delete[]
Rate this question:
Free(r);
Delete r;
Delete[] r;
~r();
Rate this question:
Free(r);
Delete r;
Delete[] r;
~r();
Rate this question:
Exiting a function
Restarting the operating system
Exiting a statement (if, while, etc.)
Both a and c
Rate this question:
There is nothing wrong.
You cannot instantiate an object on the same line as it is declared.
"noah" is a const string that cannot be reassigned inside the Person class.
Person a is not a pointer.
Rate this question:
Const string getName();
String getName() const;
String const getName();
Const std__str getName();
Rate this question:
Void search(const string);
Int search(const string) const;
Int search(const string);
Int const search(string);
Rate this question:
Const Person (const int) const;
Person const (const int) const;
Const Person const (const int) const;
Const Person (const int&) const;
Rate this question:
Composition
Inheritance
Aggregation
Polymorphism
Rate this question:
Abstraction
Overriding
Overloading
Extraction
Rate this question:
Abstraction
Overriding
Overloading
None of the above
Rate this question:
Quiz Review Timeline (Updated): Jan 16, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.