0% found this document useful (0 votes)
10 views6 pages

stm all questions

The document covers key concepts in software testing, including paths, path products, regular expressions, state graphs, and transition testing. It includes multiple-choice questions, fill-in-the-blank exercises, and subjective questions that aim to assess understanding of various testing methodologies and their applications. Each unit focuses on different aspects of testing, providing a comprehensive overview of techniques used to ensure software quality.

Uploaded by

muskaansaniya06
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views6 pages

stm all questions

The document covers key concepts in software testing, including paths, path products, regular expressions, state graphs, and transition testing. It includes multiple-choice questions, fill-in-the-blank exercises, and subjective questions that aim to assess understanding of various testing methodologies and their applications. Each unit focuses on different aspects of testing, providing a comprehensive overview of techniques used to ensure software quality.

Uploaded by

muskaansaniya06
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

UNIT III – Paths, Path Products, and Regular Expressions

1. Which of the following is used to represent control flow in a program?


A) Decision Table
B) State Graph
C) Flow Graph
D) Entity Relationship Diagram
Answer: C
2. Path expressions are useful in:
A) GUI Testing
B) Static Code Analysis
C) Path Testing
D) Load Testing
Answer: C
3. Which of the following describes the sequence of operations in a program
segment?
A) Path expression
B) State transition
C) Decision table
D) Test plan
Answer: A
4. The reduction procedure in path expressions is used to:
A) Add more test cases
B) Eliminate redundant paths
C) Increase complexity
D) Test database functionality
Answer: B
5. Regular expressions can help in detecting:
A) Flow anomalies
B) Structural errors
C) Database inconsistency
D) GUI errors
Answer: A
6. Which of the following is NOT a type of flow anomaly?
A) Define-Use
B) Use-Define
C) Define-Kill
D) Kill-Use
Answer: B
7. In logic-based testing, decision tables are mainly used for:
A) State modeling
B) Data flow testing
C) Functional specification representation
D) Performance testing
Answer: C
8. KV Charts are used in:
A) Structural Testing
B) Path Testing
C) Logic-Based Testing
D) State Testing
Answer: C
9. Which component in logic-based testing helps simplify boolean expressions?
A) Path expression
B) Decision Table
C) State Graph
D) KV Chart
Answer: D
10. A path product in a flow graph denotes:
A) Total nodes in the graph
B) A product of edges
C) Execution sequence of components
D) Boolean conditions
Answer: C

UNIT IV – State, State Graphs, and Transition Testing

11. Which of the following is a representation of system behavior over time?


A) Flow Graph
B) State Graph
C) Use Case Diagram
D) ER Diagram
Answer: B
12. Which of these characteristics indicates a bad state graph?
A) Well-defined transitions
B) Loops for repeated events
C) Ambiguous state transitions
D) Defined initial state
Answer: C
13. State testing is primarily used to test:
A) Web applications
B) Static logic
C) Event-driven systems
D) CPU speed
Answer: C
14. Testability in state testing can be improved by:
A) Increasing the number of states
B) Avoiding unreachable states
C) Creating more transitions
D) Reducing test cases
Answer: B
15. Which element is not a part of a state graph?
A) States
B) Transitions
C) Events
D) Variables
Answer: D
UNIT V – Graph Matrices and Application

16. What does the adjacency matrix of a graph represent?


A) Program logic
B) Input/output mapping
C) Node-to-node connection
D) State transitions
Answer: C
17. The power of a matrix in graph theory helps determine:
A) Number of test cases
B) Paths of a specific length
C) Memory usage
D) Code complexity
Answer: B
18. The node reduction algorithm is used to:
A) Simplify state transitions
B) Find shortest paths
C) Eliminate redundant nodes in a graph
D) Increase node connectivity
Answer: C
19. Which of the following tools is suitable for performance testing?
A) JMeter
B) WinRunner
C) Selenium
D) Eclipse
Answer: A
20. Matrix representation of a graph is useful in:
A) GUI Testing
B) Test case prioritization
C) Path analysis
D) Syntax parsing
Answer: C

Let me know if you’d like a printable version or questions with explanations!

4o

You said:
give me 20 fill in the blanks

ChatGPT said:

