NEW
Font size
Worksheetsgrade 6 week 5
Total questions: 52
Worksheet time: 17mins
What is a flowchart?
Program code
A diagram that shows the steps in a process
List of variables
Type of loop
What shape is used for the start/end in a flowchart?
Rectangle
Oval
Diamond
Parallelogram
What shape is used for processes in a flowchart?
Rectangle
Oval
Diamond
Triangle
What shape is used for decision making?
Circle
Diamond
Rectangle
Square
What shape is used for input/output in a flowchart?
Oval
Parallelogram
Rectangle
Diamond
What does the arrow represent in the flowchart?
New process
Control flow
Loop
Bug
Which of the following is NOT a benefit of flowcharts?
Easy to understand
Helps in debugging
Shows program logic
Runs faster
In a decision box, how many possible outcomes are there?
1
2
3
Unlimited
What is the purpose of a flowchart?
To store data
To plan and visualize processes
To debug code only
To design graphics
Which of these is the correct flowchart sequence?
Start → Decision → Process → End
Start → End → Process → Decision
Process → Start → Decision → End
Start → Output → Start
What is the symbol for input in a flowchart?
Parallelogram
Rectangle
Diamond
Oval
If you want to check "Is X > 10?" in a flowchart, what shape do you use?
Oval
Diamond
Rectangle
Parallelogram
Which flowchart symbol is used for “Display results”?
Rectangle
Parallelogram
Diamond
Oval
What should always appear at the beginning of a flowchart?
Process
Start symbol
Output
Decision
What is the last symbol in a flowchart?
End symbol
Process
Decision
Loop
Which of these is a common mistake in flowcharts?
Incorrect symbols used
Arrows pointing in the correct direction
Clear labels
Simple layout
What is the main advantage of using flowcharts?
The program runs faster
Helps visualize logic
Uses less memory
Avoids the use of variables
What is missing if a flowchart does not have arrows?
Logic
Flow direction
Output
Input
In a flowchart, decisions often lead to…
End only
Two or more paths
Only one process
Start symbol
What does the diamond shape represent?
Input/Output
Process
Decision
Start
If a flowchart has incorrect logic, what is it called?
Loop
Bug
Function
Variable
What is the difference between process and decision in a flowchart?
Process makes choices, decision executes tasks
Process executes tasks, decision makes choices
Both are the same
Process is faster
What is an algorithm in relation to flowcharts?
Visual representation of steps
Only programming code
Diagram for hardware
Type of bug
Can flowcharts help in debugging?
Yes
No
Only sometimes
Never
Flowcharts are best used...
Before coding
After debugging
Only during code execution
To replace programming
What is a bug in programming?
Virus
Error in the program
Flowchart symbol
Type of loop
What is debugging?
Writing new code
Fixing program errors
Drawing flowcharts
Cre
What is a bug in programming?
Virus
Error in the program
Flowchart symbol
Type of loop
What is debugging?
Writing new code
Fixing program errors
Drawing flowcharts
Creating variables
What type of bug is included?
Syntax error
Arrow direction
Oval symbol
Flowchart step
What type of bug is included?
Logical error
Rectangular shape
Start symbol
None
What type of bug is included?
Runtime error
Parallel process
Input form
End
What is the first step in debugging?
Run the code
Identify the error
Fix the bug
Write new code
What is the last step in debugging?
Test the program
Write a flowchart
Create variables
Print output
What tool is used to find bugs?
Debugger
Compiler
Flowchart
Decision box
What is a syntax error?
Incorrect programming grammar
Incorrect answer
Incorrect variable name
Incorrect number
What is a logical error?
Program hangs
Program runs but gives incorrect results
Program does not start
Code is missing
What is a runtime error?
Occurs during program execution
Occurs before running
Occurs after compiling
Occurs in a flowchart
Which method is NOT used in debugging?
Print statements
Error messages
Random guessing
Debugger tools
What is an example of a logic bug?
Using the wrong condition in an if statement
Missing colon
Typographical error
Missing variable
What is an example of a syntax bug?
Missing parentheses
Incorrect calculation
Incorrect flowchart
Slow program
Why is debugging important?
To make the code shorter
To ensure the program works correctly
To make the program colorful
To remove flowcharts
Which best practice is for debugging?
Test small parts of the code
Write the entire program before testing
Ignore errors
Never use print statements
How can flowcharts assist in debugging?
By showing the structure of the program
By making the code shorter
By automatically removing bugs
By storing data
What does 'code trace' mean?
Read code step by step
Draw new code
Remove bugs
Change variables
If the decision box in a flowchart is inverted, what type of bug is that?
Logic error
Syntax error
Runtime error
Hardware issue
Which type of error will stop the program from running at all?
Syntax error
Logic error
Runtime error
None
Which type of error allows a program to run but gives incorrect output?
Logic error
Syntax error
Runtime error
None
Which type of error occurs only when you run the program?
Runtime error
Syntax error
Logic error
None
What is the main purpose of debugging?
Remove bugs
Make the program shorter
Add more features
Remove flowcharts
Jenis bug mana yang TIDAK termasuk?
Kesalahan sintaks
Kesalahan logika
Kesalahan desain
Kesalahan runtime
Jika Anda memperbaiki satu bug dan bug lain muncul, apa yang harus Anda lakukan?
Abaikan
Debug lagi
Berhenti coding
Hapus program
