Software Design and Development (Implementation: Data Types and Structures) Flashcards

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

What are the five data types?

A
Integer
Real
Character
String
Boolean
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are Integers?

A

Integers are positive or negative WHOLE numbers

Example Data: 17

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

What are Real numbers?

A

Real Numbers are positive or negative numbers with decimal points

Example Data: 17.11

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

What are Characters?

A

Characters are any one number, letter or symbol

Example Data: A

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

What are Strings?

A

Strings are collections of characters stored together as one

Example Data: Darren

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

What are Booleans?

A

Boolean is either (True/False) or (On/Off) or (Yes/No)

Example Data: True

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

What are Arrays?

A

An array is a data structure which stores a group of values of the same data type

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

What data type is a phone number and why?

A

A phone number is an example of String Data. Phone numbers are not stored as integers, as the integer data type holds values that have the potential to be used in calculations.

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

What is the name given to the unique identifiers used in arrays?

A

Keys

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

What number do keys start at?

A

0

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

What is an equivalent to the following piece of code?

DECLARE age1 AS INTEGER INITIALLY 0
DECLARE age2 AS INTEGER INITIALLY 0
DECLARE age3 AS INTEGER INITIALLY 0

A

DECLARE ageArray AS ARRAY OF INTEGER INITIALLY [0]*3

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