Quiz on Templates

Take a quiz to test your understanding of templates in D.

1

Which of the following statements is true about templates?

A)

Templates define the code as a pattern for the compiler to generate instances of it according to the actual uses in the program.

B)

Templates are a compile-time feature.

C)

Specifying template parameter lists is sufficient to make function, struct, and class definitions templates.

D)

All of the above

Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.