Here are 20 fill-in-the-blank questions based on Units III, IV, and V of your syllabus:
UNIT III – Paths, Path Products, and Regular Expressions

1. A _______ graph represents the flow of control in a program.


Answer: flow
2. A _______ is a sequence of statements or instructions in a program from entry to exit.
Answer: path
3. The _______ procedure is used to simplify complex path expressions.
Answer: reduction
4. _______ expressions are used to describe patterns in strings and program paths.
Answer: Regular
5. A _______ product represents a sequence of operations or conditions in a path.
Answer: path
6. Flow _______ refer to abnormal usage of variables in a program.
Answer: anomalies
7. The three basic flow anomalies are define-use, define-______, and kill-use.
Answer: kill
8. A _______ table lists input conditions and corresponding actions.
Answer: decision
9. _______ charts are used in logic-based testing to simplify Boolean expressions.
Answer: KV (Karnaugh-Veitch)
10. Logic-based testing is especially useful when the program logic is based on _______
decisions.
Answer: Boolean

UNIT IV – State, State Graphs, and Transition Testing

11. A _______ graph models the behavior of a system in terms of states and transitions.
Answer: state
12. In a state graph, a _______ represents a condition or situation during the life of an
object.
Answer: state
13. A _______ is the action that triggers a change from one state to another.
Answer: transition
14. A _______ state graph contains ambiguous or undefined transitions.
Answer: bad
15. State testing is useful for _______ systems that respond to events.
Answer: reactive
16. Good state graphs should have a clearly defined _______ state.
Answer: initial
17. Testability is improved by avoiding unreachable or _______ states.
Answer: redundant

UNIT V – Graph Matrices and Application


18. The _______ matrix shows direct connections between nodes in a graph.
Answer: adjacency
19. The _______ of a matrix indicates the number of paths of a certain length between
nodes.
Answer: power
20. _______ is a performance testing tool that simulates heavy user traffic on web
servers.
Answer: JMeter

Let me know if you’d like an answer key version or these in a printable format (e.g., PDF or
Word)!

4o

You said:
give me large subjective 20 important questions

ChatGPT said:

Here are 20 important large subjective (essay-type/descriptive) questions covering Units


III, IV, and V from your syllabus:

✅ UNIT III – Paths, Path Products, and Regular Expressions

1. Explain the concept of path testing. What are path products and how are they
used in software testing?
2. Define path expressions. Describe the process of deriving a path expression from
a control flow graph with an example.
3. What is the reduction procedure in path expressions? Explain with an example
how it helps in simplifying path expressions.
4. Discuss the different types of flow anomalies. How can regular expressions be
used to detect flow anomalies in software?
5. Describe how regular expressions can be applied in software testing. Provide
examples of test case generation using regular expressions.
6. Write a detailed note on the application of path expressions in logic-based
testing. How do they contribute to test case generation?
7. What are decision tables? How are they used in software testing? Illustrate with
a complete example.
8. Explain the role of Karnaugh-Veitch (KV) charts in logic-based testing. How do
they simplify Boolean expressions?
9. How are specifications used in logic-based testing? Describe how you would
derive test cases from logical specifications.
10. Compare and contrast logic-based testing with control flow-based testing.
Provide examples where each is more effective.
✅ UNIT IV – State, State Graphs, and Transition Testing

11. Explain the concept of a state graph. How is it different from a flow graph?
Provide a diagrammatic example.
12. Differentiate between good and bad state graphs. What characteristics make a
state graph ‘bad’? Give examples.
13. Discuss the process of state-based testing. How can you derive test cases from a
state transition diagram?
14. What are the benefits and limitations of transition testing? How do you ensure
coverage in state testing?
15. Describe testability tips for improving the effectiveness of state-based testing.
How can poor state design be avoided?

✅ UNIT V – Graph Matrices and Applications

16. Explain the concept of an adjacency matrix. How is it used in analyzing control
flow graphs?
17. What is the significance of the power of a graph matrix in software testing?
Illustrate with an example.
18. Describe the node reduction algorithm. Explain its application in simplifying
graphs with a relevant example.
19. Discuss how graph matrices can be used to represent and analyze software
structure. What advantages do they offer over other methods?
20. Write a detailed note on the use of performance testing tools such as JMeter or
WinRunner. How do these tools support test case execution and result analysis?

You might also like