C++ Programming Quiz

C++ Programming Quiz

University

30 Qs

quiz-placeholder

Similar activities

Quiz #2_Ch 3 & 4_INTDSP 101_OpenStax _Fall  2025

Quiz #2_Ch 3 & 4_INTDSP 101_OpenStax _Fall 2025

University

25 Qs

edTPA Task 1 Task 2 and Task 3

edTPA Task 1 Task 2 and Task 3

University - Professional Development

25 Qs

UAS_Kelas C

UAS_Kelas C

University

25 Qs

Project Management

Project Management

University

25 Qs

Thanksgiving Quiz

Thanksgiving Quiz

KG - Professional Development

25 Qs

Earth Day Quiz - Setsu Precision Technology (M) Sdn. Bhd.

Earth Day Quiz - Setsu Precision Technology (M) Sdn. Bhd.

University

25 Qs

Human Growth & Development Part 1

Human Growth & Development Part 1

7th Grade - University

26 Qs

Google ClassRoom

Google ClassRoom

University

27 Qs

C++ Programming Quiz

C++ Programming Quiz

Assessment

Quiz

Other

University

Practice Problem

Easy

Created by

InfiTechLearn Team

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?