ThatQuiz Test Library Take this test now
ADETEC
Contributed by: Monteclaro
  • 1. What does software documentation refer to?
A) Helps new team members onboard quickly
B) Only the source code of the software
C) Written text and illustrations describing architecture, design, functionality, and usage
  • 2. In API endpoint descriptions, what information must be clearly stated?
A) Only the HTTP methods
B) Purpose, expected behavior, URL route, and HTTP methods
C) Only the description of what the endpoint does
  • 3. Which HTTP methods are commonly listed in endpoint descriptions?
A) GET, POST, PUT, DELETE
B) OPEN, CLOSE, SAVE, LOAD
C) START, STOP, PAUSE, RESUME
  • 4. Which of the following is a best practice for code documentation?
A) Avoiding any comments in the code
B) Using inline comments to explain complex logic
C) Adding redundant comments that restate obvious code
  • 5. What are docstrings used for?
A) Standardized descriptions for functions, classes, or modules
B) . To store data in the program
C) To debug the code
  • 6. Which convention is followed for Python docstrings?
A) HTML format
B) Javadoc style
C) PEP 257
  • 7. Which tool is commonly used for code documentation in C/C++, Java, and Python?
A) Confluence
B) Doxygen
C) Javadoc
  • 8. What is the purpose of Sphinx?
A) To design user interfaces
B) To compile code into executable files
C) To generate structured documentation from reStructuredText and docstrings
  • 9. Which open-source license is very permissive and allows reuse with attribution?
A) Apache License 2.0
B) MIT License
C) Creative Commons
  • 10. Which license allows modifications, requires attribution, and includes patent rights?
A) MIT License
B) Apache License 2.0
C) Creative Commons
  • 11. Creative Commons (CC) licenses are typically used for:
A) Media and documents, not software
B) Software only
C) Hardware designs
  • 12. Why is licensing important?
A) It makes the software harder to use
B) It is not necessary for open-source projects
C) It protects intellectual property and clarifies usage rights
  • 13. What is reliability in software design?
A) The ability to handle unexpected inputs without crashing
B) The ability to perform required functions under stated conditions without failure
C) The ability to be easily modified
  • 14. Which technique involves duplicating critical components to ensure fault tolerance?
A) Recovery Mechanisms
B) Error Detection & Correction
C) Redundancy
  • 15. What is used to detect data errors in software?
A) Automated testing
B) Check sums, parity bits, and validation rules
C) Redundancy
  • 16. Which type of testing ensures correctness through unit, integration, and regression tests?
A) Performance testing
B) User acceptance testing
C) Automated testing
  • 17. Which of the following is a recovery mechanism?
A) Checkpointing and rollback in databases
B) Duplicating servers
C) Using parity bits
  • 18. What is the main goal of following software documentation standards?
A) To avoid following any conventions
B) To increase the number of tools used
C) To ensure code and systems are clear, maintainable, and legally safe
  • 19. Which tool is used for interactive API documentation with live testing capabilities?
A) RAML
B) Postman
C) Swagger / OpenAPI
  • 20. What is the primary use of Postman?
A) API testing and documentation
B) Designing API schemas
C) Creating documentation websites
  • 21. Which of the following are API design and documentation languages?
A) RAML and API Blueprint
B) Swagger and OpenAPI
C) Redoc and MkDocs
  • 22. Which tool is described as a modern, clean API documentation generator?
A) Redoc
B) Sphinx
C) Postman
  • 23. Which field in an API error response provides a human-readable explanation of the issue?
A) parameters
B) status
C) message
  • 24. Which parameter represents the minimum daily temperature in API responses?
A) daily.temp.max
B) daily.feels_like
C) daily.temp.min
  • 25. What is the definition of efficiency in software design?
A) Ability to handle unexpected inputs without crashing
B) Ability to duplicate critical components
C) Optimal use of resources (time, memory, CPU) while delivering results quickly
  • 26. Recovery mechanisms include:
