0
0
Intro to Computingfundamentals~20 mins

Flowcharts for visualizing logic in Intro to Computing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Flowchart Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
trace
intermediate
1:30remaining
Trace the flowchart to find the output

Consider a flowchart that starts with a number n. It checks if n is greater than 10. If yes, it adds 5 to n. Otherwise, it subtracts 3 from n. What is the final value if n = 8?

A13
B5
C15
D8
Attempts:
2 left
💡 Hint

Follow the decision step carefully: Is 8 greater than 10?

🧠 Conceptual
intermediate
1:00remaining
Identify the purpose of a flowchart symbol

In flowcharts, which symbol is used to represent a decision point where the flow splits based on a condition?

ADiamond
BRectangle
COval
DParallelogram
Attempts:
2 left
💡 Hint

Think about the shape that looks like a tilted square.

Comparison
advanced
2:00remaining
Compare two flowcharts for the same logic

Two flowcharts perform the same task: checking if a number is even or odd. Flowchart A uses a decision to check number % 2 == 0. Flowchart B uses a decision to check number % 2 != 1. Which statement is true?

ABoth flowcharts produce the same output for all numbers.
BFlowchart A is correct; Flowchart B produces errors.
CBoth flowcharts produce different outputs for some numbers.
DFlowchart B is correct; Flowchart A produces errors.
Attempts:
2 left
💡 Hint

Recall that number % 2 gives the remainder when divided by 2.

🚀 Application
advanced
1:30remaining
Determine the number of steps in a flowchart

A flowchart starts with input x. It then checks if x is positive. If yes, it doubles x. If no, it sets x to zero. Finally, it outputs x. How many steps (including start and end) does this flowchart have?

A4
B6
C3
D5
Attempts:
2 left
💡 Hint

Count each shape: start, input, decision, process, output, end.

identification
expert
2:30remaining
Identify the error in a flowchart logic

A flowchart is designed to calculate the factorial of a number n. It initializes result = 1, then uses a loop from 1 to n multiplying result by the loop counter. However, the flowchart's loop counter starts at 0 instead of 1. What is the impact of this error?

AThe factorial will be off by one multiplication.
BThe factorial will be calculated correctly.
CThe factorial will always be zero.
DThe flowchart will cause an infinite loop.
Attempts:
2 left
💡 Hint

Recall that multiplying by zero results in zero.