Programming basics Flashcards

1
Q

What is memory?

A

The location where instructions and data are stored on the computer

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

What is an algorithm?

A

A sequence of steps that can be followed to complete a task and that always terminates

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

What is syntax?

A

The rules of how words are used within a given language

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

What is a memory address?

A

A specific location in memory where instructions or data are stored

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

What is assignment?

A

The process of giving a value to a variables or constant

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

What is a constant?

A

An item of data whose value does not change

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

What is a variable?

A

An item of data whose value could change while the program is being run

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

What is debugging?

A

The process of finding and correcting errors in programs

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

Give two reasons why the naming of variables is important

A
  • Makes debugging easier

* Will be easier to update the code later on

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

What is declaration?

A

The process of defining variables and constants in terms of their name and data type

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

What does the integer data type hold?

A

Any whole number, including zero

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

What does the float data type hold?

A

A number with a fractional part

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

What does the string data type hold?

A

A sequence of characters

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

What does the Boolean data type hold?

A

Either true or false

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

What does the character data type hold?

A

An individual character

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

What does the pointer data type hold?

A

A reference to a memory address

17
Q

What does the array data type hold?

A

A collection of items of the same type

18
Q

What does the record data type hold?

A

A collection of related items, possibly with different data types