GCSE Computer Science / Component 02 / Computational Thinking , Algorithms And Programming Flashcards

1
Q

In a flowchart, what does a diamond represent ?

A

Decisions, often a ‘yes’ or a ‘no’.

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

In a flowchart, what does a rectangle represent ?

A

A general instruction, process or calculations.

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

In a flowchart, what does a parallelogram represent ?

A

Anything that is put into or taken out of the algorithm.

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

In a flowchart, what does a rectangle with rounded corners represent ?

A

The beginning and end of the algorithm.

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

State an example of and briefly describe what an integer is.

A

0, 6, 10289. Whole numbers only.

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

State an example of and briefly describe what a real ( or float ) is.

A

0.15, -4.688. Number that have a decimal.

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

State an example of and briefly describe what a boolean is.

A

True/false. 1/0. Can only take two values.

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

State an example of and briefly describe what a character is.

A

“A”, “5”. A single letter, number or symbol.

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

State an example of and briefly describe what a string is.

A

“TfuI35F”, “$money$”. Used to represent text, a collection of characters.

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

Define a range check.

A

Checks data is within a specified range.

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

Define a presence check.

A

Checks data has actually been entered.

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

Define format check.

A

Checks data has the correct format. ( eg. dd/mm/yyyy )

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

Define a look-up table.

A

Checks data against a table of acceptable values.

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

Define length check.

A

Checks data is the correct length.

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

Define a translator.

A

A program that turns a programming language into machine code.

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

Define source code.

A

The actual written code of the program.

17
Q

Define compiler.

A

A programming tool to translate source code into machine code.

18
Q

Describe the role of the compiler.

A

Translates all of the source code at the same time and creates one executable file. Only needed once to create an executable file. Returns a list of errors for the entire program once compiling is complete. Once compiled the program runs quickly but compiling can take a long time.

19
Q

Describe the role of the interpreter.

A

Translates and runs the source code one instruction at a time, but doesn’t create an executable file. Needed every-time you want to run the program. The interpreter will return the first error it finds and then stop- this is useful for debugging. Programs will run more slowly because the code is being translated as the program is running.

20
Q

Define an IDE.

A

An integrated development environment is a piece of software that provides features to help a programmer to develop their program.

21
Q

State common features of an IDE.

A

A run-time environment which allows the code to be run quickly within the IDE. Features to keep track of the line number and character number that you are working on. Error diagnostics and debugging tools. Etc.

22
Q

Define a ‘syntax error’.

A

When the compiler or interpreter doesn’t understand something you’ve typed because it doesn’t follow the rules or grammar of the programming language.

23
Q

Define a ‘logic error’.

A

When the compiler or interpreter is able to run the program but the program does something unexpected.