MCQ
Programming & Data Structures (Senior CI) MCQ - Practice Questions
Practice 227 questions across 6 topics with detailed explanations.
Topics in Programming & Data Structures (Senior CI)
Sample questions
1In a C++ program, class Shape has a virtual member function draw(). Class Circle publicly derives from Shape and overrides draw(). If Shape* p points to a Circle object and p->draw() is executed, which statement best describes the call?
2Which pair correctly matches the algorithmic strategy with a typical feature?
3Which statement correctly matches one machine-learning idea with one blockchain idea?
4Insert the keys 50, 30, 70, 20, 40, 60, 80 into an initially empty binary search tree. Which traversal produces the sorted order 20, 30, 40, 50, 60, 70, 80?
5Which problem is a standard example where a greedy strategy gives an optimal solution when edges are chosen by increasing weight with cycle checks?
