Software Design and Development (Implementation: Data Types and Structures) Flashcards
What are the five data types?
Integer Real Character String Boolean
What are Integers?
Integers are positive or negative WHOLE numbers
Example Data: 17
What are Real numbers?
Real Numbers are positive or negative numbers with decimal points
Example Data: 17.11
What are Characters?
Characters are any one number, letter or symbol
Example Data: A
What are Strings?
Strings are collections of characters stored together as one
Example Data: Darren
What are Booleans?
Boolean is either (True/False) or (On/Off) or (Yes/No)
Example Data: True
What are Arrays?
An array is a data structure which stores a group of values of the same data type
What data type is a phone number and why?
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.
What is the name given to the unique identifiers used in arrays?
Keys
What number do keys start at?
0
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
DECLARE ageArray AS ARRAY OF INTEGER INITIALLY [0]*3