Computer Science · Object Oriented Programming
Match the C++ design contexts in List I with the appropriate implementation approach in List II: LIST - ILIST - IIA. If the implementation of generated or derived classes differ only through a parameter we haveI. to use class hierarchyB. If the actual types of objects used cannot be known at compile time, then we haveII. improved run-time efficiencyC. If inline operations are essential and templates are used then we haveIII. to use templatesD. To gain access to differing instances for derived classes through base we haveIV. to use explicit casting Choose the correct answer from the options given below:
- 1A - I, B - II, C - IV, D - III
- 2A - III, B - I, C - II, D - IV✓
- 3A - I, B - III, C - II, D - IV
- 4A - II, B - I, C - III, D - IV
Correct answer
A - III, B - I, C - II, D - IV
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Object Oriented Programming?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Object Oriented Programming