Read each question, consider the options, then reveal the correct answer and explanation.
100 MCQs10 per page1 of 10
MCQ 1Computer Hardware & Architecture
What is the primary purpose of 'processor SMT' (Simultaneous Multithreading), as implemented in technologies like Intel's Hyper-Threading?
To allow a single physical core to concurrently execute instructions from multiple threads by sharing certain internal execution resources, improving overall resource utilization
To physically add more CPU cores to a chip
A synonym for multi-core processing with identical resource duplication
A feature used only for GPU rendering
Correct answerA — To allow a single physical core to concurrently execute instructions from multiple threads by sharing certain internal execution resources, improving overall resource utilization
Explanation
Simultaneous Multithreading allows a single physical core to interleave and concurrently execute instructions from multiple threads, sharing certain internal execution resources between them, which can improve overall utilization of the core's execution units for suitable workloads, though it doesn't provide the same performance as fully separate physical cores.
MCQ 2Computer Hardware & Architecture
Which of the following best describes the purpose of 'processor microarchitecture' as distinct from 'instruction set architecture' (ISA)?
They are identical concepts with no distinction
Microarchitecture defines the software compiled for a processor
ISA refers only to memory addressing, never instructions
The ISA defines the abstract programming interface (instructions) a processor supports, while microarchitecture describes the specific internal hardware implementation used to execute that ISA
Correct answerD — The ISA defines the abstract programming interface (instructions) a processor supports, while microarchitecture describes the specific internal hardware implementation used to execute that ISA
Explanation
The instruction set architecture (ISA) defines the abstract set of instructions and programming interface a processor supports (like x86 or ARM), while microarchitecture describes the specific internal hardware design and implementation details used to execute that ISA, which can vary significantly between different processors sharing the same ISA.
MCQ 3Computer Fundamentals
What is the primary difference between 'IaaS', 'PaaS', and 'SaaS' cloud service models?
They are all identical, just different marketing terms
IaaS provides raw infrastructure (like virtual servers); PaaS provides a platform for building applications without managing underlying infrastructure; SaaS provides fully ready-to-use applications
SaaS provides the most control over underlying infrastructure
IaaS is only used for storage, never computing
Correct answerB — IaaS provides raw infrastructure (like virtual servers); PaaS provides a platform for building applications without managing underlying infrastructure; SaaS provides fully ready-to-use applications
Explanation
IaaS (Infrastructure as a Service) provides raw computing infrastructure like virtual machines; PaaS (Platform as a Service) provides a managed platform for building and deploying applications without managing the underlying servers; SaaS (Software as a Service) delivers fully functional, ready-to-use applications directly to end users.
MCQ 4Oop & Uml
Which of the following best describes the 'Hexagonal Architecture' (Ports and Adapters) pattern?
A pattern that requires a system to have exactly six modules
A synonym for the Singleton pattern
A pattern used only for game development
An architectural style that isolates a system's core business logic from external concerns (like databases or UIs) through defined ports and adapters, improving testability and flexibility
Correct answerD — An architectural style that isolates a system's core business logic from external concerns (like databases or UIs) through defined ports and adapters, improving testability and flexibility
Explanation
Hexagonal Architecture (Ports and Adapters) isolates core business logic from external dependencies like databases, UI frameworks, or third-party services, using defined 'ports' (interfaces) and 'adapters' (implementations), improving testability and allowing external technologies to be swapped without affecting the core logic.
MCQ 5Computer Hardware & Architecture
Which of the following best describes the purpose of 'processor register windows', as used in some architectures like SPARC?
A technique for physically resizing registers
A synonym for register renaming with no distinction
A feature used only for floating-point operations
A technique where a processor provides overlapping sets of registers for different function call levels, reducing the overhead of saving and restoring registers during function calls
Correct answerD — A technique where a processor provides overlapping sets of registers for different function call levels, reducing the overhead of saving and restoring registers during function calls
Explanation
Register windows provide multiple overlapping sets of registers for different levels of function calls, reducing the need to save and restore registers to memory on every function call and return, which can improve performance for call-heavy code, though this approach has largely been superseded in mainstream architectures.
MCQ 6Database Pl/sql
What is the purpose of 'idempotent database operations' in the context of message-driven or event-driven architectures?
To permanently prevent any database write
A synonym for a database transaction
To design database operations so that processing the same event or message multiple times (such as due to a retry) produces the same final result as processing it once
A technique used only for read-only queries
Correct answerC — To design database operations so that processing the same event or message multiple times (such as due to a retry) produces the same final result as processing it once
Explanation
In event-driven systems, messages may occasionally be delivered more than once (e.g., due to retries after a timeout); designing database operations to be idempotent ensures that reprocessing the same event doesn't cause incorrect duplicate effects, producing the same final state as if it had been processed exactly once.
MCQ 7Oop & Uml
What is the purpose of the 'Publish-Subscribe' pattern as a looser-coupled evolution of the classic Observer pattern?
To restrict a class to a single instance
To define a family of interchangeable algorithms
A pattern used only for database access
To decouple publishers and subscribers further by routing messages through an intermediary (like a message broker), so publishers and subscribers don't need direct references to each other at all
Correct answerD — To decouple publishers and subscribers further by routing messages through an intermediary (like a message broker), so publishers and subscribers don't need direct references to each other at all
Explanation
The Publish-Subscribe pattern extends the Observer pattern's decoupling further by introducing an intermediary message broker or event bus; publishers and subscribers never hold direct references to each other, communicating only indirectly through the broker, which is well-suited to distributed and asynchronous systems.
MCQ 8C C++ Programming
Which of the following best describes the purpose of 'property-based testing' as a software testing technique?
Testing only the specific example inputs a developer manually thinks of
Automatically generating a wide range of varied test inputs to verify that certain general properties or invariants hold true across all of them, rather than checking only specific hand-picked examples
A synonym for manual exploratory testing
A technique used only for testing user interfaces
Correct answerB — Automatically generating a wide range of varied test inputs to verify that certain general properties or invariants hold true across all of them, rather than checking only specific hand-picked examples
Explanation
Property-based testing automatically generates a wide, often randomized range of test inputs, checking that general properties or invariants (such as 'sorting a list twice gives the same result as sorting it once') hold true across all of them, often uncovering edge cases that hand-picked example-based tests might miss.
MCQ 9Windows Linux File Systems
What is the purpose of the Windows 'Windows Defender Application Guard' feature?
To manage disk partitions
To isolate untrusted websites or Office documents within a lightweight, hardware-isolated container, preventing potential threats from affecting the main operating system
A synonym for standard Windows Defender antivirus scanning
A feature used only for network firewall rules
Correct answerB — To isolate untrusted websites or Office documents within a lightweight, hardware-isolated container, preventing potential threats from affecting the main operating system
Explanation
Windows Defender Application Guard uses hardware-based virtualization to isolate untrusted browser sessions or Office documents within a lightweight, hardware-isolated container, containing potential threats and preventing them from affecting the main operating system if the isolated content turns out to be malicious.
MCQ 10Oop & Uml
Which of the following best describes the purpose of the 'Saga' pattern in distributed, microservices-based transaction management?
A pattern that manages a sequence of local transactions across multiple services, using compensating actions to undo prior steps if a later step fails, since a single distributed ACID transaction isn't practical
A pattern that requires a single, traditional ACID transaction spanning all microservices
A synonym for the Repository pattern
A pattern used only for single-service applications
Correct answerA — A pattern that manages a sequence of local transactions across multiple services, using compensating actions to undo prior steps if a later step fails, since a single distributed ACID transaction isn't practical
Explanation
The Saga pattern coordinates a sequence of local transactions across multiple independent services, with each step having a corresponding compensating action to undo its effects if a later step in the sequence fails, since traditional distributed ACID transactions are often impractical across microservice boundaries.