comscie thoery Flashcards

1
Q

Ideal testing strategy:
▪ Run program using all possible inputs
▪ Compare actual outputs to expected outputs

what type of test is this?

A

Exhaustive testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A subset of values in the input domain is used for testing.
▪ Important to ensure that values are distributed over input
domain
▪ Can use random number generation.

what type of test is this?

A

Random testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Group input values into sets of values
with similar expected behaviour and choose candidate value

def Threshold(val):
if val>10000: val=10000
return val

▪ e.g.
(100, -90, 1000)
(40000, 100000)

A

Equivalence classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

: choose values at, and on either
side of, the boundaries of the equivalence classes–
▪ e.g. 9999, 10000, 10001

def Threshold(val):
if val>10000: val=10000
return val

A

Boundary value analysis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. In the context of Python functions, what does pass-by-value mean?
    A. The function accepts only numeric arguments, either integers or floating point values.
    B. The function does nothing.
    C. The function returns an integer value.
    D. Parameters are copied and only the copies are changed in the function.
A

D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

who is the father of computer science

A

Alan Turing (1912-1954)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly