Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
A block of code refers to a group of statements that are grouped together and treated as a single unit. It is often used to organize and control the flow of execution in a program.
Related terms
Parentheses: Parentheses are symbols "(" and ")" used in programming to group expressions or pass arguments to functions.
Brackets are symbols "[" and "]" used in programming, often for indexing arrays or accessing elements within data structures.
Statement: A statement is an instruction written in code that performs an action or operation. It represents a complete thought or command within a program.