Search Header Logo

DAY-2 DSA BOOTCAMP

Authored by ATHARVA GALNE

Computers

University

Used 2+ times

DAY-2 DSA BOOTCAMP
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 CHOICE QUESTION

20 sec • 1 pt

Which of the following is not correct for virtual function in C++ ?

Must be declared in public section of class.

Virtual function can be static.

Virtual function should be accessed using pointers.

Virtual function is defined in base class

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Identify the scope resolution operator.

:

;

: :

| |

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not the member of class?

Static function

Friend function

Const function

Virtual function

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How many instances of an abstract class can be created?

0

Equal to number of class objects created

Abstract Value

Infinite

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Why reference is not same as a pointer?

A reference can never be null.

A reference once established cannot be changed.

Reference doesn't need an explicit dereferencing mechanism.

All of the above.

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Can we declare an array size as negative?

Yes, you can declare an array size as negative in certain programming languages.

No, you cannot declare an array size as negative in any programming language.

It depends on the programming language, some allow negative array sizes while others do not.

Negative array sizes are only allowed in advanced data structures, not in regular arrays.

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Pccoe_Pune

GFGPCCOE

PGcFcGoPeC_CPOuEne

Pccoe_PuneGFGPCCOE

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?

Discover more resources for Computers