Question
Consider the following C++ code: #include class Base { public: virtual void show() = 0; }; class Derived : public Base { public: void show() override { std::cout << "Derived::show()" << std::endl; } }; int main() { // Base b; // Line A Derived d;
Consider the following C++ code: #include class Base { public: virtual void show() = 0; }; class Derived : public Base { public: void show() override { std::cout << "Derived::show()" << std::endl; } }; int main() { // Base b; // Line A Derived d;
d.show(); return 0; } What would be the output if `// Base b; // Line A` were uncommented and the code compiled?
More IT Operating System Questions
- Which of the following statements about guided transmission media is correct?
- In Oracle database variable length column is declared by ____________
- Which of the following algorithm uses Darwinian based algorithm to find the best solutions to solve complicated problems with a greater number of variables...
- What is the primary function of the 'operating system' in a computer?
- What is the difference between 'preemptive' and 'non-preemptive' scheduling?
- Which AI technique is used for uncertain reasoning?
- You are trying to parse a JSON string in Java using a library like org.json. import org.json.JSONObject; import org.json.JSONException; public class...
- A system call is typically implemented as a(n):
- What is the output of the following C program? #include int main() { int a=2, b=3, c=4; printf("%d", a<<1 | b&c); return 0; }
- In REST/HTTP semantics, "safe" means a method causes no server-side state change, and "idempotent" means repeated identical requests always produce the sam...
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)