Data types, 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 can change about a variable during program execution?
What can change about a variable during program execution?
Its value only
What is the key characteristic of constants during program execution?
What is the key characteristic of constants during program execution?
Their values never change
Which data type stores whole numbers?
Which data type stores whole numbers?
Integer
Which data type stores numbers with decimal points?
Which data type stores numbers with decimal points?
Real or Float
What values can a Boolean data type store?
What values can a Boolean data type store?
Only True or False
How are string values written in code?
How are string values written in code?
Between single or double quotes
Why does the computer need to know a variable's data type?
Why does the computer need to know a variable's data type?
To allocate memory and determine operations
What does declaration do when creating a variable?
What does declaration do when creating a variable?
Allocates memory space
What does initialization do to a variable?
What does initialization do to a variable?
Puts the first value into memory
What is implicit data typing?
What is implicit data typing?
Type determined from first assignment
How should constants be written in code?
How should constants be written in code?
In UPPER_CASE letters
Why is using constants considered excellent practice?
Why is using constants considered excellent practice?
Reduces errors by defining values once
