Model Based Tester Practice Exam, Exams of Technology

A structured practice exam covering MBT principles, modeling languages, test generation techniques, UML state diagrams, activity flows, decision modeling, and test automation interfaces. Students work through modeling exercises, coverage analysis, and requirement-to-model transformation tasks. This prepares them to apply MBT in complex systems with high variability.

Typology: Exams

2025/2026

Available from 01/09/2026

shilpi-jain-1
shilpi-jain-1 🇮🇳

4.2

(5)

29K documents

1 / 101

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Model Based Tester Practice Exam
**Question 1. Which of the following best describes the primary purpose of ModelBased
Testing (MBT)?**
A) To replace all manual testing activities
B) To generate test cases automatically from a formal model of the system
C) To eliminate the need for requirements documentation
D) To perform performance testing only
Answer: B
Explanation: MBT’s core purpose is to use a model representing the expected behavior of the
system to automatically derive test cases, increasing efficiency and coverage.
**Question 2. One of the expected benefits of MBT is improved traceability. How is traceability
achieved?**
A) By linking model elements directly to requirements and test cases
B) By recording execution times of each test script
C) By generating random test data
D) By using only blackbox testing techniques
Answer: A
Explanation: Traceability in MBT comes from explicit links between requirements, model
components, and the generated test cases, allowing impact analysis and coverage verification.
**Question 3. Which of the following is a common pitfall when adopting MBT?**
A) Overestimating the effort required to create and maintain models
B) Using too many test automation tools simultaneously
C) Ignoring functional requirements completely
D) Relying solely on manual test execution
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Model Based Tester Practice Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which of the following best describes the primary purpose of Model‑Based Testing (MBT)? A) To replace all manual testing activities B) To generate test cases automatically from a formal model of the system C) To eliminate the need for requirements documentation D) To perform performance testing only Answer: B Explanation: MBT’s core purpose is to use a model representing the expected behavior of the system to automatically derive test cases, increasing efficiency and coverage. Question 2. One of the expected benefits of MBT is improved traceability. How is traceability achieved? A) By linking model elements directly to requirements and test cases B) By recording execution times of each test script C) By generating random test data D) By using only black‑box testing techniques Answer: A Explanation: Traceability in MBT comes from explicit links between requirements, model components, and the generated test cases, allowing impact analysis and coverage verification. Question 3. Which of the following is a common pitfall when adopting MBT? A) Over‑estimating the effort required to create and maintain models B) Using too many test automation tools simultaneously C) Ignoring functional requirements completely D) Relying solely on manual test execution

Answer: A Explanation: A frequent misconception is that modeling effort is negligible; in reality, building and maintaining accurate models can be resource‑intensive. Question 4. In the MBT process, which artifact represents the abstract description of a test before it is turned into executable code? A) Concrete test script B) Test data file C) Abstract test case D) Defect report Answer: C Explanation: An abstract test case captures the sequence of model steps without implementation details; it is later transformed into a concrete, executable script. Question 5. When integrating MBT into a Waterfall lifecycle, at which phase is the model typically created? A) Requirements analysis B) Implementation coding C) System testing D) Maintenance Answer: A Explanation: In Waterfall, the model is most naturally produced during requirements analysis, when system behavior is being defined and documented.

Answer: B Explanation: Workflow models (e.g., activity diagrams) focus on the flow of activities, branching, and synchronization. Question 9. In a state‑transition model, which of the following is essential? A) Activity pools B) States and transitions triggered by events C) Gantt charts D) Test data tables Answer: B Explanation: State‑transition models consist of defined states and the events that cause transitions between them, making them ideal for reactive systems. Question 10. Which type of MBT model would you choose to verify performance‑related test objectives? A) Functional state machine B) Data flow diagram C) Performance‑oriented stochastic model (e.g., Markov chain) D) Use‑case diagram Answer: C Explanation: Stochastic models like Markov chains capture probabilistic behavior and timing, suitable for performance analysis. Question 11. Which of the following is a graphical modeling language commonly used for MBT?

