Assignment 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 does assignment mean in programming?

Storing a value in a variable.

On which side of the assignment operator should the variable name go?

On the left side.

In x = 2 + 3, which part is worked out first?

The right side (2 + 3) is worked out first.

What happens to a variable’s old value when you assign a new one?

It is replaced and lost unless saved first.

What does initialising a variable mean?

Giving a variable its first value.

In many languages, what is the difference between = and == ?

= assigns a value; == checks if two values are equal.

What does count = count + 1 do?

It increases count by 1.

What does score += 5 mean?

It adds 5 to score; same as score = score + 5.

Can you change a constant after you set it?

No. A constant cannot be reassigned.

Why should you assign the correct data type to a variable?

To avoid errors and use it in the right way.