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

Created with That Quiz — the site for test creation and grading in math and other subjects.