C++ Classes and Objects Quiz

C++ Classes and Objects Quiz

University

60 Qs

quiz-placeholder

Similar activities

Machine Learning Quiz

Machine Learning Quiz

University

59 Qs

Mastering Java Programming Concepts

Mastering Java Programming Concepts

University

60 Qs

AI Course Quiz: Python, NumPy, Pandas, OpenCV

AI Course Quiz: Python, NumPy, Pandas, OpenCV

University

65 Qs

Hexaware Mock AInterview assessment

Hexaware Mock AInterview assessment

University

60 Qs

BIM-01

BIM-01

University

62 Qs

Test Javascript

Test Javascript

University

57 Qs

Principles Prelims-Midterm

Principles Prelims-Midterm

University

60 Qs

CE Materials Midterm Exam

CE Materials Midterm Exam

University

60 Qs

C++ Classes and Objects Quiz

C++ Classes and Objects Quiz

Assessment

Quiz

Engineering

University

Easy

Created by

vinjamuri Kamesh

Used 2+ times

FREE Resource

AI

Enhance your content

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?