Question 38Asked in UGC NET Computer Science, August 2016 (Paper II & III, Selected Questions)

A function template in C++ provides ______ level of generalization.

  1. A4
  2. B3
  3. C2
  4. D1
Show answerHide answer

Correct answer: (C) 2

Explanation

C++ provides two kinds of templates: class templates and function templates. A function template in C++ provides two levels of generalization.

From UGC NET Computer Science PYQ, August 2016 (Paper II & III, Selected Questions)

This is question 38 of UGC NET Computer Science PYQ, August 2016 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.