About today's quiz
Programming — Advanced
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.What are algebraic data types (ADTs)?
- •A type system specific to functional programming languages
- •Mathematical formulas used to calculate type sizes
- •Composite types formed by combining other types using sum types (OR) and product types (AND)
- •Data types that only support algebraic operations (addition, multiplication)
2.What is the purpose of a message queue like RabbitMQ or Kafka?
- •To encrypt communication between servers
- •To balance network traffic across multiple servers
- •To store large amounts of data permanently
- •To enable asynchronous communication between services by buffering and routing messages
3.What is the time complexity of quicksort in the average case?
- •O(log n)
- •O(n²)
- •O(n)
- •O(n log n)
4.What is a lock-free data structure?
- •A data structure that cannot be modified after creation
- •A concurrent data structure that guarantees system-wide progress without using mutex locks, using atomic operations instead
- •A data structure that doesn't require initialization
- •A data structure without access restrictions
5.What is the CAP theorem?
- •A security model for Cloud, Access, and Privacy
- •At most two of Consistency, Availability, and Partition tolerance can be guaranteed
- •A database design principle for Caching, Aggregation, and Partitioning
- •A theorem about CPU, Allocation, and Processing speed tradeoffs
6.What is event sourcing?
- •A logging mechanism that records all system events
- •A system that responds to user events like clicks and keystrokes
- •A pattern that stores state changes as a sequence of immutable events rather than storing current state directly
- •A design pattern for event-driven user interfaces
7.What is the difference between monorepo and polyrepo?
- •Monorepo is managed by one team; polyrepo by multiple teams
- •Monorepo uses one language; polyrepo allows multiple languages
- •Monorepo stores all projects in one repository; polyrepo uses separate repositories for each project
- •Monorepo is for monolithic apps; polyrepo is for microservices
8.What is the difference between symmetric and asymmetric encryption?
- •Asymmetric encryption doesn't require keys
- •Symmetric is for text; asymmetric is for binary data
- •Symmetric is faster and therefore always preferred
- •Symmetric uses the same key for encryption and decryption; asymmetric uses a public key to encrypt and a private key to decrypt
9.What is the visitor pattern?
- •A behavioral pattern that lets you add new operations to objects without modifying their classes by separating algorithm from object structure
- •A pattern where objects visit a central registry before execution
- •A pattern for tracking user visits to web pages
- •A web analytics pattern for monitoring traffic
10.What is the GIL (Global Interpreter Lock) in Python?
- •A security feature that prevents unauthorized code execution
- •A garbage collection mechanism unique to Python
- •A feature that ensures all Python code is globally interpreted
- •A mutex that protects Python objects from concurrent access, preventing true multi-threading for CPU-bound tasks in CPython