1.4 Data Types, Data Structures and Algorithms Flashcards
Define Integer
An integer is a whole number. Integers include zero and negative numbers,
Define Real
Real numbers are positive or negative numbers which are decimals
Define Character
A character is a single symbol
Define String
A string is a collection of character
Define Boolean
Boolean data type are restricted to True and False
What is Unicode
Unicode uses a varying
number of bits allowing for over 1 million different characters
What is ASCII
Uses 7 bits to represent 128 different characters.
What is a Linked List
A linked list is a data structure used to hold an ordered sequence
What does a linked list contain
Nodes and pointers
Where are linked lists used
Music players to store tracks in a playlist and web browsers to go back and forth
How do you add to a linked list
1) Check if there is free memory
2) Add the item to the free pointer
3) Find where the node needs to go alphabetically
4) Change the pointers from the previous and after the item
How do you traverse a linked list
You follow the Linked list writing it out
What is a Truth Tables
A table showing every possible inputs to a logic gate and the corresponding output
What does “ ∧ “ represent
AND gate
What does “ ∨ “ represent
OR gate