DailyQuiz
About today's quiz

ProgrammingAdvanced

A new quiz is published every day for this topic and level. Answer the questions, read the explanations, and complete the quiz to keep your streak alive.

Tips before you start

  • Read every question carefully before answering. Some questions include subtle wording that changes the correct answer.
  • Take your time on the first question. There is no time limit, but your total time is tracked for your statistics.
  • After each answer, read the explanation. Even correct answers often include useful context you might not know.
  • Come back tomorrow for a brand new quiz on the same topic. Daily practice is the most effective way to retain what you learn.
AdvancedTechnology
Today's questions

Today's quiz questions

These are the questions that make up today's quiz. Test your knowledge, see how much you know, and learn from the explanation behind every answer.

  1. 1.What is a race condition?

    • A bug where the system's behavior depends on the unpredictable timing of multiple concurrent operations
    • A database error when two queries target the same row
    • A performance issue where two processes compete for CPU resources
    • A testing scenario where two tests run simultaneously
  2. 2.What is the reactor pattern?

    • The underlying pattern of React.js components
    • A pattern where components react to configuration changes
    • An event-driven pattern that demultiplexes and dispatches incoming I/O events to registered handlers using a single-threaded event loop
    • A nuclear physics simulation pattern
  3. 3.What is type erasure in Java generics?

    • A technique that automatically converts between types
    • A way to delete type definitions from Java bytecode for security
    • The compiler removes generic type information at compile time, replacing type parameters with their bounds or Object
    • A process that removes unused type declarations during compilation
  4. 4.What is the CAP theorem?

    • A theorem about CPU, Allocation, and Processing speed tradeoffs
    • A database design principle for Caching, Aggregation, and Partitioning
    • At most two of Consistency, Availability, and Partition tolerance can be guaranteed
    • A security model for Cloud, Access, and Privacy
  5. 5.What is the visitor pattern?

    • A web analytics pattern for monitoring traffic
    • A pattern where objects visit a central registry before execution
    • A pattern for tracking user visits to web pages
    • A behavioral pattern that lets you add new operations to objects without modifying their classes by separating algorithm from object structure
  6. 6.What is the Byzantine Generals Problem?

    • A distributed computing problem about reaching consensus when some participants may be malicious or faulty
    • A network routing problem with unreliable nodes
    • A database consistency problem involving multiple write conflicts
    • A military strategy problem about coordinating attacks from multiple directions
  7. 7.What is a microservices architecture?

    • A technique for running multiple programs on a single server
    • A way to compress code to make programs smaller
    • A design pattern for creating lightweight user interfaces
    • An approach where an application is built as a collection of small, independently deployable services
  8. 8.What is tail call optimization (TCO)?

    • An algorithm optimization that processes the tail of an array first
    • An optimization that removes the last function call for performance
    • A compiler optimization that reuses the current stack frame for tail calls
    • A technique for optimizing the last element in a linked list
  9. 9.What is the difference between stack and heap memory?

    • Stack is for large data; heap is for small data
    • Stack stores local variables with LIFO order and automatic management; heap stores dynamically allocated objects
    • Stack is for functions; heap is for variables
    • Stack is permanent storage; heap is temporary
  10. 10.What is the difference between strong and weak typing?

    • Strong typing is for compiled languages; weak typing is for interpreted languages
    • Strong typing enforces type rules strictly (Python, Java); weak typing allows implicit type coercion (JavaScript, C)
    • Strong typing requires type annotations; weak typing doesn't
    • Strong typing is faster; weak typing is slower