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
- When evaluating the performance of an algorithm, which of the following factors is generally considered most important for large input sizes?
- An inode has 12 direct pointers and 1 single-indirect pointer. Block size is 4 KB and each pointer occupies 4 bytes. What is the maximum file size addressa...
- What are the different modes of fiber optic communication?
- Which protocol is commonly used for secure data transfer in cloud computing?
- In a bank's IT governance framework, which statement correctly describes the relationship between a Business Continuity Plan (BCP) and a Disaster Recovery ...
- Consider a delete_node(head, key) function for a singly linked list that removes the first occurrence of a node with a given key. The function works for mo...
- In Oracle SQL, which operator is used to return rows from the first query that do not appear in the second query (equivalent to set difference)?
- Entities having primary key are called :
- What is the primary function of the CICS (Customer Information Control System) in mainframe computing?
- A system uses paging with page size 1 KB. Logical address 2500 maps to page 2 (2500 ÷ 1024 = 2 remainder 452), and the page table entry for page 2 gives fr...
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)