Question
What will be the output of the following code snippet demonstrating abstraction in Python? from abc import ABC, abstractmethod class Shape(AB
- C : @abstractmethod def area(self): pass class Circle(Shape): def __init__(self, radius): self.radius = radius def area(self): return 3.14 * self.radius * self.radius circle = Circle(5) print(circle.area())
More Basics of Computers Questions
- What is the primary purpose of design patterns in software engineering?
- Which of the following is a characteristic of Cross-Site Request Forgery (CSRF) attacks?
- Which of the following correctly describes the second normal form (2NF) in database normalization?
- Which layer of the OSI Model is responsible for ensuring error-free delivery of data between source and destination?
- In software engineering, what is the primary purpose of the software development life cycle (SDLC)?
- In the Least Recently Used (LRU) page replacement algorithm, given the following reference string 4, 2, 4, 1, 5, 2, 3, 4, and assuming 3 frames, how many p...
- In Numerical and Statistical Computing, which method is used for solving linear equations with large datasets?
- In the context of containerization, what is the role of an orchestration tool?
- Which of the following networking devices is primarily used to connect different networks and route packets between them?
- Which of the following algorithms is the most efficient for finding the smallest element in an unsorted array?
Relevant for Exams:
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)