Programming basics Flashcards
What is memory?
The location where instructions and data are stored on the computer
What is an algorithm?
A sequence of steps that can be followed to complete a task and that always terminates
What is syntax?
The rules of how words are used within a given language
What is a memory address?
A specific location in memory where instructions or data are stored
What is assignment?
The process of giving a value to a variables or constant
What is a constant?
An item of data whose value does not change
What is a variable?
An item of data whose value could change while the program is being run
What is debugging?
The process of finding and correcting errors in programs
Give two reasons why the naming of variables is important
- Makes debugging easier
* Will be easier to update the code later on
What is declaration?
The process of defining variables and constants in terms of their name and data type
What does the integer data type hold?
Any whole number, including zero
What does the float data type hold?
A number with a fractional part
What does the string data type hold?
A sequence of characters
What does the Boolean data type hold?
Either true or false
What does the character data type hold?
An individual character