Unit 4- Data Types and Structures

What is a string?
Alot of keys pressed. Eg fkjhdjh.
1 of 10
What is used to store a number without a fraction or a decimal?
An integer.
2 of 10
What is the pseudocode for a string?
stringname.length
3 of 10
What is concatenation?
Concatenation joins strings together.
4 of 10
What is casting?
Casting ensures that things are saved as they should be. Eg String= str
5 of 10
How to cast: Integer, float or string?
Integer= int Float= float String= str
6 of 10
What is a static array?
When we set the size to begin with. Eg, Football team is 7 players + 2 reserves= 9 so nine names are stored in the array.
7 of 10
What is a dynamic array?
When the size is not defined and can be changed as data is added. Eg, number of people attending a science club.
8 of 10
Example of a one dimensional array
The alphabet- ALWAYS 26 letters. Each item is indexed, starting at ZERO.
9 of 10
Example of a multi dimensional array
Student test results: needs the index, pupil and score.
10 of 10

Other cards in this set

Card 2

Front

What is used to store a number without a fraction or a decimal?

An integer.

Card 3

Front

What is the pseudocode for a string?

Card 4

Front

What is concatenation?

What is casting?