Drop the words into the correct position in the paragraph. Press submit to check your answers.
A variable is a named space in the computer's ______ that stores data while a program runs. Every variable has an identifier, which is its name, and a ______, which is the data it holds. An ______ sign is used to set a variable.
Text must be placed inside ______, but numbers are written without them.
An identifier cannot contain spaces, so first name is not allowed. It cannot start with a number, so 1stname is not allowed. It cannot be a ______ word such as print. Identifiers are case sensitive, so message and Message are two different variables.
To use a variable, write its ______, the name it was given, with no quotation marks, including in print. Variables can also be used to make new variables, for example total = a + b. The value stored in a variable can ______ while a program runs, for example temperature = temperature + 1 adds 1 to the old value. Variables are often used to keep a score in a quiz, adding 1 for each correct answer. To ______ a program, work out the values held in each variable, line by line.
Log in or sign-up to access the word drop
Don't have a login?
You can still revise this topic