Computer science · lesson 1 of 4
Values, variables and expressions
A concrete piece of data such as a number or string.
University8 practice questionsNotes + worked examples
Learn the ideas
Prerequisites: Basic computer literacy.
Value
A concrete piece of data such as a number or string.
Variable
A name that refers to a value in a program.
Expression
Code that evaluates to a value.
Type
A category that determines operations and representation for a value.
Worked examples
Which term best matches this description: A concrete piece of data such as a number or string.
Value is the matching concept in this lesson.
Value
Which term best matches this description: A name that refers to a value in a program.
Variable is the matching concept in this lesson.
Variable
Check your understanding
8 questionsDecimals or fractions are accepted for numeric answers. Proofs and written responses use sample answers and require human marking. This is practice, not a protected examination.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.