Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Community ▾
A
A
Problems
/
Computer Science
/
Programming
Programming
Computer Science
+ Upload a Problem
More in Computer Science
Data Representation
Data Transmission
Encryption and Cyber Security
Computer Hardware
Software, Languages and Translators
The Internet, the Web and Digital Currency
Automated and Emerging Technologies
Algorithms and Problem-Solving
Databases and SQL
Boolean Logic
Programming
All Levels
High School (9–10)
All
Easy
Medium
Hard
Sort
Mixed
Newest first
Oldest first
A to Z
30 problems
Exam:
Any
JEE Main
JEE Advanced
NEET
Board Exam
Olympiad
SAT
AP
A-Level
IGCSE
+31 more exams
+5 more exams
Type:
Any
Conceptual
Numerical
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) · Programming
IGCSE
IGCSE
StemPy Lab
Hard
2.
Shopping.txt holds six lines: bread, rice, milk, eggs, tea and jam…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy 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) · Programming
IGCSE
IGCSE
StemPy 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) · Programming
IGCSE
IGCSE
StemPy 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) · Programming
IGCSE
IGCSE
StemPy Lab
Medium
6.
A small theatre has 5 rows of 8 seats. The program marks booked seats…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy 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) · Programming
IGCSE
IGCSE
StemPy 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) · Programming
IGCSE
IGCSE
StemPy Lab
Hard
9.
Follow the program. What values does the array hold, and what are the two outputs?
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Medium
10.
A weather app stores one temperature in degrees Celsius for each day of a week…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Easy
11.
A long scenario question. A website asks each new user for a password…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Hard
12.
This function should return the larger of two integers, and the main program should output twice…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Medium
13.
This program works, but it is hard to maintain…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy 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) · Programming
IGCSE
IGCSE
StemPy Lab
Hard
15.
This program finds the average of three marks…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Medium
16.
This program looks at each character of a sentence…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Medium
17.
Follow the string routines. Write down the three lines of output.
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Easy
18.
Read this program carefully. The procedure declares its own Score…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Hard
19.
A shop's program works out sale prices in dollars…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Medium
20.
A program draws borders of stars with a procedure…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Easy
21.
A long scenario question. At a sports day, six runners each run 100 metres…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Hard
22.
This pseudocode works on a whole number that is input…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Hard
23.
A box office sells from 1 to 6 tickets to one person…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Medium
24.
Ana saves money each week. This pseudocode works out her savings in dollars…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Easy
25.
A youth club accepts members aged 11 to 16, both included. A programmer wrote…
New
High School (9–10) · Programming
IGCSE
IGCSE
StemPy Lab
Hard
←
Previous
Page 1 of 2
1
2
Next
→
Showing 1–25 of 30