Programming Flashcards

1
Q

What is a variable?

A

A location in memory that contains data that can be changed.

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

What is a constant?

A

A location in memory that contains data that cannot be changed.

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

What is casting?

A

Transferring one data type to another

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

What is an integer?

A

A whole number of

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

What is a reel/ float?

A

A decimal number

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

What is a char?

A

One alphanumeric in speech marks

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

What is a string?

A

Alphanumerical characters in speech marks

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

What is a Boolean?

A

True or False answer options

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

What is a sequence?

A

A program that I ran in order from top to bottom

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

What is selection?

A

Changing which code is ran based on a condition

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

What is iteration?

A

Repeats a code based on a condition or a set number if times

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

What is a modulus?

A

How many is left over or remaining

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

What does ^ mean?

A

To the power of

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

What does DIV mean

A

How many is used up

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

What is abstraction?

A

Removing unnecessary details to make a problem easier to solve

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

What is decomposition?

A

Breaking a complex down into smaller manageable parts

17
Q

What is algorithmic thinking?

A

The way of getting to a solution by identifying the individual steps needs to take

18
Q

What is an input?

A

Any information provided to the computer by the user

19
Q

What is a process?

A

Calculation that is performed whilst the programming is running

20
Q

What is an output?

A

The computer providing information to the user

21
Q

What is a structure diagram?

A

Helps to decompose a problem by creating steps needed to solve it

22
Q

What is a node in a structure diagram?

A

The lowest level a structure diagram has- one single task

23
Q

What does CPU stand for?

A

Central Processing Unit

24
Q

What does a CPU do?

A

Carries out the instructions of a conputer

25
Q

What happens in the fetch stage of the CPU cycle?

A

The computer gets the next instruction from the memory and brings it back to the CPU

26
Q

What happens in the decode stage of the CPU cycle?

A

CPU inspects the instruction and works out what needs to be done

27
Q

What happens in the execute stage of the CPU cycle?

A

The instruction is carried out

28
Q

What does the ALU stand for?

A

Arithmetic logic unit

29
Q

What does the ALU do?

A

Carries out arithmetic calculations and makes logical decisions

30
Q

What does the control unit do?

A

Provided timing and control signals that determined how data moves around the CPU

31
Q

What is Cache?

A

Provides fast access to frequently used instructions and data

32
Q

What is a program counter?

A

Stores the address of the next instruction to be executed in the memory

33
Q

What is the MAR?

A

Stores address of where data is to be fetched or stored

34
Q

What is the MDR?

A

Stores the data fetched from memory or being written into the memory

35
Q

What is the accumulator?

A

Holds results of the calculations performed by the ALU