C++ Classes and Objects Quiz

C++ Classes and Objects Quiz

University

60 Qs

quiz-placeholder

Similar activities

M02 Physics – Highlights MCQ Exam (Questions 1–20)

M02 Physics – Highlights MCQ Exam (Questions 1–20)

University

58 Qs

Preguntas sobre ACL

Preguntas sobre ACL

University

61 Qs

Ex_Conv_Fund_Tec_Sist

Ex_Conv_Fund_Tec_Sist

University

62 Qs

BSD NBCP

BSD NBCP

University

60 Qs

8.1.1 - Principles of Mechanical Engineering

8.1.1 - Principles of Mechanical Engineering

10th Grade - University

55 Qs

MES P8 2025 Unit 3 assignment

MES P8 2025 Unit 3 assignment

University

60 Qs

Marine Propulsion Engines and Technology

Marine Propulsion Engines and Technology

University

57 Qs

TCS  SE

TCS SE

University

60 Qs

C++ Classes and Objects Quiz

C++ Classes and Objects Quiz

Assessment

Quiz

Engineering

University

Practice Problem

Easy

Created by

vinjamuri Kamesh

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

60 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to declare an object of a class `Student`?

Student s1;

Student();

object Student;

s1 Student;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If `class Car{ };`, how many objects are created with `Car c1, c2, c3;`?

1

2

3

0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Objects are instances of a:

Function

Class

Variable

Array

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An object is created in:

Runtime only

Compile time only

Both runtime and compile time

Neither

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is required to declare an object?

object

instance

None, only class name is needed

declare

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Multiple objects of the same class share:

Different member functions

Same member functions

Both different and same

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about object declaration?

Must use new keyword

May be declared like variables

Must always be initialized

None

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?