VIP Exclusive

CPP C++ Certified Professional Programmer VIP Exam

CPP — The CPP (C++ Certified Professional Programmer) exam is issued by the C++ Institute and tests advanced C++ programming skills including templates, STL, move semantics, concurrency, and modern C++ idioms; candidates typically have 75 minutes for ~40 questions.

55
Questions
75m
Time Limit
70.00%
To Pass
Question 1 of 55👑 VIP

Consider the following class template: cpp template<typename T> class Container { T data; public: Container(T val) : data(val) {} T& get() { return data; } const T& get() const { return data; } }; A function `void process(const Container<int>& c)` calls `c.get()`. Which overload of `get()` is invoked and why?

Questions 2–55 and full explanations are VIP-exclusive.