MAKE IT YOURS

A world for every learner

Choose a grade to discover its colours and creative world.

Grade 9 Variables & Data Types Worksheet with Answers

Grade 9 (US) · Year 10 (UK) · Class 9 (India) · Computer Science

Unit 2: Programming FundamentalsData Types

Recognising integers, floats, strings and Booleans, and how operators behave on each. This free high 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
Practice Sheetaethelsystems.com

Variables & Data Types

Grade 9 · Computer Science

Score___ / 12

Name

Class

Date

Learning goal: Data Types

Directions: Read each question and circle the best answer.

Example

What data type is the value 887: integer, float, string, or Boolean?

Answer: integer

RememberData types

integerwhole number42floatdecimal number3.5stringtext in quotes"hello"BooleanTrue or False
  1. 1

    What data type is the value 65.6: integer, float, string, or Boolean?

    IntegerFloatStringBoolean
  2. 2

    What data type is the value 23.3: integer, float, string, or Boolean?

    IntegerFloatStringBoolean
  3. 3

    What data type is the value 14.9: integer, float, string, or Boolean?

    IntegerFloatStringBoolean
  4. 4

    What data type is the value "3.5": integer, float, string, or Boolean?

    IntegerFloatStringBoolean
  5. 5

    What data type is the value 465: integer, float, string, or Boolean?

    IntegerFloatStringBoolean
  6. 6

    What data type is the value 54: integer, float, string, or Boolean?

    IntegerFloatStringBoolean
  7. 7

    What data type is the value 55.5: integer, float, string, or Boolean?

    IntegerFloatStringBoolean
  8. 8

    What data type is the value "42": integer, float, string, or Boolean?

    IntegerFloatStringBoolean
  9. 9

    What data type is the value 432: integer, float, string, or Boolean?

    IntegerFloatStringBoolean
  10. 10

    What data type is the value 64.7: integer, float, string, or Boolean?

    IntegerFloatStringBoolean
  11. 11

    What data type is the value 14.6: integer, float, string, or Boolean?

    IntegerFloatStringBoolean
  12. 12

    What data type is the value False: integer, float, string, or Boolean?

    IntegerFloatStringBoolean

★ Challenge corner for fast finishers

What is the largest whole number you can store in 10 bits?

51212561128164132116181412111

How did I do?

Teacher's comments

Free printable worksheets with answer keys · aethelsystems.com/worksheets/computer/9/data_types

Answer key (click to show)
  1. 1.float
  2. 2.float
  3. 3.float
  4. 4.string
  5. 5.integer
  6. 6.integer
  7. 7.float
  8. 8.string
  9. 9.integer
  10. 10.float
  11. 11.float
  12. 12.Boolean
  13. ★1023 (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 account

How to use this worksheet

  • Use it for revision before a test, as homework, or as a timed practice set.
  • Students can self-mark with the answer key and note which question types they got wrong.
  • Generate several versions of the same topic for spaced practice in the weeks before an exam.

Can't find what you need? Tell us which worksheet to make next.

Frequently asked questions

Does this Grade 9 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 9 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.