Grade 8 Variables & Data Types Worksheet with Answers
Grade 8 (US) · Year 9 (UK) · Class 8 (India) · Computer Science
Unit 2: ProgrammingVariables & Data TypesCSTA 2-AP-11
Recognising integers, floats, strings and Booleans, and how operators behave on each. This free middle school worksheet has 12 questions and a full answer key. Print it or save it as a PDF — every answer is checked by code, not guessed.
- Answer keys checked by code
- No ads, ever
- No student accounts needed
- Safety & privacy
Variables & Data Types
Grade 8 · Computer Science
Name
Class
Date
Learning goal: Variables & Data Types · CSTA 2-AP-11
Directions: Read each question and circle the best answer.
What data type is the value 884: integer, float, string, or Boolean?
Answer: integer
RememberData types
- 1
What data type is the value True: integer, float, string, or Boolean?
IntegerFloatStringBoolean - 2
What data type is the value 333: integer, float, string, or Boolean?
IntegerFloatStringBoolean - 3
What data type is the value 45.4: integer, float, string, or Boolean?
IntegerFloatStringBoolean - 4
What data type is the value "True": integer, float, string, or Boolean?
IntegerFloatStringBoolean - 5
What data type is the value 951: integer, float, string, or Boolean?
IntegerFloatStringBoolean - 6
What data type is the value 18.5: integer, float, string, or Boolean?
IntegerFloatStringBoolean - 7
What data type is the value "cat": integer, float, string, or Boolean?
IntegerFloatStringBoolean - 8
What data type is the value "42": integer, float, string, or Boolean?
IntegerFloatStringBoolean - 9
What data type is the value 568: integer, float, string, or Boolean?
IntegerFloatStringBoolean - 10
What data type is the value "hello": integer, float, string, or Boolean?
IntegerFloatStringBoolean - 11
What data type is the value 577: integer, float, string, or Boolean?
IntegerFloatStringBoolean - 12
What data type is the value 43.9: integer, float, string, or Boolean?
IntegerFloatStringBoolean
★ Challenge corner for fast finishers
How many different patterns can 4 bits make?
How did I do?
Teacher's comments
Free printable worksheets with answer keys · aethelsystems.com/worksheets/computer/8/data_types
Answer key — Variables & Data Types (Grade 8)
- 1.Boolean
- 2.integer
- 3.float
- 4.string
- 5.integer
- 6.float
- 7.string
- 8.string
- 9.integer
- 10.string
- 11.integer
- 12.float
- ★16
Answer key (click to show)
- 1.Boolean
- 2.integer
- 3.float
- 4.string
- 5.integer
- 6.float
- 7.string
- 8.string
- 9.integer
- 10.string
- 11.integer
- 12.float
- ★16 (challenge corner)
Need another Variables & Data Types worksheet?
Generate unlimited fresh versions at easy, medium or hard difficulty, each with its own answer key. Free during our launch — no card needed.
Create a free accountHow to use this worksheet
- Works well as a bell-ringer, exit ticket, homework set or quick quiz.
- Have students self-check with the answer key, then correct their own mistakes before you review.
- Generate a new version of the same topic for a re-test, so students can't just memorise the answers.
Related worksheets
Can't find what you need? Tell us which worksheet to make next.
Frequently asked questions
Does this Grade 8 Variables & Data Types worksheet come with answers?
Yes. The full answer key is on this page, and it prints on its own page after the questions. Every answer is calculated or checked by code rather than written by an AI model, so the key is always correct.
How do I print it or save it as a PDF?
Click "Download PDF" to save a ready-to-print PDF with the answer key on the last page, or click "Print" to send the worksheet and answer key straight to your printer.
Can I get a different Variables & Data Types worksheet?
Yes. Create a free account to generate as many fresh Grade 8 Variables & Data Types worksheets as you like, at easy, medium or hard difficulty, each with its own answer key.
Is this worksheet free?
Yes. This worksheet is free to print, and Practice Sheet is free to use during our launch with no card needed.