CS FundamentalsVery hardProduct-company placement
In domain testing for integer inputs, a program accepts points satisfying x + y ≤ 10 (a closed boundary). Which pair of test points is the correct ON point and OFF point for this boundary?
- A. ON: (5, 5); OFF: (6, 5)
- B. ON: (5, 4); OFF: (5, 5)
- C. ON: (0, 0); OFF: (10, 10)
- D. ON: (5, 5); OFF: (5, 4)
Correct answer: A. ON: (5, 5); OFF: (6, 5)
The ON point lies on the boundary (5 + 5 = 10). For a closed boundary the OFF point lies just outside it, here x + y = 11, e.g. (6, 5). For an open boundary (x + y < 10) the OFF point would lie just inside.
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
- A task has optimistic 4 days, most likely 6 days and pessimistic 20 days. What are the triangular-distribution mean (a + m + b)/3 and the…
- In IFPUG function-point counting, which of these is an external output (EO) rather than an external inquiry (EQ)?
- A database cluster needs each replica to keep a stable network name (db-0, db-1, db-2) and its own persistent volume across restarts…
- In GitOps, how does a change reach a Kubernetes cluster?
- A team stops patching running servers in place and instead builds a new machine image for every change, replacing old servers entirely…
- How many of these statements about cyclomatic complexity are correct? 1. Adding a straight-line statement to a function never changes…