Search Header Logo

C++ Templates and Exceptions

Authored by Sheryl A

Computers

University

Used 1+ times

C++ Templates and Exceptions
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

The functions and classes which are _____________are called generics

data type dependent

type dependent

data type independent

data type incorrect

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Generic Programming reduces ____________and _________

Code repetition

In-demand compilation

Both A and B

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function template behaves like a function except that the template can have arguments of many different types

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A class template provides a __________ based on parameters.

specification for generating classes

can have arguments

Both A and B

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Templates are _________

used less code than overloaded C++ functions.

type safe.

instantiated at compile-time with the source code.

All the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the things does not require instantiation?

functions

non virtual member function

member class

all of the mentioned

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to check exception in the block of code?

catch

throw

try

handlers

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?