C++ MCQ for TN TRB Prep
A medium-level C++ quiz covering core concepts for TN TRB preparation.
Try this quiz
Play through the questions and see your score instantly
Ready to test your knowledge?
8 questions · Quick play · Instant results
Make your own quiz videos
Turn any topic into a polished video quiz — with AI-powered questions, voiceover, and animations. No video editing skills needed.
Unlimited quizzes, free to start
Create as many quizzes as you want. Describe your topic and AI builds the questions, answers, and explanations for you.
Customise everything
Pick from stunning templates, tweak colours and fonts, add your branding, and choose between vertical or landscape formats.
Export-ready videos
Download HD videos optimised for TikTok, YouTube Shorts, Instagram Reels, or full-length YouTube — one click, no editing.
No credit card required
Quiz Questions & Answers
Review every prompt, the correct responses, and helpful context to prep for your own run-through.
Question 1: Which feature lets the same function name work with different parameter lists?
Inheritance
Encapsulation
Polymorphism
Function overloading
Question 2: What does a constructor do when an object is created?
Changes the class name
Initializes the object
Makes the object static
Deletes the object
Question 3: Why are virtual functions important in base classes?
They replace constructors
They enable runtime method binding
They speed up compile time
They prevent class creation
Question 4: Which access specifier makes members available only inside the same class?
public
private
protected
extern
Question 5: What is the main purpose of a destructor?
Release resources before object removal
Overload operators automatically
Create a new object
Declare variables
Question 6: Which statement best describes a reference in C++?
A macro substitution
A temporary object copy
A pointer that can be null
An alias for an existing variable
Question 7: Why is a copy constructor used?
To convert integers into classes
To make methods static
To create an object from another object of the same class
To destroy an object early
Question 8: What happens if a derived class does not override a virtual function?
The function becomes private
The compiler deletes the base method
The base class version is used
The program always crashes