A) Using parity bits to detect errors
B) Duplicating critical components
C) Checkpointing and rollback in databases, retry logic
  • 27. Which example illustrates improving efficiency through algorithm choice?
A) Using linear search instead of binary search B. Using binary search instead of linear search for larg
B) Adding more servers
C) Using binary search instead of linear search for large datasets
  • 28. What is the definition of efficiency in software design?
A) Ability to duplicate critical components for fault tolerance
B) Ability to perform functions without failure over time
C) Optimal use of resources (time, memory, CPU, network) while delivering results quickly
  • 29. Which strategy involves choosing algorithms with better time complexity like O(log n) over O(n²)?
A) Caching & Memoization
B) Algorithmic Optimization
C) Database Optimization
  • 30. What is the purpose of code profiling?
A) To avoid memory leaks
B) To use multithreading
C) To identify performance bottlenecks using tools
  • 31. Which technique stores results of expensive computations to avoid reprocessing?
A) Caching & Memoization
B) Caching & Memoization
C) Resource Management
  • 32. What does resource management focus on?
A) Handling exceptions
B) Avoiding memory leaks and releasing unused objects
C) Testing edge cases
  • 33. Which approach uses multithreading and asynchronous programming to improve performance?
A) Parallelism & Concurrency
B) Database Optimization
C) Algorithmic Optimization
  • 34. Database optimization includes which of the following?
A) Exception handling
B) Indexing, query optimization, and normalization/denormalization trade-offs
C) Caching all data
  • 35. What is unit testing?
A) Testing individual units of code (functions, classes, methods) in isolation
B) Testing after full integration
C) Testing only the user interface
  • 36. Which of the following is a benefit of unit testing?
A) Makes code harder to modify
B) Improves code maintainability and reduces regression issues
C) Increases development time significantly
  • 37. What is Continuous Integration (CI)?
A) Working on code in isolation without sharing
B) Testing only once before release
C) Frequently integrating code into a shared repository and running automated tests
  • 38. What is the main goal of Continuous Integration?
A) To reduce the number of tests
B) To delay integration until the end
C) To ensure new code does not break existing functionality
  • 39. What is the definition of robustness in software design?
A) Ability to handle unexpected situations gracefully without crashing or incorrect results
B) Ability to recover from failures automatically
C) Ability to use resources optimallyWhich practice involves never trusting user input and checking ranges, types, and formats?
  • 40. Which practice involves never trusting user input and checking ranges, types, and formats?
A) Exception Handling
B) Fail-Safe Defaults
C) Input Validation
  • 41. What is boundary testing?
A) Using try/except blocks
B) Testing minimum, maximum, and out-of-range values
C) Testing only valid inputs
  • 42. Which programming constructs are used for proper exception handling in Python?
A) if/else
B) try/except
C) loops
  • 43. What are fail-safe defaults?
A) Allowing any input without checks
B) Defaulting to secure/safe behavior if inputs are invalid
C) Showing technical errors to users
  • 44. What is defensive programming?
A) Writing complex code to prevent errors
B) Avoiding any error handling
C) Anticipating and guarding against potential failures
  • 45. What are assertions & contracts used for?
A) To retry failed operations
B) To define preconditions, postconditions, and invariants
C) To log runtime information
  • 46. What is retry logic?
A) Stopping the system on failure
B) Automatically retrying operations like API calls if they fail
C) Ignoring failed operations
  • 47. What is the purpose of logging & monitoring?
A) To collect runtime information for debugging and failure analysis
B) To prevent errors from happening
C) To speed up the code
  • 48. What is automated recovery?
A) Ignoring failures
B) Implementing watchdogs or self-healing services
C) Manually fixing errors
  • 49. Which testing framework is used for Python?
A) JUnit
B) Jest
C) pytest
  • 50. Which of the following is an example of robust code?
A) Code that only works with perfect inputs
B) Code that does not have any error handling
C) A login form that handles incorrect passwords gracefully without crashing
Created with That Quiz — the site for test creation and grading in math and other subjects.