Programming Concepts (AQA GCSE Computer Science): Quizzes

📚Quizzes
Variables, Constants and Assignments
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 a variable in programming?

A named storage location with changing data

Which variable name breaks the naming rules?

player score

Which variable name is invalid because it starts incorrectly?

123score

What should you avoid when naming variables?

Reserved keywords

How does a programming language treat 'score' and 'Score'?

As completely different variables

What is a constant in programming?

A fixed value that stays the same

Which is a good example of when to use a constant?

Storing PI as 3.14159 for calculations

Which symbol is used for assignment in pseudocode?

Which symbol is used for assignment in Python, VB.Net, and C#?

=

What happens when you assign a new value to a variable?

Old value is replaced and lost forever

How does Python handle variable declarations?

No declaration needed, just assign values

What does C# require at the end of each statement?

A semicolon

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

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