Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Study
Pseudocodes - Loops
0
%
0
0
0
Back
Restart
Error? Output?
x: 1→3→5→7 stop ⇒ 7.
Oops!
Okay!
Output? Error?
x=8 ⇒ medium.
Oops!
Okay!
Error? Output?
Missing END FOR. Intended total = 1+2+3 = 6.
Oops!
Okay!
Output?
Uses comparison (=) correctly; x=5 ⇒ Not ten.
Oops!
Okay!
Error? Output?
9
Oops!
Okay!
Error? Output?
Off-by-one (should go to n). As is: 112*3 = 6.
Oops!
Okay!
DIV(31,4)
7
Oops!
Okay!
Flowchart symbol
Input/ Output
Oops!
Okay!
MOD(12,5)
Remainder, 2
Oops!
Okay!
Error? Output?
strings ⇒ 23
Oops!
Okay!
Flowchart symbol
Decision
Oops!
Okay!
Output?
3 + (2*2) = 7
Oops!
Okay!
Error? Output?
(2+3)*2 = 10 ⇒ yes.
Oops!
Okay!
Error? Output?
Adds only odds 1+3+5 = 9.
Oops!
Okay!
Error? Output?
Case-sensitive compare ⇒ No.
Oops!
Okay!
Error? Output?
Division by zero error. (No output; runtime error.)
Oops!
Okay!
Flowchart symbol
Process
Oops!
Okay!
Output?
area = 3.142*4 = 12.568.
Oops!
Okay!
Error or output?
Missing i ← i + 1 ⇒ infinite loop. Corrected output would be 1 2.
Oops!
Okay!
Flowchart symbol
Subroutine
Oops!
Okay!
Error? Output?
s not initialized. If s starts at 0, sum = 15 → 15.
Oops!
Okay!
Flowchart symbol
Terminator/ Start / Stop
Oops!
Okay!
Your experience on this site will be improved by allowing cookies.
Allow cookies