Search Header Logo

QUIZ-3

Authored by gurpreet singh

Education

University

Used 4+ times

QUIZ-3
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

30 sec • 1 pt

while overloading binary operators using member function, it requires_____ argument/s.

Zero

One

Two

Three

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In case of operator overloading, operator must be ______

  1. 1. Static member functions

  2. 2. Non-static member functions

  3. 3. Friend Functions

Only 2

Only 1, 3

Only 2, 3

ALL

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We can overload almost all the C++ operators except the following.

i) Class member operator (.,.*)   ii) Assignment operator (=)
iii) Scope resolution operator (::) iv) Conditional operator (?:)

i, ii and iii only

ii, iii and iv only

i, iii and iv only

All

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do define the user-defined exceptions?

Inherting & overriding exception class functionlity

Overriding class functionlity

Inherting class functionlity

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements are true about Catch handler?

i) It must be placed immediately after try block T.

ii) It can have multiple parameters.

iii) There must be only one catch handler for every try block.

iv) There can be multiple catch handler for a try block T.

v) Generic catch handler can be placed anywhere after try block.

Only i, iv, v

Only i, ii, iii

Only i, iv

Only i, ii

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

predict the output?

Default Exception After Exception

Int Exception After Exception

Int Exception

Default Exception

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 It is not possible to combine two or more file opening mode in open () method.

True

False

May Be

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?