Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
Write an if statement that checks if x is greater than 5.
Remember the structure of if statement!
Create a for loop that prints numbers 1 through 3.
Use a simple increment and the disp function.
What does the if statement do?
Think about what happens in a decision-making process.
True or False: The for loop executes based on a condition being true.
Consider how control flow differs in loops.
Write a program that determines if a number is prime using an if statement and loops.
Think about how to identify factors of a number.
Develop a script that generates a multiplication table for numbers 1 through 5 using nested loops.
You need to repeat the outer loop for each number while multiplying with each in the inner loop.
5 more questions in this section. Enroll free to practise them all.
Enroll free