Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What does the if statement do?
Think about how decisions are made.
List two types of loops.
One loop iterates a fixed number of times.
What is the purpose of a conditional statement?
Think about decision-making in programming.
True or False: Loops can only be of one type.
Remember the different types we've discussed.
Write a program to print the first 10 Fibonacci numbers using loops.
Think about how you can use a loop to calculate each new Fibonacci number.
Create a program that uses both conditionals and loops to determine if numbers from 1 to 100 are prime.
Remember your definition of prime numbers and how to check for divisibility.
5 more questions in this section. Enroll free to practise them all.
Enroll free