Question
In Object-Oriented Programming, which of the following Java code snippets correctly demonstrates inheritance ? class Animal { void sound () { System.out.println( "Animal makes a sound" ); }} class Dog extends Animal { void sound () { System.out.println( "Dog barks" ); }}
More Basics of Computers Questions
- Which of the following best describes a MAN (Metropolitan Area Network)?
- Which network topology is highly scalable but requires complex routing mechanisms?
- Which command would you use in Unix/Linux to terminate a running process?
- When using virtual memory, what happens when a page fault occurs and the operating system cannot find a free frame in physical memory?
- Which of the following is defined as an attempt to steal, spy, damage or destroy computer systems, networks, or their associated information?
- Predict the program output void main () { int x = 128; printf ("n%d", 1 + x++); }
- In which scenario would para virtualization be preferred over full virtualization?
- Which of the following is NOT a valid type of firewall?
- In an ER diagram, what does a diamond shape typically represent?
- Which of the following is a key advantage of a microservices architecture over a monolithic architecture?
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)