A) Regular expressions B) UML activity diagrams C) SQL DDL D) JSON schema Answer: B Explanation: UML activity diagrams are a graphical notation that can represent workflows and are frequently employed in MBT. Question 12. Formal languages such as finite state machines are preferred for which kind of system? A) Static web pages B) Reactive or event‑driven systems C) Document management systems D) Spreadsheet applications Answer: B Explanation: Reactive systems react to events; finite state machines precisely capture state changes caused by events. Question 13. A Domain‑Specific Language (DSL) for MBT is most beneficial when: A) The system under test is generic and has no unique characteristics B) The testing team lacks any modeling experience C) The domain has specific concepts that can be expressed concisely in the DSL D) The project budget is unlimited Answer: C

C) Traceability and impact analysis D) Reducing code size Answer: C Explanation: Linking provides a clear map from requirements to test cases, enabling impact analysis when requirements change. Question 17. Reusing an existing requirements model as an MBT model is appropriate when: A) The requirements model already captures behavior at the level of detail needed for testing B) The requirements model is written in natural language only C) The project uses a different programming language than the model was written for D) The test team prefers manual testing Answer: A Explanation: If the requirements model is sufficiently detailed and formal, it can be directly leveraged for MBT, saving effort. Question 18. Which tool category assists in checking the logical consistency of an MBT model? A) Load testing tools B) Model checkers C) Code coverage analyzers D) Bug tracking systems Answer: B

Explanation: Model checkers automatically explore state spaces to detect logical errors, deadlocks, or unreachable states. Question 19. Iterative development of an MBT model typically includes: A) Building the entire model once and never revisiting it B) Incremental additions, reviews, and validation after each sprint C) Ignoring stakeholder feedback after the first iteration D) Using only manual test case generation Answer: B Explanation: Iterative development aligns with Agile practices, allowing continuous refinement, review, and validation of the model. Question 20. Which of the following is a model‑coverage criterion? A) All equivalence classes B) All decision table rows C) All states of the model must be visited at least once D) All boundary values Answer: C Explanation: Model‑coverage criteria focus on the model itself; “all‑states” coverage requires each state to be exercised by at least one test. Question 21. The “all‑transitions” coverage criterion ensures that: A) Every possible input value is used B) Every transition between states in the model is executed at least once C) All software modules are executed

Question 24. Which level of automation generates concrete test scripts directly from a model without human intervention? A) Manual generation B) Semi‑automated (human reviews) C) Fully automated generation D) No generation (only abstract tests) Answer: C Explanation: Fully automated generation transforms abstract test cases into executable scripts automatically. Question 25. When combining test selection criteria, a common best practice is to: A) Use only one criterion to keep the suite small B) Prioritize criteria based on risk and criticality of requirements C) Randomly select criteria for each model D) Apply all possible criteria regardless of effort Answer: B Explanation: Prioritizing based on risk ensures that the most important aspects receive adequate test coverage while managing effort. Question 26. Abstract test cases differ from concrete test scripts primarily in that: A) Abstract cases contain detailed Selenium commands B) Abstract cases are language‑independent and lack implementation details C) Abstract cases are executed directly on the system under test D) Abstract cases are stored in binary format

Answer: B Explanation: Abstract test cases describe the logical steps derived from the model without tying them to a specific automation language or tool. Question 27. Which execution mode runs the generated test steps directly against a running system without pre‑generated code? A) Offline execution B. Online (on‑the‑fly) execution C) Batch execution D) Manual execution Answer: B Explanation: Online execution interprets abstract test steps at runtime, interacting with the system directly, often via a test harness. Question 28. Test adaptation in MBT is required because: A) Abstract test cases cannot be understood by developers B) The generated abstract tests need to be translated into executable scripts that match the test environment and toolchain C) Test adaptation improves code coverage automatically D) It reduces the number of test cases Answer: B Explanation: Adaptation bridges the gap between high‑level model steps and concrete commands that can be run by automation tools. Question 29. After a change in requirements, the most efficient way to keep the test suite up‑to‑date is to:

Explanation: Requirement coverage by generated tests directly reflects how well MBT is achieving its intended coverage goals. Question 32. Which practice helps manage the cost of MBT tooling? A) Purchasing the most expensive tool on the market B) Conducting a pilot project to evaluate tool fit before full rollout C. Ignoring licensing terms D. Using a tool that does not integrate with existing CI pipelines Answer: B Explanation: A pilot allows assessment of tool capabilities, integration effort, and cost‑benefit before committing large budgets. Question 33. For successful MBT integration, the modeling tool should ideally: A) Operate completely offline without any version control B) Export models in a format compatible with test generation and CI tools C. Require proprietary hardware D. Only support textual modeling Answer: B Explanation: Compatibility with downstream tools and CI pipelines ensures a smooth automated flow from model to execution. Question 34. Which of the following is a typical input artifact for MBT? A) Executable binary of the system under test B) High‑level requirements specification C. Test execution logs

