Q1. What are the four pillars of object-oriented programming?
Object-oriented programming rests on four pillars: - Encapsulation: keep state private and expose behaviour through methods, so invariants cannot be broken from outside. ...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (9 available).
Object-oriented programming rests on four pillars: - Encapsulation: keep state private and expose behaviour through methods, so invariants cannot be broken from outside. ...
Ruby encapsulates instance variables such as `@name`, which are private by default. `attr_reader`, `attr_writer` and `attr_accessor` are class macros that define getter a...
A distributed store can guarantee only two of three during a network partition: Consistency (every read sees the latest write), Availability (every request gets a non-err...
Working capital is current assets minus current liabilities. It measures the short term liquidity available to run day to day operations. Current assets include cash, rec...
Encapsulation means bundling data with the operations that act on it and restricting direct access to the internals. The class exposes a deliberate public API and keeps f...
A closure is a self-contained block of functionality that can be passed around and captures values from its surrounding context. Functions are a special case of closures....
A field is a variable declared directly in a class. A property is a member with `get` and `set` accessors that looks like a field to callers but runs code, enabling valid...
Output escaping encodes user-controlled data at the moment it is written into HTML so browsers treat it as text, not markup. This is the primary defence against XSS. ```p...
CAP states that during a network partition a distributed system must choose between consistency (every read sees the latest write) and availability (every request gets a ...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.