Functional Specification Flashcards

1
Q

cowboy coding

A

write a function, you choose some arguments, and if you don’t like what you see, perhaps you add a new argument to that function and test again.

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

functional specifications

A

declarations about the properties of input and output of functions in a program.

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

In their simplest form, a functional specification can be

A

natural language that says what an individual function is supposed to do

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

static typing

A

allow developers to specify types explicitly

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

second purpose of writing functional specifications

A

verify that functions, their input, and their output are correct.

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

assertions

A

simplest and most widely used kinds of unit tests

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

Assertions consist of two things:

A

1) a check on some property of a function’s input or output

2) some action to notify about violations of these properties.

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

Error handling

A

includes assertions, but also programming language features like exceptions and exception handlers.

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