CS FundamentalsHardProduct-company placement
A tester has no reliable way to know the correct output for a complex scientific simulation, so she checks that doubling every input mass doubles the computed momentum. Which idea is she using?
- A. Metamorphic testing, which checks relations between outputs to work around the test-oracle problem
- B. Mutation testing
- C. Equivalence partitioning
- D. Smoke testing
Correct answer: A. Metamorphic testing, which checks relations between outputs to work around the test-oracle problem
When the expected output of a single run is unknown (the oracle problem), metamorphic testing checks a known relation between the outputs of related runs. Mutation testing evaluates the test suite instead of the program.
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
- In which situation does a suite with 100% decision (branch) coverage still NOT achieve 100% multiple-condition coverage?
- You append line L1 to a tracked file f.txt, run git add f.txt, and then append line L2. Which statement about the three diff commands is…
- main has commits A-B-C-D. feature was created at B and has commits E-F. How many commits do git log main..feature and git log…
- On main (…-C-D) you run git merge feature, where feature has E-F-G, creating merge commit M. Its first parent is D and its second is G…
- On main with tip D (history A-B-C-D) you accidentally run git reset --hard HEAD~2. Which command brings the branch back to D, assuming…
- A merge commit M on main brought in a feature that turns out to be broken. Running git revert M fails. Why, and what is the fix?