Ict Exam Flashcards
What are arithmetic operators?
Addition - + Subtraction - - Multiplication- * Division - / Floor division - // Remainder - %
What is algorithm?
A procedure or formula for solving a problem
Data types
Data types
String
Holds alphanumeric data as text
Integer
Holds whole numbers
Float
Holds numbers with a decimal point
Boolean
Holds either ‘true’ or ‘false’
Comparison operators
== - equal to
!= - not equal to
> - greater than
= - greater than or equal to
Who uses IF statements?
Thinking of a mobile phone, for example, where might an IF statement appear in coding
What is a computer bug?
The name ‘bug’ refers to an error in a program.
What is a variable?
A variable is a location in memory in which you can temporarily store text or numbers.
Variables
A variable name can contain only numbers, letters and underscores.
Functions
Functions are special keywords that do a specific job
While loop
Keep doing something until that condition is broken.