Writing Programs Flashcards

1️⃣ Familiarise yourself with the flashcards:

  • Look through all the flashcards to see what's on both sides.
  • Make sure you understand the information on each card. If something's unclear, click the link to the revision notes at the bottom of the page for more details.

2️⃣ Test yourself:

  • Look at the question or prompt on each card and try to remember the answer before flipping it over.
  • Check the answer and make a note of any cards you find challenging and need to go over more.

3️⃣ Consistently Review and Practice:

  • Use spaced repetition: spend more time on the cards you struggle with and go over them more often.
  • Regularly review all the flashcards to help you better understand and retain the information over time.

Note: We may include questions that have multiple correct answers. It's useful to remember specific examples to understand these concepts better.

PERSONALISED 1-TO-1 TUTORING

Need more help on this topic? Get 1-to-1 support

Get support with clear explanations, practice and feedback (Ages 5 to 16).

  • DBS-checked tutors
  • Flexible times
  • Parents can be updated

Want an ad-free experience? Subscribe to remove ads

What is the difference between a variable and a constant?

A variable can change while the program runs. A constant stays the same.

What does an assignment statement do?

It sets or updates the value stored in a variable.

What do input and output mean in a program?

Input gets data from a user or file. Output shows data on screen or writes to a file.

What is a data type? Give two examples.

A data type says what kind of data is stored. Examples: integer (whole number) and Boolean (true or false).

What are the three basic programming constructs?

Sequence (steps run in order), selection (choices with if), and iteration (loops).

What is selection in programming?

It chooses which code to run based on a condition, for example if…else.

What is a count-controlled loop?

A loop that repeats a set number of times, for example a for loop from 1 to 10.

What is a condition-controlled loop?

A loop that repeats while or until a condition is true, for example while score < 10.

What are arithmetic and comparison operators used for?

Arithmetic operators add, subtract, multiply, and divide. Comparison operators compare values (e.g., greater than, equal to) and give true or false.

What is an array (or list) used for?

To store many items of the same type under one name, accessed by an index (position).

What is a subroutine, and how is a function different from a procedure?

A subroutine is a reusable block of code. A function returns a value; a procedure does not.

What does string concatenation mean?

Joining strings end to end to make one longer string.