ICT Software Development Concepts — Questions and Answers
Question 1: Which design pattern ensures a class has only one instance and provides a global access point to it?
- Factory
- Singleton (Correct answer)
- Observer
- Decorator
Correct answer: Singleton
The Singleton pattern restricts instantiation of a class to a single object and provides a static method to access it.
Question 2: In version control, what does 'rebasing' a branch accomplish?
- Merges two branches and creates a merge commit
- Moves or replays commits onto a new base commit (Correct answer)
- Deletes the branch history
- Creates a copy of the repository
Correct answer: Moves or replays commits onto a new base commit
Rebasing re-applies commits from one branch on top of another, resulting in a linear commit history.
Question 3: What is the primary purpose of a code linter?
- Compile source code into machine code
- Automatically deploy applications
- Analyze code for stylistic and programmatic errors (Correct answer)
- Encrypt source files for security
Correct answer: Analyze code for stylistic and programmatic errors
A linter statically analyzes code to flag programming errors, bugs, stylistic issues, and suspicious constructs.
Question 4: Which principle does the 'D' in SOLID stand for?
- Data Abstraction Principle
- Dependency Inversion Principle (Correct answer)
- Dynamic Dispatch Principle
- Declarative Syntax Principle
Correct answer: Dependency Inversion Principle
The Dependency Inversion Principle states that high-level modules should not depend on low-level modules; both should depend on abstractions.
Question 5: What does 'technical debt' refer to in software development?
- The financial cost of software licenses
- The accumulated cost of shortcuts and suboptimal code decisions (Correct answer)
- Server infrastructure expenses
- The time spent on documentation
Correct answer: The accumulated cost of shortcuts and suboptimal code decisions
Technical debt represents the future cost of rework required because quick, easy solutions were chosen over better long-term approaches.
Question 6: In a REST API, which HTTP method is idempotent and used to fully replace a resource?
- POST
- PATCH
- PUT (Correct answer)
- DELETE
Correct answer: PUT
PUT is idempotent and replaces the entire resource at the specified URI, while PATCH only partially updates it.
Question 7: What is 'pair programming' in agile development?
- Two separate developers working on the same feature independently
- Two developers sharing one workstation, collaborating on the same code simultaneously (Correct answer)
- A code review process where two reviewers approve each commit
- Running two versions of an application in parallel for testing
Correct answer: Two developers sharing one workstation, collaborating on the same code simultaneously
Pair programming has two developers sharing one workstation — one writes code (driver) while the other reviews in real time (navigator).
Question 8: Which testing approach verifies that individual components work correctly in isolation?
- Integration testing
- System testing
- Unit testing (Correct answer)
- Acceptance testing
Correct answer: Unit testing
Unit testing focuses on testing the smallest testable parts of an application — individual functions or methods — in isolation.
Question 9: What is the main characteristic of a 'microservices' architecture?
- A single deployable unit containing all application functionality
- An application built as a collection of small, independently deployable services (Correct answer)
- Software that runs only on mobile devices
- A database with minimal tables
Correct answer: An application built as a collection of small, independently deployable services
Microservices architecture structures an application as a collection of loosely coupled services, each implementing a specific business capability.
Question 10: What does 'refactoring' mean in software development?
- Rewriting the entire application from scratch
- Restructuring existing code without changing its external behavior (Correct answer)
- Adding new features to existing code
- Testing code to find bugs
Correct answer: Restructuring existing code without changing its external behavior
Refactoring is the process of restructuring existing code to improve its internal structure while preserving its observable behavior.
Question 11: In object-oriented programming, what is 'encapsulation'?
- The ability of a class to inherit from multiple parent classes
- Bundling data and methods that operate on that data within a single unit and restricting direct access (Correct answer)
- Creating multiple objects from a single class
- Overriding methods in a subclass
Correct answer: Bundling data and methods that operate on that data within a single unit and restricting direct access
Encapsulation bundles an object's data and the methods that operate on it together, hiding internal implementation details.
Question 12: What is a 'race condition' in software development?
- A performance benchmark test between competing algorithms
- A bug occurring when program behavior depends on unpredictable timing of concurrent operations (Correct answer)
- A competition between development teams to ship features
- A situation where two loops execute at the same speed
Correct answer: A bug occurring when program behavior depends on unpredictable timing of concurrent operations
A race condition occurs when the output of a concurrent program depends on the relative timing or order of thread execution.
Question 13: Which of the following best describes 'continuous integration' (CI)?
- Deploying code to production multiple times per day
- Frequently merging code changes into a shared repository with automated testing (Correct answer)
- Writing integration tests for all APIs
- Continuously monitoring application performance in production
Correct answer: Frequently merging code changes into a shared repository with automated testing
Continuous integration is the practice of frequently merging developer code changes into a shared repository, triggering automated builds and tests.
Question 14: What is the purpose of an 'API gateway' in a microservices architecture?
- To store data shared between all microservices
- To act as a single entry point that routes client requests to the appropriate microservices (Correct answer)
- To generate API documentation automatically
- To compile microservices into a single executable
Correct answer: To act as a single entry point that routes client requests to the appropriate microservices
An API gateway serves as the single entry point for all clients, routing requests to appropriate microservices and handling cross-cutting concerns.
Question 15: What does 'Big O notation' measure in algorithm analysis?
- The size of the codebase in bytes
- The upper bound of an algorithm's time or space complexity relative to input size (Correct answer)
- The number of bugs in a given function
- The memory allocated to the operating system
Correct answer: The upper bound of an algorithm's time or space complexity relative to input size
Big O notation describes the worst-case upper bound of an algorithm's complexity (time or space) as the input size grows.
Question 16: In software testing, what is a 'mock object'?
- A prototype of the user interface
- A simulated object that mimics the behavior of real dependencies for testing purposes (Correct answer)
- A test that runs against a production database
- An incomplete feature stub meant for demo use
Correct answer: A simulated object that mimics the behavior of real dependencies for testing purposes
A mock object imitates the behavior of real dependencies, allowing tests to verify interactions without relying on actual implementations.
Question 17: Which software development methodology emphasizes delivering working software in short iterations called sprints?
- Waterfall
- Scrum (Correct answer)
- RAD (Rapid Application Development)
- V-Model
Correct answer: Scrum
Scrum is an agile framework that organizes work into time-boxed iterations called sprints, typically lasting 1–4 weeks.
Question 18: What is the role of a 'build tool' like Maven or Gradle in software development?
- To write unit tests automatically
- To automate compiling source code, managing dependencies, and packaging applications (Correct answer)
- To track changes to source files using version control
- To monitor application performance in production
Correct answer: To automate compiling source code, managing dependencies, and packaging applications
Build tools like Maven and Gradle automate the process of compiling code, resolving dependencies, running tests, and packaging deployable artifacts.
Question 19: What is 'polymorphism' in object-oriented programming?
- The ability of a class to inherit properties from multiple parent classes
- The ability of different objects to respond to the same interface or method call in their own way (Correct answer)
- Creating many instances of the same class
- Hiding implementation details from the user
Correct answer: The ability of different objects to respond to the same interface or method call in their own way
Polymorphism allows objects of different classes to be treated through a common interface, with each class providing its own implementation.
Question 20: In the context of databases, what does ACID stand for?
- Atomicity, Consistency, Isolation, Durability (Correct answer)
- Authorization, Caching, Indexing, Distribution
- Abstraction, Compilation, Integration, Deployment
- Availability, Consistency, Integrity, Distribution
Correct answer: Atomicity, Consistency, Isolation, Durability
ACID (Atomicity, Consistency, Isolation, Durability) are the four key properties that guarantee reliable database transactions.
Question 21: Which concept describes software components that are easy to test because they have no hidden dependencies?
- Tight coupling
- High cohesion
- Loose coupling
- Dependency injection (Correct answer)
Correct answer: Dependency injection
Dependency injection is a technique where dependencies are provided externally rather than created inside the component, making units easy to test in isolation.
Which design pattern ensures a class has only one instance and provides a global access point to it?
What Practice Test Geeks adds beyond an AI chat for ICT
An AI chatbot can quiz you, but it can't reproduce the exam conditions or keep your record. Here you get:
- A timed, full-length ICT mock exam — 30 questions in 45 minutes with a 70% pass mark, modeled on the official exam's question count and time limit, followed by a score report broken down by exam domain.
- A fixed ICT question bank: the same test every attempt, so your score is comparable from one try to the next instead of changing with every regenerated quiz.
- Progress saved on your device: completed tests, scores and missed questions stay in My Progress, so you can retake only what you got wrong.
- A printable ICT cheat sheet you can print or save as a PDF.
- ICT flashcards built from the same question bank.
Practice questions written with AI assistance and published by Nathan Beja, founder of Practice Test Geeks. They are not real exam questions. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Editorial policy