Programming Flashcards

1
Q

What is a constant?

A

value that stays the same throughout the running of the program.

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

What is a variable?

A

A name/symbol which represents a value in a

program and .points to a memory location: A value that changes during the programs execution.

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

What is a sequence?

A

one instruction after another

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

What is a selection?

A

A condition is used to decide whether code should be executed (if/case)

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

What is an iteration?

A

A process or sequence that is repeated usually in the form of a loop (for/loop/repeat)

code is executed repeatedly

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

What are two examples of low level language?

A

assembly language and machine code

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

A translator is needed to…

A

converts high-level languages into machine code. (compilers and interpreters)

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

What does an IF/THEN/ELSE statement do?

A

allows you to select an option from several options

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

What does a CASE statement do?

A

for coding multiple choices in a program

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

What is an algorithm?

A

a process or set of rules to be followed to complete a task e.g. flow charts or pseudocode

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

What is high level code?

A

code which is close to human languages e.g. python

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

What is Machine code?

A

a language directly understood by the CPU, instructions are represented by a string of bits

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

What is an interpreter and a compiler?

A

converts high level code into machine code

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

What is an assembler?

A

coverts assembly language into machine code

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

What is a for loop?

A

repeats a group of steps a specified number of times

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

What is a repeat loop?

A

controlled by condition at the end of the loop

17
Q

What is a while loop?

A

controlled by a condition at the start of the loop

18
Q

What is the difference between a string and a character data type?

A
  • string contains multiple characters
19
Q

What is a real(float) number?

A

a number with a decimal point

20
Q

What is a boolean data type?

A

a true/false yes/no 0/1 data type

21
Q

What is a syntax error?

A

a problem with the language that the translators do not understand e.g. spelling

22
Q

What is a logical error?

A

The program is written to do something other than what the programmer intended

e.g. an infinate loop, division by 0 or a wrong data type

23
Q

What is integrated development environment (IDE)?

A

a software package that helps you write code more easily

e.g. colour coding key words and numbering lines

24
Q

What is run-time environment?

A

provides the screen +feedback when you try to run a program

25
What is auto-documentation?
the computer uses the data as well as comments to generate a text file
26
What is an array?
a list
27
What is the difference between compilers and interpreters?
a compiler runs the object code whereas an interpreter runs the source code
28
What is a compiler used for?
distribution of software
29
What is a interpreter used for?
development of software
30
What is an Opcode?
single instruction that can be executed by the CPU.
31
What is an Operand?
supplies the data needed for the operation code
32
What is an array?
An array is a data structure that contains a group of elements. each individual variable is given an index which it is referred to within the array.
33
How does the IDE help the programmer correct errors?
error messages/ translator diagnostics produced when translating by the computer an editor allows you enter the corrected code tries to tell you when the errors are by highlight the errors
34
What does the editing tool do in the IDE?
- allows you to enter program code - colour codes key words - auto-completes codes as you type
35
What does the compiler tool do in the IDE?
translates the code into machine code
36
What does the de-bugging tool do in the IDE?
highlights errors