Grade 2 Programming with Variables Computer Worksheets
Grade 2 computer science practice: Use a named value to store and change information in a program.

Opens the creator with this worksheet ready — print it or save a PDF. Free, no sign-up.
Sample programming with variables questions
Work out the new value stored in each named variable. These examples come from the Easy setting; every generated worksheet draws a fresh set.
- The variable lives holds 3. The program takes away 1. What is lives now?
2 · 1
- The variable score holds 3. The program adds 2. What is score now?
1 · 5
- The variable score holds 2. The program adds 1. What is score now?
3 · 1
- The variable score holds 10. The program sets score back to its starting value of 0. What is score now?
10 · 0
Check the sample answers
- 2
3 take away 1 is 2. - 5
3 plus 2 is 5. - 3
2 plus 1 is 3. - 0
Setting a variable replaces whatever it held before.
Practice focus
A variable is a named place that stores a value. A program can set the value, add to it, or take away from it.
Grade placement is a planning guide for choosing practice. The registry records standard-code mappings as unreviewed, so these pages are not a claim of alignment with a national standard.
More Grade 2 computer science worksheets
Grade 2 Computing Systems Computer Worksheets
View worksheets →Grade 2 Algorithms and Conditionals Computer Worksheets
View worksheets →Grade 2 Loops and Repeated Actions Computer Worksheets
View worksheets →Grade 2 Testing and Refining Computer Worksheets
View worksheets →Grade 2 Data and Patterns Computer Worksheets
View worksheets →Grade 2 Security and Personal Information Computer Worksheets
View worksheets →Grade 2 Technology Impacts Computer Worksheets
View worksheets →Grade 2 Number Letter Decode Computer Worksheets
View worksheets →Grade 2 Binary to Decimal 4 Bit Computer Worksheets
View worksheets →Grade 2 Order Everyday Algorithm Computer Worksheets
View worksheets →Grade 2 Find Step Out of Order Computer Worksheets
View worksheets →Grade 2 Count Loop Runs Computer Worksheets
View worksheets →Grade 2 Parts of a Computer Computer Worksheets
View worksheets →Grade 2 Input or Output Device Computer Worksheets
View worksheets →Grade 2 Hardware or Software Computer Worksheets
View worksheets →Grade 2 What Each Part Does Computer Worksheets
View worksheets →Grade 2 Screen and Monitor Parts Computer Worksheets
View worksheets →Grade 2 True or False Statements Computer Worksheets
View worksheets →Grade 2 Pattern Rules Computer Worksheets
View worksheets →Grade 2 What Comes Next in a Sequence Computer Worksheets
View worksheets →Grade 2 Odd One Out Computer Worksheets
View worksheets →Grade 2 Sort into Categories Computer Worksheets
View worksheets →Grade 2 Read a Tally Chart Computer Worksheets
View worksheets →Grade 2 Read a Pictograph Computer Worksheets
View worksheets →Grade 2 Most or Least from Data Computer Worksheets
View worksheets →Grade 2 Home Row Keys Computer Worksheets
View worksheets →Grade 2 The Keyboard Rows Computer Worksheets
View worksheets →Grade 2 Special Keys Enter Space Shift Computer Worksheets
View worksheets →Grade 2 Good Typing Posture Computer Worksheets
View worksheets →Grade 2 Sensors Measure Computer Worksheets
View worksheets →Grade 2 Everyday Robots Computer Worksheets
View worksheets →Grade 2 Apps Vs Websites Computer Worksheets
View worksheets →Grade 2 Gps and Maps Computer Worksheets
View worksheets →Grade 2 Qr Codes and Scanning Computer Worksheets
View worksheets →Grade 2 Voice and Touch Input Computer Worksheets
View worksheets →Grade 2 Circle What You Type with Computer Worksheets
View worksheets →Grade 2 Circle What You Use to Click Computer Worksheets
View worksheets →Grade 2 Circle the Phone Computer Worksheets
View worksheets →Grade 2 Circle What Takes Photos Computer Worksheets
View worksheets →Grade 2 Circle the Tech Device Computer Worksheets
View worksheets →About these worksheets
Use a named value to store and change information in a program. These Grade 2 computer science worksheets stay with that single skill: every question is answerable from the printed page, and the answer sheet explains why each answer is correct.
How to use the worksheets
- Choose a difficulty, then read the printed directions before answering the first question.
- Complete the questions on paper, marking one answer for each item.
- Compare the result with the answer sheet and read the short explanation together.
How this practice can help students
A variable is a named place that stores a value. A program can set the value, add to it, or take away from it. Generating the page again keeps the same learning goal while changing the questions, so a learner can revisit the skill without repeating the same items.
Review and next steps
Ask the learner to say what made one answer better than the others. Grade placement is a planning guide for choosing practice. The registry records standard-code mappings as unreviewed, so these pages are not a claim of alignment with a national standard.
Use a named value to store and change information in a program in Grade 2
Grade 2 computer science practice: Use a named value to store and change information in a program.
How to use these worksheets
- Choose a difficulty that lets the learner succeed, then move up.
- Press Generate for a new set of questions whenever more practice is needed.
- Print the sheet and keep the optional answer page to mark it in seconds.
Create your own Use a named value to store and change information in a program worksheets in minutes
Teachers, parents and homeschoolers can build a custom use a named value to store and change information in a program worksheet in a couple of minutes. Choose the options above - the grade, the difficulty and how many pages you want - then press Generate. In a moment you will have a clean, printable sheet with a matching answer key. If a set of questions is not quite right, press Generate again for a brand-new one. When you are happy, download it as a PDF or print it straight away.
Make your own worksheets - free and unlimited
Every sheet is built by our own generator, so it is original and ready in seconds. Press Generate for a fresh set of questions whenever a learner needs more practice. Tailor the worksheet to your lesson and print as many copies as you need.
Practice that fits the classroom and the kitchen table
Short, regular practice is one of the most effective ways for children to build skills and confidence. Because these worksheets are generated fresh, they work for morning work, homework, quick revision or an extra challenge at home. Keep the answer sheet to mark the work in seconds.
Always free, no sign-up
There is no login and no paywall. Print as many use a named value to store and change information in a program worksheets as you like - for a whole class or a single child - completely free.
Related worksheet tags
Frequently asked questions
- What is a variable in programming?
- A variable is a named spot that stores a value, like a labeled box that holds a number or word. The value inside can change while the program runs.
- Why are variables useful?
- They let a program remember and reuse information, like keeping a score that goes up each time you win. You use the name instead of the exact value.
- Can the value in a variable change?
- Yes, that is why it is called a variable, because its value can vary. A score variable might start at 0 and grow as points are added.
- Are the Grade 2 Programming with Variables Computer Worksheets free to print?
- Yes. Every grade 2 programming with variables computer sheet on FreshWorksheets is free to download and print as a PDF — no sign-up and no account required.
- What grade are the Grade 2 Programming with Variables Computer Worksheets for?
- These grade 2 programming with variables computer sheets are made for Grade 2 learners, with four difficulty levels so you can match the practice to the child.
- Do the Grade 2 Programming with Variables Computer Worksheets include an answer key?
- Yes — switch on the answer page and the generator prints a matching answer key with every grade 2 programming with variables computer sheet.
- Can I make more than one version of the Grade 2 Programming with Variables Computer Worksheets?
- Yes. Press Generate for a brand-new set each time, so you can print unlimited grade 2 programming with variables computer practice sheets.
