Define algorithm.
A step-by-step procedure for solving a problem or performing a task.
What is pseudocode?
A method of designing algorithms using a structured but informal language.
True or false: Flowcharts are used to represent algorithms visually.
TRUE
Fill in the blank: Variables are used to store ______.
Data values
What is a loop in programming?
A sequence of instructions that repeats until a condition is met.
Define conditional statement.
A statement that executes different actions based on whether a condition is true or false.
What does iteration mean?
The process of repeating a set of instructions a certain number of times or until a condition is met.
True or false: Debugging is the process of finding and fixing errors in code.
TRUE
Fill in the blank: Syntax errors occur when the code does not ______.
Follow the rules of the programming language
What is a function?
A reusable block of code that performs a specific task.
Define data type.
A classification that specifies which type of value a variable can hold.
What is the purpose of input in programming?
To receive data from the user or another source for processing.
True or false: Output is the result produced by a program after processing input.
TRUE
Fill in the blank: Constants are values that do not ______.
Change during program execution
What is a list in programming?
A collection of items stored in a single variable.
Define array.
A data structure that can hold multiple values of the same type.
What does indexing mean in relation to arrays?
Accessing elements of an array using their position number.
True or false: Comments in code are ignored by the compiler.
TRUE
Fill in the blank: A string is a sequence of ______.
Characters
What is a boolean data type?
A data type that can hold only two values: true or false.
Define iteration control structure.
A programming construct that manages the flow of control in loops.
What is the purpose of variables?
To store data that can be manipulated within a program.
True or false: Nested loops are loops within other loops.
TRUE
Fill in the blank: A syntax error is a mistake in the ______.
Code structure