Data Types, Variables and Parameters Flashcards

1
Q

What is a ‘Char’ value?

A

A single character

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

How would I store a floating point number?

A

With a Real data type

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

What data type would I used for a list of phone numbers?

A

An Array of Integers

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

What’s a record?

A

A structure that holds different variables of different data types

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

What is a variable’s scope?

A

The subprograms that a variable can influence

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

What are the two types of Variable?

A

Global and local.

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

Define a parameter

A

The options passed to a program or function

E.g MsgBox(title, “text”)

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

What do we call the combination of two strings?

A

Concatination

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

What do we have to think about when Concatinating different strings?

A

Whether the result will be readable

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

Give another name for a subprogram

A

Functions and procedures (or modules)

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

Give a benefit of a module

A

Can be used multiple times in a program.

Can be referenced by other programs.

Easier to split across teams.

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