Coding Flashcards
Things To remember about variables
- it is a place in the computer’s memory where a value is kept
-my variable can contain only one value at a time
What does it mean to initialise a value
This means to give a starting value for the variable
What do these operators mean
> 50 (greater than 50)
<50 (less than 50)
=50
What does the abs function do
It makes an negative number positive but does not affect a negative number
What is a string
A string is a sequence of characters in a specific order
This includes letters digitsand any other symbols that can be entered on a keyboard
What code block is used to repeat code
Forever block
Repeat block
Repeat until block
What’re common initialisation mistakes when using loops
Not initializing a variable
Initializing and variable in the incorrect position in the code
What does it mean to initialise
To give a variable a starting value at the beginning of a program