Section 2 - Programming Flashcards

Keywords/ Key terms

1
Q

What are variables used for?

A

To temporarily stored data values using identifiable names

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

Define what is meant by string concatenation

A

Joining together two or more strings

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

Give two reasons why a programmer might want to use random numbers in a computer game

A

So that the game is different each time it’s played

So that the game is unpredictable and challenging

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

What is a data structure?

A

A data structure is a format for storing multiple data values under one variable name

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

Give two reasons why a programmer might choose to store data in an external file

A

So that the data is not lost when the program is closed

So that the data can be sent to other people/stored on an external storage device

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

Define what is meant by a parameter

A

A parameter is a special variable that passes data into a subroutine

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

What is the scope of a parameter?

A

Parameters have a local scope to the subroutine they’re defined in

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