Knowledge Quizzes
Test your understanding with explained answers.
What is the difference between CSS transitions and CSS animations?
Q2cssbasicWhat are the components of the CSS box model?
Q3cssbasicWhat is the difference between content-box and border-box in CSS?
Q4cssbasicWhat does the CSS calc() function do?
Q5cssintermediateWhat is the CSS cascade and what factors determine which rule wins?
Q6cssbasicWhat is Flexbox and what problem does it solve in CSS?
Q7cssintermediateWhen should you use Flexbox vs CSS Grid for layout?
Q8cssintermediateWhy has CSS float-based layout been largely replaced?
Q9cssintermediateWhat is CSS Grid Layout and how does it differ from Flexbox?
Q10cssbasicWhich CSS properties are inherited by default?
Q11cssbasicWhat are CSS media queries and how are they used?
Q12cssintermediateWhat are the values of the CSS position property?
Q13cssintermediateWhat is the difference between pseudo-classes and pseudo-elements in CSS?
Q14cssbasicWhat are CSS pseudo-elements and how are they used?
Q15cssintermediateWhat is the mobile-first approach in responsive design?
Q16cssintermediateHow is CSS specificity calculated?
Q17cssintermediateWhy are CSS transforms preferred for animations over margin or position changes?
Q18cssbasicWhat do CSS transitions allow and how are they specified?
Q19cssintermediateWhat are CSS custom properties (variables) and what benefits do they offer?
Q20cssintermediateWhat is a stacking context in CSS and how does z-index work within it?
Q21engineeringintermediateWhat is the Adapter pattern and when should it be used?
Q22engineeringintermediateWhat is the Command pattern and what features does it enable?
Q23engineeringintermediateWhy is composition often preferred over inheritance?
Q24engineeringintermediateWhat is the Decorator pattern and how does it differ from inheritance?
Q25engineeringintermediateWhat is Dependency Injection and what benefits does it provide?
Q26engineeringintermediateWhat is the Dependency Inversion Principle (DIP)?
Q27engineeringintermediateWhat is the DRY principle and what are its limitations?
Q28engineeringintermediateWhat is the Facade pattern and what problem does it solve?
Q29engineeringintermediateWhat is the Factory pattern and when is it useful?
Q30engineeringintermediateWhat is the Interface Segregation Principle (ISP)?
Q31engineeringintermediateWhat is the Law of Demeter (principle of least knowledge)?
Q32engineeringintermediateWhat is the Liskov Substitution Principle (LSP)?
Q33engineeringintermediateWhat is the Observer pattern and where is it commonly used?
Q34engineeringintermediateWhat is the Open/Closed Principle (OCP)?
Q35engineeringintermediateWhat is the Repository pattern and why is it used?
Q36engineeringintermediateWhat is Separation of Concerns (SoC) and how is it applied?
Q37engineeringintermediateWhat is the Single Responsibility Principle (SRP)?
Q38engineeringintermediateWhat is the Singleton pattern and what are its common criticisms?
Q39engineeringintermediateWhat is the Strategy pattern and how does it relate to the Open/Closed Principle?
Q40engineeringintermediateWhat is the YAGNI principle and why is it important?
Q41error-handlingbasicWhat is the purpose of assertions in error handling?
Q42error-handlingintermediateWhat is the best practice for error handling in async/await code?
Q43error-handlingadvancedWhat is the bulkhead pattern in distributed systems?
Q44error-handlingadvancedWhat is the circuit breaker pattern and when is it used?
Q45error-handlingintermediateWhy create custom error classes in JavaScript?
Q46error-handlingadvancedWhat is a dead letter queue (DLQ) and when is it used?
Q47error-handlingintermediateWhat are effective strategies for debugging JavaScript errors?
Q48error-handlingintermediateWhat is defensive programming and what are its key principles?
Q49error-handlingintermediateWhat are error boundaries in React and what do they catch?
Q50error-handlingintermediateWhy use error codes in addition to error messages?