🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Operators and Templates: all 10 questions

Quiz: Operators and Templates · Question 5 of 10

What is vector<int an example of?

What is vector<int> an example of?

  1. A.A function template
  2. B.A class template instantiated with int
  3. C.An abstract class
  4. D.A macro
Answer & explanation

Correct answer: A class template instantiated with int

vector is a class template; vector<int> is one instantiation.

Can you get the rest right without peeking?

Take the timed Quiz: Operators and Templates quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →