Read each question, consider the options, then reveal the correct answer and explanation.
100 MCQs10 per page5 of 10
MCQ 41C C++ Programming
Which of the following best describes the purpose of 'separation of concerns' as a software design principle?
Combining all application logic into a single, large module for simplicity
A synonym for the Singleton pattern
A principle used only for database design
Dividing a software system into distinct sections, each addressing a separate concern or responsibility, improving modularity and maintainability
Correct answerD — Dividing a software system into distinct sections, each addressing a separate concern or responsibility, improving modularity and maintainability
Explanation
Separation of concerns divides a software system into distinct, focused sections or modules, each responsible for a specific concern (like data access, business logic, or presentation), improving modularity, maintainability, and the ability to reason about and test each part independently.
MCQ 42Computer Hardware & Architecture
Which of the following best describes 'processor microcode'?
A separate, standalone operating system
Low-level instructions embedded within the CPU that translate complex machine instructions into simpler internal hardware operations, and can sometimes be updated to fix bugs
A synonym for BIOS/UEFI firmware
A type of RAM module
Correct answerB — Low-level instructions embedded within the CPU that translate complex machine instructions into simpler internal hardware operations, and can sometimes be updated to fix bugs
Explanation
Microcode is a layer of low-level instructions built into the CPU that translates complex machine-level instructions into the simpler internal operations the hardware actually executes; it can sometimes be updated via firmware or OS patches to fix certain hardware bugs or vulnerabilities.
MCQ 43Database Pl/sql
What is the purpose of a 'database connection string secrets management' practice, such as using a vault service instead of hardcoded credentials?
To permanently disable database authentication
A synonym for database encryption at rest
To securely store and dynamically retrieve sensitive database credentials at runtime, rather than embedding them directly in application source code or configuration files
A technique used only for read-only connections
Correct answerC — To securely store and dynamically retrieve sensitive database credentials at runtime, rather than embedding them directly in application source code or configuration files
Explanation
Secrets management practices securely store sensitive credentials (like database passwords) in a dedicated vault or secrets manager, retrieving them dynamically at runtime rather than hardcoding them into source code or plain configuration files, reducing the risk of credential exposure.
MCQ 44Windows Linux File Systems
What is the purpose of Windows 'Shielded VM Fabric' requirements in a Hyper-V guarded fabric deployment?
To disable virtual machines entirely
To compress virtual hard disk files
To establish a trusted host infrastructure (using components like the Host Guardian Service) that is verified before shielded virtual machines are permitted to run or migrate to it, protecting against compromised or untrusted hosts
A synonym for a standard Hyper-V installation with no additional security
Correct answerC — To establish a trusted host infrastructure (using components like the Host Guardian Service) that is verified before shielded virtual machines are permitted to run or migrate to it, protecting against compromised or untrusted hosts
Explanation
A guarded fabric establishes a verified, trusted host infrastructure using components like the Host Guardian Service, ensuring shielded virtual machines will only run on or migrate to hosts that have been attested as trustworthy, protecting against compromised or untrusted host servers.
MCQ 45Operating Systems
Which of the following best describes the purpose of 'memory overcommitment' in virtualized environments?
To allocate more total virtual memory to guest VMs than the physical host actually has, relying on the assumption that not all VMs will use their full allocation simultaneously
To guarantee that no virtual machine can ever use more memory than physically installed
A synonym for memory encryption
A technique used only for disk storage
Correct answerA — To allocate more total virtual memory to guest VMs than the physical host actually has, relying on the assumption that not all VMs will use their full allocation simultaneously
Explanation
Memory overcommitment allows a hypervisor to allocate more total memory to virtual machines than physically exists on the host, betting that not all VMs will need their full allocation at the same time, improving overall resource utilization at some risk if that assumption is violated.
MCQ 46Computer Hardware & Architecture
What is the purpose of 'processor cache prefetching' distance and stride optimization?
To tune how far ahead and in what access pattern the prefetcher speculatively loads data into cache, balancing the benefit of reduced latency against the risk of evicting useful data
To permanently disable caching entirely
A synonym for branch prediction
A technique used only for GPU memory
Correct answerA — To tune how far ahead and in what access pattern the prefetcher speculatively loads data into cache, balancing the benefit of reduced latency against the risk of evicting useful data
Explanation
Prefetch distance and stride tuning adjusts how far ahead (and following what access pattern) a cache prefetcher speculatively loads data, balancing the potential latency-hiding benefit against the risk of polluting the cache with data that displaces other useful, actively-needed data.
MCQ 47System Analysis And Design
What is the purpose of 'distributed tracing' in microservices architectures?
To physically trace network cables
To track a single request as it flows through multiple interconnected services, helping diagnose latency and errors across the entire call chain
A synonym for load balancing
A technique used only for database queries
Correct answerB — To track a single request as it flows through multiple interconnected services, helping diagnose latency and errors across the entire call chain
Explanation
Distributed tracing follows an individual request as it propagates through multiple services in a distributed system, providing visibility into where time is spent and where errors occur across the entire call chain, which is essential for debugging complex microservices architectures.
MCQ 48Oop & Uml
Which of the following best describes the purpose of the 'Null Coalescing' pattern combined with the 'Optional/Maybe' type in modern object-oriented and functional-influenced languages?
To always throw an exception when a value is missing
To provide a type-safe, explicit way to represent and handle the possible absence of a value, avoiding unchecked null reference errors
A synonym for the Singleton pattern
A pattern used only for numeric types
Correct answerB — To provide a type-safe, explicit way to represent and handle the possible absence of a value, avoiding unchecked null reference errors
Explanation
The Optional/Maybe type pattern, often paired with null-coalescing operators, provides a type-safe, explicit mechanism for representing a value that might be absent, forcing callers to handle that possibility deliberately rather than risking unchecked null reference errors at runtime.
MCQ 49Computer Hardware & Architecture
What is the primary purpose of a 'memory fence' (or memory barrier) instruction in multi-core processor programming?
To physically separate different memory chips
A synonym for cache flushing only
To enforce ordering constraints on memory operations, preventing certain reads or writes from being reordered across the fence by the CPU or compiler, which is critical for correct multi-threaded synchronization
A technique used only for single-threaded programs
Correct answerC — To enforce ordering constraints on memory operations, preventing certain reads or writes from being reordered across the fence by the CPU or compiler, which is critical for correct multi-threaded synchronization
Explanation
A memory fence (barrier) enforces ordering constraints on memory operations, preventing the CPU or compiler from reordering certain reads and writes across the fence, which is essential for correctly implementing synchronization primitives in multi-threaded and multi-core programming.
MCQ 50System Analysis And Design
What is the purpose of 'technical debt tracking' as an ongoing practice within a development team?
To permanently ignore known code quality issues
A synonym for a project's financial budget
A technique used only for hardware maintenance
To systematically document and prioritize known shortcuts, workarounds, or areas of the codebase needing improvement, ensuring they are visible and can be addressed over time rather than forgotten
Correct answerD — To systematically document and prioritize known shortcuts, workarounds, or areas of the codebase needing improvement, ensuring they are visible and can be addressed over time rather than forgotten
Explanation
Technical debt tracking systematically documents known code quality shortcuts, workarounds, or areas needing improvement, keeping them visible to the team and allowing them to be prioritized and addressed incrementally over time, rather than being forgotten and accumulating unchecked.