Testing and Running a Solution Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a syntax error?

A

The statement in the code doesn’t follow the rules of the language. It is usually detected by a translator and the program will not be complied

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

What are common syntax errors?

A

Missing/extra brackets
Misspelling variables
Missing parts of a multiline statement

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

What is a logic error?

A

The syntax code is correct but the code doesn’t do what it is intended to do. This is usually detected while testing. It as sometimes cause a run-time error.

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

What are common logic errors?

A

Incorrect mathematical formula
Misplaced brackets
Instructions written in the wrong order
Incorrect conditions provided for loops

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

What is a run-time error?

A

The syntax and the logic of the code are correct but an extreme circumstance has caused the program to crash as it has attempted an impossible operation. This is usually detected while testing.

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

What are common run-time errors?

A

Division by 0
Calculating square root of a negative number
Overflow error
Stack overflow error

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

What is valid data?

A

Data that you would normally expect the user to input

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

What is invalid data?

A

Data that should generate and error message

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

What is borderline data?

A

Data that lies at the boundaries between different cases

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

What is black box testing?

A

Tests the input to see if the output is expectedTests, valid, invalid and boundries

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

What is white box testing?

A

Algorithm is tested. Every possible path or route is executed

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

What is alpha testing?

A

Testing carried out by a restricted group within the company. Any bugs are reported and fixed

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

What is beta testing?

A

Program is released to potential users outside the company, if any bugs still exist these are reported to the company

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

What is acceptance testing?

A

Complete and demonstrated to the user and show that it works correctly. Program is tested against the requirements

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

How can you identify an error within code?

A

Translator diagnostics
Breakpoints
Variable checks
Dry runs

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

What do translator diagnostics do?

A

Useful for finding syntax errors and logic errors. A message is generated when converting the source code to executable code.

17
Q

What are breakpoints?

A

Program halts at a specific marker. The program can then check the values of variables

18
Q

What are variable checks?

A

Outputting the value of the variables at specific points or when they change

19
Q

What is a dry run?

A

Goes through the code line by line often using a trace table. This provides a systematic way of recording.

20
Q

What is the 3 steps are needed when installing a written program?

A

Needs to be converted into executable object code that the computer can understand
Make sure that the program will run correctly
To install the program you must set the program to run on the end users computer by copying the executable and setting up and files and user options.

21
Q

What functions are carried out by the automatic installation routine?

A

Copy the executable program
Copy or prepare any data files
Copy any library files
Make the program easy to access by setting up icons and shortcuts
Initial configuration of user preference settings in the program