Search Header Logo

Basic Concepts of OOPs

Authored by Rajath Vijayakumar

Computers

12th Grade

Used 8+ times

Basic Concepts of OOPs
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 5 pts

Why should we learn object oriented programming languages?

(Hint - 2 answers are correct)

It connects to the real world

It is fun to learn

Conceptually this is similar to what we see in our life

It is in the form of functions and procedures

2.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Ram is an excellent singer and got this skill from his grand mother. Which C++ concept does this correlate to?

Data Abstraction

Inheritance

Encapsulation

Polymorphism

3.

MULTIPLE SELECT QUESTION

2 mins • 5 pts

Ali transferred the money from his HDFC bank account to Axis bank account of his friend(Neha) for buying a tennis racket. The transaction was successful in this case.

If we were to write a C++ program for this scenario, what classes and objects would you be creating?

(Hint - multiple answers are correct)

Class :- Customer_name

Objects :- Ali, Neha

Class :- Items_purchased

Objects :- Tennis_racket

Class :- Money_transfer

Objects :- SB, FD, RD

Class :- Bank_Account

Objects :- HDFC_bank_account, Axis_bank_account

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

If I create a class, I can create unlimited number of objects from it?

True

False

Don't know

5.

MULTIPLE SELECT QUESTION

45 sec • 5 pts

How will Data Encapsulation help us in C++?

(Hint - multiple answers are correct)

Data members can be accessed without the functions in a class

Data members can be accessed only through functions in a class

Data members and functions are together coded in a class

Data members can be manipulated through functions in a class

6.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

In C++, addition symbol(+) is used for calculating numbers as well as it is used to concatenate strings together. Which C++ concept are we trying to explain here?

Data abstraction

Modularity

Data encaspulation

Operator Overloading

(polymorphism)

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

We know how to use smartphones and this knowledge is sufficient for us. We do not need to know how the smartphone works internally. Which C++ concept is applied here?

Inheritance

Data encapsulation

Data Abstraction

Polymorphism

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?