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 →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer 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. Problems
  2. /Computer Science
  3. /Programming

Programming

Computer Science
+ Upload a Problem
More in Computer ScienceData RepresentationData TransmissionEncryption and Cyber SecurityComputer HardwareSoftware, Languages and TranslatorsThe Internet, the Web and Digital CurrencyAutomated and Emerging TechnologiesAlgorithms and Problem-SolvingDatabases and SQLBoolean LogicProgramming
30 problems
Exam:
Type:
1.
A long scenario question. A teacher has the names of 5 students in the file Names.txt, one name a… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Hard
2.
Shopping.txt holds six lines: bread, rice, milk, eggs, tea and jam… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Medium
3.
The file Best.txt holds one line: 120. What is output, and what does Best.txt hold afterwards, when… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
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… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Hard
5.
Three teams play three games each. Points[Team, Game] holds the points of a team in a game… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Medium
6.
A small theatre has 5 rows of 8 seats. The program marks booked seats… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Easy
7.
A program tries to move everyone in a queue back one place, to make room at the front… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Medium
8.
A diver's depths below the surface are stored as negative heights in metres: -12, -5, -30, -5, -8… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Hard
9.
Follow the program. What values does the array hold, and what are the two outputs? New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Medium
10.
A weather app stores one temperature in degrees Celsius for each day of a week… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Easy
11.
A long scenario question. A website asks each new user for a password… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Hard
12.
This function should return the larger of two integers, and the main program should output twice… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Medium
13.
This program works, but it is hard to maintain… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Easy
14.
A year is a leap year when it divides exactly by 4, except that a year dividing by 100 is a leap… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Hard
15.
This program finds the average of three marks… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Medium
16.
This program looks at each character of a sentence… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Medium
17.
Follow the string routines. Write down the three lines of output. New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Easy
18.
Read this program carefully. The procedure declares its own Score… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Hard
19.
A shop's program works out sale prices in dollars… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Medium
20.
A program draws borders of stars with a procedure… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Easy
21.
A long scenario question. At a sports day, six runners each run 100 metres… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Hard
22.
This pseudocode works on a whole number that is input… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Hard
23.
A box office sells from 1 to 6 tickets to one person… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Medium
24.
Ana saves money each week. This pseudocode works out her savings in dollars… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Easy
25.
A youth club accepts members aged 11 to 16, both included. A programmer wrote… New
High School (9–10) · ProgrammingIGCSEIGCSEStemPy LabStemPy Lab
Hard
Page 1 of 2

Showing 1–25 of 30