Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Community ▾
A
A
Quizzes
/
Dry-run this algorithm. What does it output?
Computer Science
Medium
High School (9–10)
Algorithms, Programming and Logic › Algorithms and Problem-Solving
IGCSE
Created by
StemPy Lab
Dry-run this algorithm. What does it output?
A ← 20 B ← 0 WHILE A > B DO A ← A - 4 B ← B + 2 ENDWHILE OUTPUT A, " ", B
4 8
4 6
8 6
0 10
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← A program accepts heights from 40 to 220 centimetres, as whole numbers. Which value is **extreme** data?
This algorithm should output the average of four numbers once, at the end. What is the error, and how is it corrected? →
More on
Algorithms, Programming and Logic › Algorithms and Problem-Solving
Discussion (0)
Log in
to join the discussion.
Loading…
All questions on this topic →
Problems on this topic
This is the kind of long scenario question that ends Paper 2…
Hard
A delivery company adds a check digit to each parcel number…
Medium
Name the check in each case. Say whether it is validation or verification…
Easy
A bubble sort is changed so that it sorts in descending order: the comparison becomes IF…
Hard
All problems on this topic →