Computer science revision Flashcards

1
Q

What is a sequence?

A

A sequence is where only one line of code is executed - one line at a time.

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

What is selection

A

Selection is where only a specific part of the code is executed.

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

What is iteration?

A

Iteration is where code repeats or loops a certain number of times or while a certain statement is true.

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

What are the 3 basic programming constructs?

A

The three programming constructs are Sequence, selection and iteration.

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

What does a variable do?

A

A variable stores data in the memory of the computer.

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

What is an IDE? What does it do?

A

An IDE, which is short for Integrated Development Environment, helps programmers to write code, test it and debug it.

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

What is an algorithm?

A

An algorithm is a set of step by step instructions which are used to plan programs before writing the code. In this way, computer programmes can plan exactly what the program needs to do in clear detail.

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

What is an syntax error?

A

An syntax error is where a word is misspelled etc.

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

What is a logic error?

A

An logic error is where

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

What is a procedure

A

A procedure is something that the programmer uses if a certain piece of code is likely to be used many times

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