CSS422 - Week 2 Pretest with correct answers 100% 2026
CSS422 - Week 2 Pretest with correct answers 100% 2026 Why should you use minimum inline comments in the code? - Correct Answer Because it is very easy to confuse inline comments as part of the code itself Which of the following approaches are used in writing integration tests? Choose all that apply. - Correct Answer 1. Bottom-up 2. Top-Down 3. Big-bang Which of the following doesn't require test cases to be derived formally from the unittest.TestCase module? - Correct Answer pytest Which of the following statements are true for load testing and stress testing? choose two. - Correct Answer 1. Load testing assesses how a system performs under a certain specific demand either in terms of the number of concurrent users, input data, or transactions 2. Stress testing tests the robustness and response of a system when some inputs present a sudden or high rate of growth and go to extreme limits. What are helper modules? - Correct Answer Mediators that abstract common services for other modules so that the dependent code is all available in one place without duplication The Zen of Python is a set of principles that influence the design of the Python programming language. How many principles does the Zen of Python have? - Correct Answer 20 Which of the following approaches tests components at the lower level first and then uses these test results to integrate tests of the higher-level components in the chain? - Correct Answer Bottom-up Which tool is used for automated integration, regression, and validation tests for a number of software applications? - Correct Answer Selenium Which of the following is an inline unit test in a function, class, or module documentation, which adds a lot of value by combining code and tests in one place without having to develop or maintain separate test suites? - Correct Answer doctest Which of the following tools is used to detect a range of coding errors, code smells, and style errors? - Correct Answer Pylint Which of the following statements describes the difference between black-box testing and white-box testing? choose two. - Correct Answer 1. Black-box testing tests the end-user functionality of a system without bothering about its internal details, whereas white-box testing tests individual functions, methods, classes, or modules that make up the software. 2. Black-box testing is usually performed by someone who is outside the development team, whereas white-box testing is implemented by developers who have visibility into the software code themselves. Which of the following is not a late binding technique? - Correct Answer Maintainability of software. How many stages are there in ? - Correct Answer Two Which of the following is true about the aspects of readability? Choose three. - Correct Answer 1. A piece of code is well-written if the logic is clear and concise. 2. A piece of code is well-written if it uses simple syntax and well-known features and idioms of the language. 3. A well-documented piece of code tells what it does, what its input arguments are, and what is
Geschreven voor
- Instelling
- Computer Science
- Vak
- Computer Science
Documentinformatie
- Geüpload op
- 14 mei 2026
- Aantal pagina's
- 4
- Geschreven in
- 2025/2026
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
-
why should you use minimum inline comments in the