Class 9 Computer Science: Lists & Tuples

Answer key included

This worksheet challenges your understanding of Python lists and tuples, focusing on their manipulation, differences, and common operations. Prepare to tackle advanced scenarios.

Class 9CBSEComputer Sciencehard

Your device's Print screen will open — choose "Save as PDF" to download.

Track practice: print a star chart

Sheet 5 of 5 in this series
Class 9 · Computer Science
Name: ____________
  1. Q1.What is the primary difference in mutability between Python lists and tuples?
    • A.Lists are mutable, tuples are immutable.
    • B.Lists are immutable, tuples are mutable.
    • C.Both lists and tuples are mutable.
    • D.Both lists and tuples are immutable.
  2. Q2.Which of the following methods can be used to add an element to the end of an existing list?
    • A.list.insert()
    • B.list.extend()
    • C.list.append()
    • D.list.add()
  3. Q3.Given a tuple `t = (1, 2, 3)`, what will `t[1:3]` evaluate to?
    • A.(2, 3)
    • B.(1, 2)
    • C.(1, 3)
    • D.Error
  4. Q4.Which of the following statements is true regarding nested lists and nested tuples?
    • A.A list can contain tuples, but a tuple cannot contain lists.
    • B.A tuple can contain lists, but a list cannot contain tuples.
    • C.Both lists and tuples can contain other lists and tuples.
    • D.Neither lists nor tuples can contain other complex data types.

Preview — full sheet in the PDF

What's inside this workbook

This Class 9 Computer Science Practice contains 10 questions across 2 printable pages and includes a full answer key at hard difficulty. Aligned to the CBSE and NCERT syllabus.

How this worksheet helps your child

  • Builds confidence in core Computer Science concepts taught in Class 9 through repeated, varied practice.
  • Aligned to CBSE and NCERT — questions mirror the pattern children see in school tests and unit assessments.
  • Comes with an answer key so parents and students can self-check in minutes, without needing a teacher.
  • Pitched at hard level — use it for daily homework, weekend revision or quick exam warm-ups.

About this worksheet

Dive deep into the world of Python's fundamental data structures with our challenging Class 9 Computer Science practice worksheet, specifically designed for CBSE students. This resource is perfect for learners who have a foundational understanding of Python and are ready to push their knowledge of lists and tuples to the next level. Lists and tuples are cornerstones of programming, enabling efficient storage and manipulation of multiple pieces of data. Mastering these concepts is crucial for building robust programs and forms an essential part of the CBSE Class 9 Computer Science curriculum. This worksheet covers advanced scenarios, encouraging critical thinking and problem-solving skills, making it ideal for students aiming for a thorough grasp of these powerful data types. It acts as an excellent tool for reinforcing classroom learning and preparing for examinations.

What your child will learn

  • Practice advanced manipulation techniques for Python lists and tuples.
  • Identify key differences and appropriate use cases for lists versus tuples.
  • Apply indexing, slicing, and various methods to update and access elements within these data structures.
  • Solve complex problems involving nested lists and tuples.
  • Recognize and debug common errors associated with list and tuple operations.

Understanding the concept

In computer science, especially with a language like Python, we often need to store more than just a single piece of information at a time. Imagine you want to keep track of a student's marks in five different subjects. Instead of creating five separate variables, you can use a 'data structure' to hold all these marks together. Two very common and important data structures in Python are lists and tuples, and this worksheet helps master them. A 'list' is like a shopping list where you can add new items, remove old ones, or even change an item you've already written down. It's an ordered collection, meaning the items have a specific sequence, and it's 'mutable,' which means it can be changed after it's created. For example, `my_list = [10, 20, 30]` is a list. We can change `my_list[0]` to `5`. On the other hand, a 'tuple' is like a sealed envelope containing a fixed set of items – once you’ve put things in and sealed it, you cannot change its contents. It's also an ordered collection, but it's 'immutable,' meaning you cannot add, remove, or modify items once the tuple is created. For example, `my_tuple = (10, 20, 30)` is a tuple. You cannot change `my_tuple[0]` to `5`. This immutability gives tuples certain advantages, like being safer for storing data that shouldn't be altered. Understanding when to use a list versus a tuple is key to writing efficient and error-free Python programs.

Tips for parents & teachers

  • Encourage your child to first review their Python notes on lists and tuples before attempting these advanced problems.
  • Advise them to write down the expected output for each step of a complex problem before running it on a computer, to develop logical thinking.
  • Suggest using a Python interpreter or online IDE to test their code and verify their answers as they work through the worksheet.
  • Help them identify the core difference between lists (mutable) and tuples (immutable) and how this impacts problem-solving.
  • Review any incorrect answers together, focusing on understanding the 'why' behind the correct solution rather than just memorizing it.

Topics covered

pythonliststuplesdata structurescbseclass 9

How to use this worksheet at home

Open the print view and use your browser's Print dialog to print on regular A4 paper or save as a PDF. Hand the printed sheet to your child (Class 9) and set a relaxed time limit — 15 to 25 minutes works for most Computer Science worksheets. When they're done, open the "With answer key" view and let them self-mark question by question. Re-print as many times as you need; the file never expires and there's no download limit.

Frequently asked questions

Is this Computer Science worksheet really free?
Yes — every workbook on WorkbookWala is 100% free to download and print. No login, no email, no paywall. We're free for students, parents and teachers.
Is it aligned to the CBSE / NCERT syllabus?
Yes. All Class 9 worksheets are built around the CBSE and NCERT pattern so they map cleanly to what your child is studying in school.
Can I print this worksheet at home?
Yes. Click "Open print view" and use your browser's Print dialog to print on standard A4 paper, or save it as a PDF for later. The layout is designed to fit cleanly without scaling.
Does it include an answer key?
Yes — click "With answer key" to print a version with answers included, so parents and students can self-mark in minutes.

More Computer Science worksheets for Class 9

View all →
Something off with this worksheet? Report an issue
Print / Save as PDF