C++ Templates and Exceptions

C++ Templates and Exceptions

University

10 Qs

quiz-placeholder

Similar activities

CSE_A1_QUIZ 6(15-05-23)

CSE_A1_QUIZ 6(15-05-23)

University

13 Qs

PYTHON QUIZ3

PYTHON QUIZ3

University - Professional Development

10 Qs

Software Testing Basics

Software Testing Basics

University

15 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python Basics

Python Basics

12th Grade - University

10 Qs

Python Programming Intermediate-1

Python Programming Intermediate-1

University

15 Qs

BIOMETRICS-UNIT-I

BIOMETRICS-UNIT-I

University

10 Qs

JAVA FINAL QUIZ FOR ASSESSMENT

JAVA FINAL QUIZ FOR ASSESSMENT

University

15 Qs

C++ Templates and Exceptions

C++ Templates and Exceptions

Assessment

Quiz

Computers

University

Medium

Created by

Sheryl A

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?