Variables and constants (Edexcel GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What is the key difference between variables and constants?
What is the key difference between variables and constants?
Variables can change; constants cannot
Once a value is assigned to a constant, what happens?
Once a value is assigned to a constant, what happens?
It cannot be changed during program run
Which identifier name is POORLY chosen?
Which identifier name is POORLY chosen?
x
Why can't you use 'while' as an identifier name?
Why can't you use 'while' as an identifier name?
It's a reserved word
Which naming convention is correct for variables?
Which naming convention is correct for variables?
camel case
How should constant identifiers be written?
How should constant identifiers be written?
ALL UPPER CASE
Which follows correct naming conventions?
Which follows correct naming conventions?
firstName for variable; VAT for constant
What symbol is used for assignment in program code?
What symbol is used for assignment in program code?
=
How is assignment written in flowcharts?
How is assignment written in flowcharts?
SET...TO
If name = 'David', what does OUTPUT name display?
If name = 'David', what does OUTPUT name display?
David
In the area example, which variables are used?
In the area example, which variables are used?
length, width, area
What does the variable 'area' store in the example?
What does the variable 'area' store in the example?
Calculated result of length * width
