CS FundamentalsHardTCS NQT · Infosys pattern
How many of the following are white-box (structural) testing techniques? 1. Branch (decision) coverage 2. Basis path testing 3. Boundary value analysis 4. Data-flow (def-use) testing
- A. Only one
- B. Only two
- C. Only three
- D. All four
Correct answer: C. Only three
Branch coverage, basis path testing and data-flow testing need the code's structure, so they are white-box (1, 2 and 4). Boundary value analysis works only from the input specification, so it is black-box. So three are white-box.
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
- You cherry-pick commit X from branch feature onto main. Which statement is correct?
- git push origin main is rejected with a 'non-fast-forward' error. What does it mean, and what is the correct fix on a shared branch?
- Which document records what a system must do — its functional and non-functional requirements — as agreed with the client before design…
- Before a sale, a team checks that its shopping site still responds well with 10,000 concurrent users, the expected peak. Which type of…
- Which of the following is a NON-functional requirement for an online banking app?
- An age field accepts integers from 18 to 60 inclusive. Which set of test values corresponds to ROBUST boundary value analysis for this…