Variables and constants (Edexcel GCSE Computer Science): Quizzes

📚Quizzes
Variables and constants
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

12 questions from this quiz

Show

What is the key difference between variables and constants?

Variables can change; constants cannot

Once a value is assigned to a constant, what happens?

It cannot be changed during program run

Which identifier name is POORLY chosen?

x

Why can't you use 'while' as an identifier name?

It's a reserved word

Which naming convention is correct for variables?

camel case

How should constant identifiers be written?

ALL UPPER CASE

Which follows correct naming conventions?

firstName for variable; VAT for constant

What symbol is used for assignment in program code?

=

How is assignment written in flowcharts?

SET...TO

If name = 'David', what does OUTPUT name display?

David

In the area example, which variables are used?

length, width, area

What does the variable 'area' store in the example?

Calculated result of length * width

Join 100,000+ GCSE students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.