Mathematical Preliminaries Flashcards
T/F The goal of predicate-based test generation is to generate tests from a predicate p that guarantee the detection of any error that belongs to a class of errors in the coding of p
T
What does the + sign represent?
OR
What does a multiplication mean?
AND
What is the condition part of the statement
Predicate
T/F A predicate can be converted to a Boolean expression by replacing each relational expression with a distinct Boolean variable
T
A Boolean variable or a relational expression
Simple predicate
Join one or more simple predicates using bop
Compound predicate
One or more Boolean variables joined by bop
Boolean expression
A Boolean expression is ____ if each variable in the
expression occurs only once
Singular
A Boolean expression is in ____ _____ ____ if it is represented as a sum of product terms
Disjunctive normal form
A Boolean expression is in ___ ____ ____ if it is represented as a product of sums
Conjunctive normal form
T/F Any Boolean expression in CNF can be converted to an equivalent DNF and vice versa
T
Captures flow of control within a program
Control flow graph
What has a finite set N of nodes and a finite set E of edges
Control flow graph
What does descendant mean for nodes?
There is a path from one node to the next (m to n)
What does proper descendant mean for nodes?
m != n (m and n are not the same node)
How do you denote all successor nodes of n?
succ(n)
How do you denote all predecessor nodes of n
pred(n)
If there is an edge (n,m) in E, what is n and what is m?
m is the successor of n. n is the predecessor of m
A path through G is ____if the first node along the path is Start and the terminating node is End.
complete
A path p is ____ if there exists at least one test case which when input to program P causes p to be traversed
feasible
T/F Whether a path p through program P is feasible is, in general, an undecidable problem
T
T/F Any algorithm can be expressed using only three
control structures
T
T/F The cyclomatic complexity of a nonstructured program is at least 2
F, 3