Chapter 2: Programming Flashcards

1
Q

What is an algorithm?

A

A sequence of step-by-step instructions to solve a problem or carry out a task

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

What is a syntax error?

A

An error that occurs when a rule of the programming language is broken

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

What is validation?

A

When a program checks that it has been given valid input data

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

What is a range check?

A

When a program checks that the data it has been given is within a certain range

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

What is a look-up check?

A

Checking that an input value is in a predefined set of values

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

What is a length check?

A

Checking that input values are a certain length

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

What do trace tables look like

A
A	X	Y
0
	3
	7
		"xd"
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a logic error?

A

The steps of an algorithm are incorrect

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

What is a runtime error?

A

An error that occurs while the program is running? (e.g. tries to access a text file that doesn’t exist)

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

What is an IDE?

A

A package of programs that help programmers design code (by detecting errrors

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

What is the difference between an algorithm and a program?

A

An algorithm is the design for a solution, a program is an implementation of that design

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

What is a test plan table?

A

A table with purpose of text, data, expected result, actual result, action needed

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