D. Production incident reports Answer: B Explanation: High‑level requirements provide the basis for constructing the MBT model that reflects intended behavior. Question 35. In an Agile Scrum project, when is the most appropriate time to refine the MBT model? A. At the end of the release cycle only B. Continuously during each sprint as new backlog items are defined C. Only during the sprint retrospective D. After the product is shipped Answer: B Explanation: Continuous refinement aligns with Scrum’s incremental delivery and allows the model to stay current with evolving backlog items. Question 36. Which of the following best illustrates a “non‑functional” focus for an MBT model? A) Modeling user login sequences B) Modeling response‑time thresholds for API calls C) Modeling database schema changes D) Modeling menu navigation flow Answer: B Explanation: Non‑functional aspects such as performance or timing are captured by modeling constraints like response‑time thresholds.

C. Low execution speed D. Increased test coverage Answer: B Explanation: Overlapping or contradictory guards create ambiguity, violating the consistency attribute of a high‑quality model. Question 40. Which of the following is an example of a pattern‑based test selection criterion? A) All‑paths of length ≤ 3 B) All equivalence partitions C) All use‑case scenarios defined in the requirements D) All boundary values Answer: C Explanation: Pattern/ scenario‑based criteria select tests that follow predefined usage patterns, such as specific use‑case flows. Question 41. In the context of MBT, “project‑based” criteria typically refer to: A) Selecting tests based on the project’s risk assessment and criticality matrix B) Randomly generating test cases C. Using only unit tests D. Ignoring stakeholder input Answer: A Explanation: Project‑based criteria tailor test selection to the specific risk profile, constraints, and priorities of the project.

Question 42. Which degree of automation requires a tester to manually map abstract steps to concrete commands? A) Fully automated generation B) Semi‑automated generation C) Manual generation only D) No generation Answer: B Explanation: Semi‑automated generation produces abstract tests automatically, but a tester must intervene to map them to concrete scripts. Question 43. When measuring MBT effectiveness, the metric “defect detection rate per generated test” primarily assesses: A) Test execution speed B) Test design efficiency C. Model completeness D. Test maintenance cost Answer: B Explanation: The ratio of defects found per generated test indicates how efficiently the generated tests are uncovering issues. Question 44. Which of the following is a recommended practice for maintaining MBT models over time? A) Store models in a shared version‑control repository and perform regular peer reviews B) Keep models on a local desktop without backups

Question 47. A model that includes probabilistic transition weights is most appropriate for which testing focus? A) Deterministic functional testing B) Security penetration testing C. Performance and reliability testing using stochastic analysis D. UI layout testing Answer: C Explanation: Probabilistic weights enable analysis of reliability, availability, and performance under varying usage patterns. Question 48. Which of the following is an example of a “state‑coverage” test selection criterion? A) Generate one test for each state in the model, regardless of transitions B) Generate tests that cover every possible input value C. Generate tests that cover each decision table rule D. Generate tests that execute every loop iteration Answer: A Explanation: State‑coverage requires at least one test case that visits each defined state. Question 49. When integrating MBT with Continuous Integration (CI), the most important aspect to automate is: A) Manual review of model diagrams B) Regeneration of test scripts after each model change and automatic execution in the CI pipeline

C. Sending email notifications only D. Updating the project charter Answer: B Explanation: Automating regeneration and execution ensures that any model change is immediately reflected in the test suite and validated by CI. Question 50. Which KPI would best indicate that the MBT model is being kept in sync with evolving requirements? A) Number of model edit commits per sprint B) Percentage of requirements traceability links that are up‑to‑date C. Average test execution time D. Number of developers on the team Answer: B Explanation: Up‑to‑date traceability links directly reflect alignment between the model and current requirements. Question 51. A test objective that emphasizes “maximum path diversity” is most aligned with which selection criterion? A) All‑states coverage B. All‑transitions coverage C. All‑paths of bounded length D. Boundary value analysis Answer: C