C++ Programming Quiz

C++ Programming Quiz

University

30 Qs

quiz-placeholder

Similar activities

Horizon Scanning Quiz

Horizon Scanning Quiz

12th Grade - University

25 Qs

Brain Teaser

Brain Teaser

3rd Grade - University

25 Qs

ASSESSMENT  1 - PolGov

ASSESSMENT 1 - PolGov

University

25 Qs

University

25 Qs

PIn5

PIn5

University

25 Qs

PSY 362 Practice Exam Prep #1

PSY 362 Practice Exam Prep #1

University

25 Qs

ISM Prep for Knowledge #2

ISM Prep for Knowledge #2

University

25 Qs

UNIT - 4 B Compiler Optimization Quiz

UNIT - 4 B Compiler Optimization Quiz

University

25 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

:: ✅

:

Access all questions and much more by creating a free account

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?