Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is a variable?
Think about how you might put things into boxes.
What does an if/else statement do?
Think of it as a decision-making tool.
What is a variable in programming?
Think about how data is organized.
True or False: A loop is used to repeat a block of code.
Consider how repetition in tasks can be handled in programming.
Create a program that takes continuous distance readings and makes the robot move forward if there's no obstacle, stop if there's one within 10 units, and turn around if an obstacle is too close (less than 3 units).
Think about how you can structure your if statements for different conditions.
Write a function that takes a list of distances and returns the average distance. Use this to decide if the robot should turn left or right based on distance averages.
Consider how you can iterate through the list to compute the sum.
6 more questions in this section. Enroll free to practise them all.
Enroll free