Software Design and Development - Data types and structures Flashcards

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

In programming, what are data types?

A
Data types identify the type of data held by a variable:
•Character
•String
•Integer
•Real
•Boolean
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In programming, what is a character?

A

A character is a single letter, number or symbol. Examples: A ! 7
The character data type is used to store one single character only

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

In programming, what is a string?

A

A string is a group of characters held together. To store more than one character, use the string data type. String is used more often than character. A firstname would be held as a string e.g.Hannah

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

In programming, what is an integer?

A

An integer is a whole positive or negative number. To store a whole number, use the Integer data type. E.g.
14
-21
223

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

In programming, what is a real?

A

A real number is a number that includes a decimal value. The real data type is often called ‘Single’ when using a programming language. Real numbers are used to store positive or negative numbers that include a decimal value

e. g.
21. 54
- 54.12423

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

In programming, what is a boolean?

A

The Boolean data type is used to store either true or false

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