Paper1: 3.2 Programming Flashcards
What is a data type?
A particular type of data item, dependant on the features of it
The five most common data types are:
- _______
- _______
- _______
- _______
- _______
String Integer Boolean Float Charachter
How is variable declaration used in a program?
Used to set a value which will change in the program
How is constant declaration used in a program?
Used to set a value which will stay the same throughout the program
How is assignment used in a program?
Used to assign a value to a variable or constant
How is iteration used in a program?
To repeat a piece of code a set amount of times
How is selection used in a program?
It is when the code offers the user a choice of options
How are subroutines used in a program?
The user writes them so that the code within can be used multiple times
How are arithmetic operations used in a program?
They are used to perform maths in the code
How are relational operations used in a program?
They are used to compare values or variables
How are boolean operations used in a program?
They are used in loops and giving variables boolean value
Describe data structure
A data structure is a specialized format for organizing and storing data