Quiz on Templates

Test your understanding of templates in C++ by taking this quiz.

1

Which of the following is true about templates?

A)

Template allows code to be written for different data types.

B)

A single function can be used for all data types including user defined types.

C)

One class can be used for all data types including user defined types.

D)

Template is example of compile time polymorphism

Question 1 of 30 attempted

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy