CS FundamentalsHardService-company placement · ISTQB-style
A state machine has 4 states and 3 possible events, with 5 valid transitions defined. A tester also wants negative tests for every (state, event) pair that should be rejected. How many such pairs are there?
- A. 12
- B. 5
- C. 7
- D. 3
Correct answer: C. 7
A full state table has 4 × 3 = 12 cells; 5 are valid transitions, so 7 are invalid pairs, each checking that the event is rejected or ignored. Testing only the 5 valid ones is 0-switch coverage.
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
- For integer x, what is the weakest precondition wp(if x > 0 then y := x else y := −x, y ≥ 2)?
- An IDE has a small core that loads, at start-up, independently developed extensions which register through defined extension points. Which…
- An order flow touches payment, inventory and shipping services. In design 1 each service reacts to events from the others; in design 2 one…
- A producer emits 10,000 events per second into a stream whose consumer can process 2,000 per second. Which reactive-streams mechanism lets…
- A table of user events is sharded by event date, and all writes for today land on one shard, which is overloaded while others sit idle…
- Match each cost-of-quality category with an example. P. Prevention Q. Appraisal R. Internal failure S. External failure 1. Reworking a…