Multiple choice technology programming languages

What defines a general set of operations that will be applied to various types of data?

  1. Template class

  2. Function template

  3. Class template

  4. Both a and c

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A function template in C++ defines a general set of operations that can be applied to various types of data passed as parameters. While a class template defines a family of classes, a function template specifically represents operations (functions). Therefore, 'Both a and c' is incorrect.