Knowledge Quizzes

Test your understanding with explained answers.

Q1cssintermediate

What is the difference between CSS transitions and CSS animations?

Q2cssbasic

What are the components of the CSS box model?

Q3cssbasic

What is the difference between content-box and border-box in CSS?

Q4cssbasic

What does the CSS calc() function do?

Q5cssintermediate

What is the CSS cascade and what factors determine which rule wins?

Q6cssbasic

What is Flexbox and what problem does it solve in CSS?

Q7cssintermediate

When should you use Flexbox vs CSS Grid for layout?

Q8cssintermediate

Why has CSS float-based layout been largely replaced?

Q9cssintermediate

What is CSS Grid Layout and how does it differ from Flexbox?

Q10cssbasic

Which CSS properties are inherited by default?

Q11cssbasic

What are CSS media queries and how are they used?

Q12cssintermediate

What are the values of the CSS position property?

Q13cssintermediate

What is the difference between pseudo-classes and pseudo-elements in CSS?

Q14cssbasic

What are CSS pseudo-elements and how are they used?

Q15cssintermediate

What is the mobile-first approach in responsive design?

Q16cssintermediate

How is CSS specificity calculated?

Q17cssintermediate

Why are CSS transforms preferred for animations over margin or position changes?

Q18cssbasic

What do CSS transitions allow and how are they specified?

Q19cssintermediate

What are CSS custom properties (variables) and what benefits do they offer?

Q20cssintermediate

What is a stacking context in CSS and how does z-index work within it?

Q21engineeringintermediate

What is the Adapter pattern and when should it be used?

Q22engineeringintermediate

What is the Command pattern and what features does it enable?

Q23engineeringintermediate

Why is composition often preferred over inheritance?

Q24engineeringintermediate

What is the Decorator pattern and how does it differ from inheritance?

Q25engineeringintermediate

What is Dependency Injection and what benefits does it provide?

Q26engineeringintermediate

What is the Dependency Inversion Principle (DIP)?

Q27engineeringintermediate

What is the DRY principle and what are its limitations?

Q28engineeringintermediate

What is the Facade pattern and what problem does it solve?

Q29engineeringintermediate

What is the Factory pattern and when is it useful?

Q30engineeringintermediate

What is the Interface Segregation Principle (ISP)?

Q31engineeringintermediate

What is the Law of Demeter (principle of least knowledge)?

Q32engineeringintermediate

What is the Liskov Substitution Principle (LSP)?

Q33engineeringintermediate

What is the Observer pattern and where is it commonly used?

Q34engineeringintermediate

What is the Open/Closed Principle (OCP)?

Q35engineeringintermediate

What is the Repository pattern and why is it used?

Q36engineeringintermediate

What is Separation of Concerns (SoC) and how is it applied?

Q37engineeringintermediate

What is the Single Responsibility Principle (SRP)?

Q38engineeringintermediate

What is the Singleton pattern and what are its common criticisms?

Q39engineeringintermediate

What is the Strategy pattern and how does it relate to the Open/Closed Principle?

Q40engineeringintermediate

What is the YAGNI principle and why is it important?

Q41error-handlingbasic

What is the purpose of assertions in error handling?

Q42error-handlingintermediate

What is the best practice for error handling in async/await code?

Q43error-handlingadvanced

What is the bulkhead pattern in distributed systems?

Q44error-handlingadvanced

What is the circuit breaker pattern and when is it used?

Q45error-handlingintermediate

Why create custom error classes in JavaScript?

Q46error-handlingadvanced

What is a dead letter queue (DLQ) and when is it used?

Q47error-handlingintermediate

What are effective strategies for debugging JavaScript errors?

Q48error-handlingintermediate

What is defensive programming and what are its key principles?

Q49error-handlingintermediate

What are error boundaries in React and what do they catch?

Q50error-handlingintermediate

Why use error codes in addition to error messages?