C++ Programming Quiz

C++ Programming Quiz

University

30 Qs

quiz-placeholder

Similar activities

C++ Basics

C++ Basics

University

25 Qs

Exception Handling Quiz

Exception Handling Quiz

University

25 Qs

UAS Analisis Pembiayaan Perbankan Syariah

UAS Analisis Pembiayaan Perbankan Syariah

University

33 Qs

C++ Programming Finals Very Long Quiz

C++ Programming Finals Very Long Quiz

University

35 Qs

انجليزي

انجليزي

University

25 Qs

Разработка приложений в C# 1 аттестация

Разработка приложений в C# 1 аттестация

University

25 Qs

OOPs Quiz - Advanced

OOPs Quiz - Advanced

University

25 Qs

Java Programming Quiz

Java Programming Quiz

University

30 Qs

C++ Programming Quiz

C++ Programming Quiz

Assessment

Quiz

Other

University

Easy

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?