10 Data Types And Structures Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a data type

A

formal classification of the type of data being stored or manipulated within a program

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

What are the 6 data types

A

Integer = a whole number, float/real = a decimal number, Boolean = data that has states (true and false), char = a symbol, letter or digit, String = a word, null = nothing. These values differ from language to language

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

What is a record

A

A record is like a list of data but each piece of data differs in type. E.g a record could consist of string data,integers or float numbers

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

What is a record array

A

A method of storing many records made of the same veriables

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

What is an array

A

An array is a data structure which holds data that is of the same type

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

What is a 1D array

A

An array that only consists of 1 row of data and is one dimensional, like a list

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

What is a 2D array

A

An array that acts as a matrix/table and is 2 dimensional, it stores 2 data parameters rather then 1

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

What is required to create a 1D array

A
  1. Needs an identifier/ an array name. 2. The amount of items in the array. 3. The postions of each item in the array
How well did you know this?
1
Not at all
2
3
4
5
Perfectly