Question
Consider the following C++ code: class Base { public: void show() { std::cout << "Base::show" << std::endl; } }; class Derived : public Base { public: void show() { std::cout << "Derived::show" << std::endl; } }; int main() { Base b; Derived d; Base* ptr = &d; ptr->show(); return 0; } What will be the output of this code?
More IT Operating System Questions
- In a multi-homed network, BGP route flapping causes external instability. Which mechanism MOST effectively prevents repeated advertisement of unstable rout...
- Linux uses a time-sharing algorithm ___________
- Given the array [38, 27, 43, 3, 9, 82, 10], what would be the two sorted subarrays immediately *before the final merge step* in a Merge Sort algorithm?
- What were the early operating systems commonly known as, and what was their primary function?
- A binary search function is returning -1 (not found) even when the target element is present in the array. The array is sorted. Which of the following is a...
- Table ORDERS has a foreign key CUST_ID referencing CUSTOMERS(CUST_ID). What happens when you try to DELETE a customer who has existing orders, if ON DELE...
- Disk requests arrive at cylinders 55, 90, 20, and 70 while the disk head is currently at cylinder 50, moving toward higher cylinder numbers. Using the LOOK...
- A custom stack implementation has a pop() method that is supposed to remove and return the top element. However, when the stack is empty, calling pop() cau...
- Consider the following Java code: public class Product { private String name; private double price; public Product(Stri...
- What is the primary use of the printf function in C/C++ programming?
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)