Software Development Flashcards
19 cards from real IKM practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 19 Software Development flashcards as text
What is the primary benefit of dependency injection?
Answer: Loose coupling between components
Dependency injection promotes loose coupling by providing dependencies externally rather than creating them internally.
Which design pattern ensures a class has only one instance?
Answer: Singleton
The Singleton pattern restricts instantiation to a single object with a global access point.
What does the 'O' in SOLID stand for?
Answer: Open/Closed Principle
The Open/Closed Principle states entities should be open for extension but closed for modification.
What is a race condition?
Answer: A bug where behavior depends on timing of uncontrolled events
A race condition occurs when behavior depends on the timing of events like two threads accessing shared data.
Which version control workflow creates a branch for each feature?
Answer: Feature branch workflow
Feature branch workflow creates a dedicated branch for each feature, keeping main stable.
What is the purpose of code refactoring?
Answer: Improve internal code structure without changing external behavior
Refactoring improves internal structure, readability, and maintainability without changing functionality.
What is continuous integration (CI)?
Answer: Frequently merging code changes with automated builds and tests
CI involves frequently integrating code with automated builds and tests to detect issues early.
Which data structure uses LIFO ordering?
Answer: Stack
A stack follows Last In, First Out where the most recently added element is removed first.
What is technical debt?
Answer: Implied cost of future rework from choosing quick solutions over proper ones
Technical debt represents the long-term cost when developers take shortcuts.
Which testing approach verifies individual units of code in isolation?
Answer: Unit testing
Unit testing verifies individual functions or classes work correctly using mocks for dependencies.
What is the time complexity of binary search?
Answer: O(log n)
Binary search has O(log n) because it halves the search space with each comparison.
What is the primary purpose of an API?
Answer: Define contracts for how software components interact
An API defines methods, data formats, and protocols for software component communication.
A class handles database access, email notifications, and report formatting. Which SOLID principle does this most directly violate?
Answer: Single Responsibility Principle
The Single Responsibility Principle says a class should have only one reason to change, and this class has three.
A subclass overrides a method and throws an exception for inputs the base class accepted. Which principle is broken?
Answer: Liskov Substitution Principle
Under Liskov Substitution, a subtype must not strengthen preconditions, so it has to accept every input its base type accepts.
In Git, which command makes a new commit that undoes an earlier commit without rewriting shared history?
Answer: git revert
git revert adds a new commit with the inverse changes, so history that others already pulled stays the same.
Which design pattern lets an object change its behavior when its internal state changes, so the object appears to change its class?
Answer: State
The State pattern moves state-specific behavior into separate state objects and swaps them as the context's state changes.
A unit test replaces a payment gateway with an object that records calls and checks they happened with the expected arguments. What is this test double called?
Answer: Mock
A mock is set up with expectations and verifies the interactions, while a stub only returns canned responses.
In Scrum, who is accountable for ordering the Product Backlog to maximize value?
Answer: Product Owner
The Scrum Guide makes the Product Owner accountable for managing and ordering the Product Backlog.
Which practice best describes continuous integration?
Answer: Developers merge into a shared mainline often, and each merge triggers an automated build and tests
Continuous integration means merging small changes often and checking each merge with an automated build and tests.
Written and edited by Nathan Beja, founder of Practice Test Geeks, with AI assistance. Exam facts are checked against the official sources linked below. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- ikmnet.com — Test delivery, passing score · verified Oct 2026
- online.ikmnet.com — Eligibility, exam format, retake policy, score release, time limit · verified Oct 2026