Q1. What is the difference between unit, integration and end-to-end tests?
Unit tests exercise a single function, class or module in isolation, with dependencies replaced by fakes. They run in milliseconds, pinpoint failures and are cheap to wri...
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 (5 available).
Unit tests exercise a single function, class or module in isolation, with dependencies replaced by fakes. They run in milliseconds, pinpoint failures and are cheap to wri...
A good unit test is fast, deterministic, isolated and focused on behaviour. Characteristics: - Tests one behaviour, with a clear name such as `rejects_negative_amount`, s...
Given a pricing function, write focused tests with JUnit and AssertJ. ```java class PriceCalculator { BigDecimal finalPrice(BigDecimal base, int qty, boolean member) { if...
Both test hypotheses about means, and the choice hinges on whether the population standard deviation is known and the sample size. Use a z-test when the population standa...
Testing a distributed system needs a layered strategy, because full end-to-end coverage does not scale. - Unit tests per service for domain logic, run on every commit. - ...
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.