1.4 Data Types, Data Structures and Algorithms Flashcards
What does AND (∧) mean?
A logical operator which returns TRUE (or 1) if and only when all inputs are TRUE (or 1)
What is ASCII?
A character set used to represent alphanumeric characters or symbols as a set of 8 bits
1 check bit and 7 bits for the number
What is binary?
A number system that only uses 1s and 0s to represent numbers (a base 2 system)
What is bitwise manipulation?
Operations perfomed on a set of bits
What is boolean?
A data type that can only store one of two possible values (1 or 0, TRUE or FALSE, etc.)
What is a character?
A data type for storing one letter, number or special character
What is Denary?
A number system that only uses 10 characters (0 to 9) to represent numbers (a base 10 system)
What are the 5 data types?
Character
Boolean
String
Integer
Real/Float
What is Floating Point Arithmetic?
Performing arithmetic operations on floating point numbers in binary
What is Hexadecimal?
A number system that only uses 16 characters (
0 to 9 and A to F) to represent the numbers (a base 16 system)
What is an integer?
A data type for storing whole numbers with no decimals, positive or negative
What does OR (V) mean?
A logical operator which returns TRUE (or 1) if and only if any one of the inputs are TRUE (or 1)
What is the primitive data type?
A basic built in data type provided by a programming language
What is a Real/Floating point?
A data type for storing numbers with decimal or fractional parts
What are the binary Shifts?
A bitwise manipulation where a set of bits are all moved by one place in a given direction, and the end bit may be taken as a carry or appended to the other end depending on the shift method
What is the String data type?
Used to store a sequence of alphanumeric characters or symbols, typically within quotation marks
What is Two’s Complement?
A method of storing negative numbers in binary
It involves flipping all the bits of the binary representation of the positive number and then adding 1
What is UNICODE?
A character set that is a superset of ASCII
It is used to represent alphanumeric characters and symbols as an integer code point which is equal to that character’s ASCII code
What does XOR do?
A logical operator which returns TRUE or 1 when only one input is TRUE or 1
What are arrays?
A data structure for storing a finite, ordered set of data of the same data type within a single identifier
What is a Binary Search Tree?
A tree where each node cannot have more then 2 children nodes
The right node and its descendants always have a greater value than the root node (first data item)
What is a Depth First Transversal?
A method of traversing an entire graph by travelling as far as possible along one route before backtracking and trying alternative unexplored routes
What is a Breadth First Transversal?
A method of traversing an entire graph by visiting all the neighbours of the first node before repeating the same with each neighbour in the order they were visited
What is a Directed Graph?
A graph where the order of the vertices paired in an edge matter
The edges are one way