Core programming concepts explained simply for kids, such as variables, events, and functions.
29 cards · basic cards · AI-written, checked twice. Edit anything.
- What is a variable in programming?
- A named box that stores a value, like a labeled container for information.
- What does it mean to declare a variable?
- To create a variable and give it a name so you can use it in your program.
- What is a function?
- A reusable block of code that performs a specific task.
- What is an event in programming?
- Something that happens during a program, like a click, key press, or timer going off.
- What is an event handler?
- Code that runs when a specific event occurs.
- What is a loop?
- A way to repeat code multiple times without writing it over and over.
- What does a for loop do?
- Repeats code a specific number of times.
- What does a while loop do?
- Repeats code as long as a condition is true.
- What is a conditional statement?
- Code that checks if something is true or false, then does different things based on the answer.
- What does an if statement do?
- Runs code only if a condition is true.
- What does an else statement do?
- Runs code if the if condition is false.
- What is a data type?
- A category of data, like numbers, text, or true or false values.
- What is a string?
- Text data, like letters, words, or sentences enclosed in quotation marks.
- What is an integer?
- A whole number, like 5, 42, or negative 10.
- What is a Boolean?
- A data type that is either true or false.