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.
What does a nested IF statement do?
Think about what happens when you place one IF statement inside another.
Write an example of a simple nested IF statement.
Consider checking a number against two conditions.
What is a nested IF statement?
Remember how we combine IFs.
True or False: A FOR loop can only loop through numbers?
Think about all the types of data structures we can loop over.
Write a program that counts how many even and odd numbers there are in a list of numbers using nested IF statements within a loop.
Consider how you could maintain two counters for each category.
Imagine you have a list of users with some having notifications. Write a program that sends notifications if a user has any messages, using nested loops.
Think about how to check if a user has messages before trying to notify.
5 more questions in this section. Enroll free to practise them all.
Enroll free