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 a simple if statement that displays 'Hello' if x is greater than 10.
Think about the structure of the if statement.
What will 'if 5 < 10, disp('True'); end' display?
Check if the condition is correct.
What keyword is used to introduce an alternative condition in an if statement?
Think of what comes after an if statement when there's a need for an alternative.
True or False: The discriminant must be non-negative to guarantee real roots from a quadratic equation.
Recall the properties of quadratic equations.
6 more questions in this section. Enroll free to practise them all.
Enroll free