
C++ Programming Quiz

Quiz
•
Other
•
University
•
Easy
InfiTechLearn Team
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct class declaration in C++?
class Sample();
class Sample[] {};
class = Sample {};
class Sample {}; ✅
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which concept allows the use of the same function name for different purposes?
Inheritance
Encapsulation
Function Overloading ✅
Polymorphism
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is used to allocate memory dynamically in C++?
malloc()
calloc()
new ✅
alloc()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which access specifier makes a member accessible only within its class and friend functions?
public
private ✅
protected
external
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to release memory allocated by new?
delete()
remove
free()
delete ✅
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is not a type of constructor in C++?
Default Constructor
Copy Constructor
Move Constructor
Inline Constructor ✅
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? cout
:: ✅
:
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
AP Seminar Glossary

Quiz
•
9th Grade - University
29 questions
MPJE Section 1 Q's 16-20 and 21-26 focused

Quiz
•
University
30 questions
Communication Theories FINALS - 2-1

Quiz
•
University
26 questions
Python Quiz SE 27/10/2023

Quiz
•
University
30 questions
Java Programming Quiz

Quiz
•
University
25 questions
AVID TRF REVIEW

Quiz
•
7th Grade - University
30 questions
ERROR ELEGANCE

Quiz
•
University
27 questions
Flashcards Cardiology 6-10 and 16-20 focused

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Other
15 questions
Disney Trivia

Quiz
•
University
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University
20 questions
Disney Trivia

Quiz
•
University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
5 questions
Examining Theme

Interactive video
•
4th Grade - University
23 questions
Lab 4: Quizziz Questions

Quiz
•
University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University