Definitions Flashcards
What is a program?
It is a step by step procedure that directs a computer on what to do
What is programming
It is the process by f creating a program using a particular language
What is assembly language?
It is a language that uses mnemonics and symbols and is human readable
What is machine language
It is a language that uses binary that the computer understands
Variable
Name given to memory allocation
Interger?
It is a variable that stores whole numbers
They require 4 bytes of memory
Floating and double floating points
Floating-stores values both whole and decimal (4bytes)
Double floating points-used to store double floating points (8bytes)
Character?
It is a variable used to store characters that are alphanumeric
(1 byte)
String?
Variable used to store text
Boolean?
Variables used to store logical values eg YES/NO
Primitive data type
Type of data type that stores single data value eg int age=14
Examples-bool,char,float,int,byte
Non primitive data type
It is a more comple primitive data type as it stores multiple data values
Examples-Arrays,string,double floating point,wide char,void
Array?
It is a collection of similar data items stores in a contiguous memory locations
Stack data structures
Elements stored in the LIFO principle
Queue data structure
Type of data structure that elements are stored in the FIFO principle