Software Development Flashcards
6 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 6 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.