MAKE IT YOURS

A world for every learner

Choose a grade to discover its colours and creative world.

Grade 9 Lists & Arrays Worksheet with Answers

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

Unit 2: Programming FundamentalsListsCSTA 3A-AP-14

Indexing, slicing and changing lists, and finding their length and values. 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

Lists & Arrays

Grade 9 · Computer Science

Score___ / 12

Name

Class

Date

Learning goal: Lists · CSTA 3A-AP-14

Directions: Read each question carefully and write your answer on the line. Use the diagram to help you.

RememberLists start at index 0

70-531-492-343-264-1nums =indexnegativenums[0] → 7 nums[-1] → 6nums[1:3] → [3, 9]len(nums) → 5
  1. 1

    nums = [27, 49, 37, 38, 32, 41, 14]. What is nums[3]? (Indexes start at 0.)

    270491372383324415146index
  2. 2

    nums = [13, 13, 1, 1, 17, 48]. What is nums[5]? (Indexes start at 0.)

    1301311213174485index
  3. 3

    nums = [15, 44, 39, 3, 18, 34, 36]. What is nums[4]? (Indexes start at 0.)

    15044139233184345366index
  4. 4

    nums = [30, 25, 25, 2, 42, 34, 5]. What is nums[0:3]?

    3002512522342434556index
  5. 5

    nums = [9, 11, 44, 40, 28, 2, 16]. What is nums[1:7]?

    9011144240328425166index
  6. 6

    nums = [13, 48, 4, 16, 39, 48]. What is nums[1:4]?

    13048142163394485index
  7. 7

    nums = [35, 21, 44, 2, 24, 47]. What is nums[-2]?

    35021144223244475index
  8. 8

    nums = [27, 35, 48, 48, 25, 27, 4]. What is nums[5]? (Indexes start at 0.)

    27035148248325427546index
  9. 9

    nums = [15, 30, 21, 32, 49, 39, 6]. What is nums[-2]?

    15030121232349439566index
  10. 10

    nums = [6, 47, 16, 16, 21, 43]. What is nums[1:3]?

    60471162163214435index
  11. 11

    nums = [34, 34, 34, 4, 37, 11, 18]. What is nums[0]? (Indexes start at 0.)

    34034134243374115186index
  12. 12

    nums = [8, 43, 6, 5, 27, 31, 38]. What is nums[-2]?

    804316253274315386index

★ Challenge corner for fast finishers

In a list of every 4-bit pattern, how many patterns have exactly one 1?

8421

How did I do?

Teacher's comments

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

Answer key (click to show)
  1. 1.38
  2. 2.48
  3. 3.18
  4. 4.[30, 25, 25]
  5. 5.[11, 44, 40, 28, 2, 16]
  6. 6.[48, 4, 16]
  7. 7.24
  8. 8.27
  9. 9.39
  10. 10.[47, 16]
  11. 11.34
  12. 12.31
  13. ★4 (challenge corner)

Need another Lists & Arrays 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 Lists & Arrays 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 Lists & Arrays worksheet?

Yes. Create a free account to generate as many fresh Grade 9 Lists & Arrays 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.