C++ with STL: MCQs | Conducted By Rahul Kesarwani
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Rahul Kesharwani
Used 6+ times
FREE Resource
Enhance your content in a minute
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following best defines a class in C++?
A blueprint for creating objects
A data type for arrays
A preprocessor directive
A loop structure
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of a constructor in C++?
String
Integer
Object
No output
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct way to create an object using the new keyword?
MyClass obj();
MyClass *obj = new MyClass();
new obj = MyClass();
MyClass obj = new();
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which constructor is called when an object is initialized with another object?
Default constructor
Parameterized constructor
Copy constructor
Destructor
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many times can a class have constructor functions?
Only one
Unlimited
Only two
Depends on the compiler
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What keyword is used to define a class in C++?
function
class
define
object
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a correct example of method overloading?
Two methods with different return types
Two methods with same name but different parameters
Two methods in different classes
Method defined inside main()
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Eplus Exam 2
Quiz
•
University
16 questions
SecOps Quiz
Quiz
•
University
20 questions
Test Automation
Quiz
•
University
20 questions
MongoDB Quiz
Quiz
•
University
18 questions
Netw2-Quiz No. 3 (final term)
Quiz
•
University
20 questions
E-commerce Chapter 1
Quiz
•
University
20 questions
Responsi PL 2021/2022
Quiz
•
University
20 questions
Unit 10 - Client - Server model
Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
10 questions
Identifying equations
Quiz
•
KG - University
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
HS2C2 AB QUIZIZZ
Quiz
•
1st Grade - Professio...
14 questions
Homonyms Quiz
Quiz
•
KG - University
16 questions
Parts of a Parabola
Quiz
•
8th Grade - University
10 questions
A Brief History of Geologic Time
Interactive video
•
11th Grade - University
15 questions
Black Friday/Cyber Monday
Quiz
•
9th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
