Subject library

Computer MCQs

Read each question, consider the options, then reveal the correct answer and explanation.

100 MCQs 10 per page 3 of 10
MCQ 21 Computer Hardware & Architecture

Which of the following best describes the purpose of 'processor cache inclusivity' policies (inclusive vs. exclusive cache hierarchies)?

  1. A policy that determines which users can access the cache
  2. A design choice determining whether data in a smaller, faster cache level (like L1) must also exist in a larger, slower level (like L3), affecting cache coherence complexity and effective capacity
  3. A synonym for cache write-back policy
  4. A policy used only for network caches
MCQ 22 Computer Networks

Which of the following best describes the purpose of 'network overlay' technologies, such as VXLAN?

  1. To create a virtual network layer on top of an existing physical network infrastructure, allowing logical network segments to span across physical boundaries, such as multiple data centers
  2. To physically replace all underlying network hardware
  3. A synonym for a VPN used only for remote workers
  4. A technique used only for wireless networks
MCQ 23 Oop & Uml

What is the purpose of the 'Strategy' pattern combined with dependency injection in modern application design?

  1. To allow different algorithm implementations (strategies) to be injected into a class at runtime or configuration time, rather than being hardcoded, improving flexibility and testability
  2. To restrict a class to a single instance
  3. To define a family of unrelated classes
  4. A pattern used only for UI rendering
MCQ 24 Oop & Uml

What is the purpose of the 'Template Method' pattern's 'hook method', an optional step subclasses may override but aren't required to?

  1. To force every subclass to override every step of the algorithm
  2. To provide optional extension points within a fixed algorithm structure that subclasses can override if needed, but which have a sensible default (often empty) implementation if left unchanged
  3. A synonym for a pure virtual function that must always be implemented
  4. A concept used only for exception handling
MCQ 25 Web Technologies

Which of the following best describes the purpose of the HTML 'picture' element combined with 'source' tags?

  1. To allow a browser to select the most appropriate image source from several options, based on factors like screen size or supported image format
  2. To permanently disable images on slow connections
  3. A synonym for the img tag with no distinction
  4. A technique used only for background videos
MCQ 26 Computer Hardware & Architecture

What is the primary purpose of a processor's 'branch delay slot', found in some classic RISC architecture designs like early MIPS?

  1. To specify that the instruction immediately following a branch instruction is always executed regardless of whether the branch is taken, exploiting the pipeline stage that would otherwise be wasted
  2. To permanently disable branching entirely
  3. A synonym for a memory fence
  4. A feature used only for floating-point branches
MCQ 27 Web Technologies

What is the purpose of the PHP 'static' return type declaration used for a method within a class hierarchy?

  1. To indicate that a method returns an instance of the actual called class, even when invoked on a subclass, supporting patterns like fluent builders in inheritance scenarios
  2. To indicate the method belongs to a static (class-level) context only, unrelated to return type
  3. A synonym for the 'self' return type with no distinction
  4. A return type used only for constructors
MCQ 28 Oop & Uml

Which of the following best describes the purpose of the 'Bounded Context' concept in domain-driven design?

  1. A single, universal model shared identically across an entire large organization
  2. A synonym for a database table
  3. An explicit boundary within which a particular domain model applies with a consistent, precise meaning, acknowledging that the same term may mean something different in a different context elsewhere in the organization
  4. A concept used only for UI layout
MCQ 29 Oop & Uml

What is the purpose of the 'Model-View-ViewModel' (MVVM) architectural pattern, commonly used in UI frameworks?

  1. To restrict a class to a single instance
  2. A synonym for the Repository pattern
  3. To separate the UI (View) from the underlying data and business logic (Model) using an intermediary ViewModel that exposes data and commands the View can bind to, often enabling automatic UI updates
  4. A pattern used only for database access
MCQ 30 Database Pl/sql

What is the purpose of a 'fan-out' write pattern in NoSQL database design, such as for a social media feed?

  1. To permanently delete old feed entries
  2. To pre-compute and write data to multiple locations (such as each follower's individual feed) at write time, trading increased write cost for much faster read performance
  3. A synonym for database sharding
  4. A technique used only for relational databases
Continue studying

Other subjects

All categories →