CS FundamentalsModerateTCS NQT · Wipro
How many of these are static testing activities: (1) a peer code review, (2) running a linter such as ESLint, (3) executing unit tests with a coverage tool, (4) a requirements walkthrough, (5) load testing in a staging environment, (6) desk-checking an algorithm on paper?
- A. 4
- B. 3
- C. 5
- D. 2
Correct answer: A. 4
Static testing examines artefacts without executing the code: reviews, linters/static analysis, walkthroughs and desk-checks (1, 2, 4, 6). Unit tests and load tests run the software, so they are dynamic.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Assertion (A): A Fagan inspection is more formal than a walkthrough. Reason (R): An inspection is led by a trained moderator, follows…
- An integer quantity field accepts 1 to 100. The discount is 0% for 1-10, 10% for 11-50 and 20% for 51-100. Using two-value boundary value…
- A mutant changes if (x > 10 && x < 20) to if (x >= 10 && x < 20). Which single test input kills (distinguishes) this mutant?
- After a change to functions f1, f3 and f5, a team wants the smallest regression subset that exercises all three. Tests cover: T1 {f1, f2}…
- What is the minimum number of tests that gives 100% statement coverage of this fragment? python if a > 0: if b > 0: X() else: Y() else: Z()
- A function contains if x > 5: A() followed later by if x < 3: B(), and x is not changed between them. How many entry-to-exit paths are…