Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.
Web Testing & DebuggingEasy
Q1. What is unit testing?
- A.Testing individual functions of code in isolation✓ Correct
- B.Testing the entire application end to end
- C.Testing only the database layer and queries
- D.Testing CSS styles across different browsers
Explanation
Unit testing verifies that individual functions work correctly in isolation.
Report an error in this question
Web Testing & DebuggingEasy
Q2. What is a bug in software?
- A.A planned feature in the software design
- B.A CSS property that is incorrectly applied
- C.An error in code causing unexpected behavior✓ Correct
- D.A computer virus that damages system files
Explanation
A bug is a defect that causes incorrect or unexpected results.
Report an error in this question
Web Testing & DebuggingEasy
Q3. What is the browser developer console used for?
- A.Writing CSS styles for page elements
- B.Managing database records and schemas
- C.Debugging JavaScript and inspecting elements✓ Correct
- D.Designing web page visual layouts
Explanation
The developer console provides tools for debugging and inspecting web applications.
Report an error in this question
Web Testing & DebuggingEasy
Q4. What is console.log() used for in debugging?
- A.Creating a user activity log in the database
- B.Outputting values to the console for inspection✓ Correct
- C.Sending logs to the remote server for storage
- D.Creating log files on the server disk
Explanation
console.log() prints values to the console for inspection during debugging.
Report an error in this question
Web Testing & DebuggingEasy
Q5. What is a test case?
- A.Conditions to verify a feature works correctly✓ Correct
- B.A computer case for housing hardware
- C.A CSS container for grouping styled elements
- D.A JavaScript class for creating object types
Explanation
A test case defines inputs, conditions, and expected results to verify a feature.
Report an error in this question
Web Testing & DebuggingEasy
Q6. What is manual testing?
- A.Testing with reference to user documentation
- B.Testing only the documentation for accuracy
- C.Testing performed using automated tools
- D.Testing software by hand without automation✓ Correct
Explanation
Manual testing involves a human tester executing test cases by hand.
Report an error in this question
Web Testing & DebuggingEasy
Q7. What does a breakpoint do in debugging?
- A.Pauses code execution at a specific line for inspection✓ Correct
- B.Breaks the code permanently so it stops running
- C.Breaks the CSS layout causing elements to misalign
- D.Creates a responsive breakpoint for media queries
Explanation
A breakpoint pauses execution at a designated line.
Report an error in this question
Web Testing & DebuggingEasy
Q8. What is the Network tab in browser DevTools for?
- A.Managing network configuration settings in browser
- B.Creating network topology diagrams for documentation
- C.Connecting to WiFi network for internet access
- D.Monitoring HTTP requests, responses, and their timing✓ Correct
Explanation
The Network tab shows all HTTP requests made by the page.
Report an error in this question
Web Testing & DebuggingEasy
Q9. What is regression testing?
- A.Re-testing features after changes to check nothing broke✓ Correct
- B.Testing CSS regression across different browsers
- C.Testing database regression after schema updates
- D.Testing a feature for the very first time
Explanation
Regression testing verifies that features still work after changes.
Report an error in this question
Web Testing & DebuggingEasy
Q10. What is a linter?
- A.A debugger for stepping through code execution
- B.A CSS framework for responsive page layouts
- C.A testing framework for automated unit testing
- D.A tool analyzing code for errors and style violations✓ Correct
Explanation
A linter statically analyzes code to detect errors and style inconsistencies.
Report an error in this question
Web Testing & DebuggingMedium
Q11. What is integration testing?
- A.Testing CSS integration across page components
- B.Testing only the user interface visual appearance
- C.Testing individual functions in complete isolation
- D.Testing how multiple modules work together as a group✓ Correct
Explanation
Integration testing verifies that different modules work correctly together.
Report an error in this question
Web Testing & DebuggingMedium
Q12. What is end-to-end (E2E) testing?
- A.Testing from start to finish of the codebase
- B.Testing exclusively the backend server logic only
- C.Testing the complete application from user perspective✓ Correct
- D.Testing only a single API endpoint in isolation
Explanation
E2E testing simulates real user scenarios across the entire application stack.
Report an error in this question
Web Testing & DebuggingMedium
Q13. What is Jest?
- A.A JavaScript testing framework for unit and integration tests✓ Correct
- B.A web server for hosting test environments and staging
- C.A database tool for testing query performance and accuracy
- D.A CSS framework for responsive web design
Explanation
Jest is a popular JavaScript testing framework with built-in assertions and mocking.
Report an error in this question
Web Testing & DebuggingMedium
Q14. What is Cypress used for?
- A.API testing only without any browser interaction
- B.End-to-end testing of web apps in a real browser✓ Correct
- C.CSS processing and compilation of style files
- D.Database testing for query performance and accuracy
Explanation
Cypress is an E2E testing framework that runs tests in a real browser.
Report an error in this question
Web Testing & DebuggingMedium
Q15. What is mocking in testing?
- A.Making fun of poorly written source code
- B.Creating fake implementations to isolate tested code✓ Correct
- C.A debugging method tracking variable value changes
- D.A CSS technique simulating dynamic state changes
Explanation
Mocking replaces real dependencies with controlled fake versions.
Report an error in this question
Web Testing & DebuggingMedium
Q16. What is code coverage?
- A.Covering code with explanatory inline comments
- B.A security feature for protecting sensitive source code files
- C.A metric measuring what percentage of code tests execute✓ Correct
- D.A CSS overlay property for stacking visual layer elements
Explanation
Code coverage measures the percentage of code executed by tests.
Report an error in this question
Web Testing & DebuggingMedium
Q17. What is Test-Driven Development (TDD)?
- A.Writing tests before code, then implementing to pass✓ Correct
- B.Developing tests after all code is fully written
- C.A debugging technique for tracing execution flow
- D.A testing framework for running automated test suites
Explanation
TDD writes a failing test first, then writes code to pass it.
Report an error in this question
Web Testing & DebuggingMedium
Q18. What is a test suite?
- A.A hotel suite used for testing software
- B.A debugging tool for inspecting test output data
- C.A collection of related test cases grouped together✓ Correct
- D.A CSS test framework for visual regression testing
Explanation
A test suite is a group of related test cases.
Report an error in this question
Web Testing & DebuggingMedium
Q19. What is snapshot testing?
- A.Comparing current output against a stored reference✓ Correct
- B.A database backup for point-in-time recovery
- C.A version control feature for branching code
- D.Taking screenshots of the application pages
Explanation
Snapshot testing compares serialized output against a reference.
Report an error in this question
Web Testing & DebuggingMedium
Q20. What is the purpose of assertion libraries?
- A.To assert database values match expected outputs
- B.To create assertions within HTML for validation
- C.To provide methods verifying expected code results✓ Correct
- D.To assert CSS values match the design mockups
Explanation
Assertion libraries verify expected outcomes in test cases.
Report an error in this question
Web Testing & DebuggingHard
Q21. What is the testing pyramid?
- A.A database structure for hierarchical data storage
- B.A pyramid-shaped test data structure for storage
- C.Many unit tests, fewer integration, fewest E2E tests✓ Correct
- D.A CSS shape rendered using clip-path properties
Explanation
The testing pyramid recommends many unit tests, fewer integration, and very few E2E tests.
Report an error in this question
Web Testing & DebuggingHard
Q22. What is mutation testing?
- A.Testing DNA sequences in bioinformatics research
- B.Testing code changes before merging into main branch
- C.Database mutation testing for verifying data integrity
- D.Introducing small code changes to verify tests detect them✓ Correct
Explanation
Mutation testing modifies source code and checks if tests catch the changes.
Report an error in this question
Web Testing & DebuggingHard
Q23. What is the difference between stubs and mocks?
- A.Mocks are simpler and less capable than stub versions
- B.They are identical in their testing approach
- C.Stubs give predetermined responses; mocks verify interactions✓ Correct
- D.Stubs verify that specific method interactions occurred
Explanation
Stubs return predefined data, while mocks also verify specific method calls.
Report an error in this question
Web Testing & DebuggingHard
Q24. What is visual regression testing?
- A.Testing CSS variables across different components
- B.Testing image quality and resolution across screen sizes
- C.Testing color contrast for accessibility compliance
- D.Comparing screenshots across versions for visual changes✓ Correct
Explanation
Visual regression testing compares screenshots pixel-by-pixel to detect UI changes.
Report an error in this question
Web Testing & DebuggingHard
Q25. What is contract testing in microservices?
- A.Legal testing of software license agreements
- B.CSS contract testing for cross-browser consistency
- C.Testing employment contracts for HR compliance
- D.Verifying services communicate per agreed interfaces✓ Correct
Explanation
Contract testing ensures API providers and consumers agree on request/response formats.
Report an error in this question
Web Testing & DebuggingHard
Q26. What is fuzz testing?
- A.Testing with blurry images for visual quality checks
- B.Providing random invalid data to find vulnerabilities✓ Correct
- C.Testing with fuzzy logic algorithms for AI systems
- D.CSS filter testing for verifying blur effect output
Explanation
Fuzz testing bombards software with random input to discover vulnerabilities.
Report an error in this question
Web Testing & DebuggingHard
Q27. What is the purpose of Selenium?
- A.A JavaScript runtime for executing server-side scripts
- B.A framework for automating browser testing interactions✓ Correct
- C.A CSS preprocessor for compiling advanced style syntax
- D.A chemical element found in nature supplements
Explanation
Selenium automates web browser actions for cross-browser E2E testing.
Report an error in this question
Web Testing & DebuggingHard
Q28. What is Playwright?
- A.A CSS animation tool for creating transition effects
- B.A theater tool for managing stage performances
- C.A modern testing framework with auto-wait and isolation✓ Correct
- D.A database testing tool for verifying query accuracy
Explanation
Playwright offers modern features like auto-waiting and browser context isolation.
Report an error in this question
Web Testing & DebuggingHard
Q29. What is chaos engineering?
- A.A random testing approach without defined test cases
- B.Random coding without any structure or planning
- C.Deliberately introducing failures to test resilience✓ Correct
- D.A messy code style ignoring best practices rules
Explanation
Chaos engineering injects failures to verify the system handles them gracefully.
Report an error in this question
Web Testing & DebuggingHard
Q30. What is the difference between black-box and white-box testing?
- A.Black-box tests without code knowledge; white-box tests with✓ Correct
- B.They are identical in their testing methodology
- C.Black-box testing requires full access to source code
- D.White-box testing ignores internal implementation details
Explanation
Black-box evaluates functionality without seeing code, white-box uses knowledge of internal structure.
Report an error in this question