HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Quizzes
  2. /A 2D array holds a small multiplication table. What is output?
Computer ScienceHardHigh School (9–10)Algorithms, Programming and Logic › ProgrammingIGCSE
StemPy LabCreated by StemPy Lab

A 2D array holds a small multiplication table. DECLARE M : ARRAY[1:3, 1:3] OF INTEGER DECLARE r : INTEGER DECLARE c : INTEGER DECLARE Sum : INTEGER FOR r ← 1 TO 3 FOR c ← 1 TO 3 M[r, c] ← r * c NEXT c NEXT r Sum ← 0 FOR r ← 1 TO 3 Sum ← Sum + M[r, r] NEXT r OUTPUT Sum What is output?

Log in to save
← All Quizzes
← A team records its goals in five matches and counts the matches that beat its average. What is output?A club table keeps one row for each member. What do we call the row that holds every detail about one member? →
More onAlgorithms, Programming and Logic › Programming

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. A team records its goals in five matches and counts the matches that beat its average. What is…Hard
  2. A program must read one line from the file Log.txt. In which order are the statements written?Medium
  3. A shop logs the parcels sent each day. Its file Week.txt starts with the lines 7, 4 and 9, for…Medium
  4. Last week the file Members.txt held five names. This week a program opens it FOR WRITE, writes the…Medium
  5. A hotel works out the number of each room from its floor and its door. What is output?Medium
All questions on this topic →

Problems on this topic

  1. A long scenario question. A teacher has the names of 5 students in the file Names.txt, one name a…Hard
  2. Shopping.txt holds six lines: bread, rice, milk, eggs, tea and jam…Medium
  3. The file Best.txt holds one line: 120. What is output, and what does Best.txt hold afterwards, when…Easy
  4. The nine squares of a board are input row by row: X, O, O, then X, X, X, then O, a dot for an empty…Hard
All problems on this topic →