Week 5 Flashcards

1
Q

What is unit testing?

A

Unit tests checks if classes in a project behaves correctly

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

What is integration testing?

A

Integration test checks that components works together and that interfaces between components works as intended.

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

What is system testing?

A

System testing checks if the entire system works as intended.

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

What is acceptance testing?

A

Acceptance testing checks if users agree that the system does what it is meant to do.

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

What are testing framewroks?

A

Testing frameworks are libraries for making writing and running tests easier.

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

What is regression testing?

A

Regression testing checks if new parts added works and that older parts is still functioning as intended.

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

What is black box testing?

A

Black box testing checks part of code where one does not now hoe the code works, only what the code is supposed to do.

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

What is white box testing?

A

White box testing is testing designed with the knowledge of the internal implementation.

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

What is test-driven development?

A

Test-driven development is writing tests before the actual code.

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

What is coverage in testing?

A

Coverage is how much of the code that has been tested.

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

What is statement coverage?

A

Statement coverage checks how many statements are excecuted in different scenarios.

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

What is branch coverage?

A

Branch coverage look into the different pathways of decision statements, i.e if-else statements.

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

What is path coverage?

A

Path coverage checks if loops work as inteded.

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

How do you write basic Javadoc comments?

A

The comment must begin with /** and end with */. For Each line in the Javadoc comment * must be in front.

/**
*
*
*/

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

What must be included in a Javadoc comment?

A

Javadoc comment must describe what the code does, all the parameters and what is returned.

/**
* This is what the following code does
* @param parameterName desciption
* @return parameterName description
*/

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

What is procedural abstraction?

A

Procedural abstraction is concidering methods based on what they do, not how they do it.

17
Q

What are the benefits of procedural abstraction?

A

Procedural abstraction makes programs easier to read ans maintain by keeping the size and complexity of methods small.