CS FundamentalsHardGATE CS · TCS NQT Prime · Product Company SDE
What is the difference between 'verification' performed via a static code review (e.g. a peer reading the diff) and verification performed via automated testing?
- A. Code review always finds more bugs than automated testing in every case
- B. Automated testing can review code style but never actual behaviour
- C. They are functionally identical activities with no difference
- D. A code review can catch design issues, readability problems and some logic errors through human judgement before execution, while automated tests verify actual run-time behaviour against expected results; they are complementary, not interchangeable
Correct answer: D. A code review can catch design issues, readability problems and some logic errors through human judgement before execution, while automated tests verify actual run-time behaviour against expected results; they are complementary, not interchangeable
Static review relies on human reasoning about the code without running it, catching things like poor design or unclear logic; automated tests instead exercise the code's actual run-time behaviour, so good practice uses both together.
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
- Using Basic COCOMO for a embedded mode project (Effort = 3.6 × (KLOC)^1.2 person-months), what is the estimated effort for a 40 KLOC…
- A UI toolkit must produce whole FAMILIES of related objects (e.g. matching Button, Checkbox and Scrollbar for either a 'dark theme' or…
- A UML activity diagram is best suited for modelling:
- A system accepts a value from 18 to 98 inclusive. Using equivalence partitioning, what is the minimum number of test cases needed to cover…
- What distinguishes Continuous Delivery from Continuous Deployment?
- Which cloud deployment model keeps some infrastructure on-premises or in a private cloud while bursting to a public cloud for extra…