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 is an arithmetic expression? Give an example.
Think of basic math operations you can perform.
What does a relational expression do?
Consider comparisons like less than or greater than.
What is an expression in Java?
Think about what evaluates to a value.
True or False: Logical expressions can only return Boolean values.
Recall the nature of logical operations.
Write a Java method that accepts two integers and returns the greatest of the two using a conditional expression.
Use conditional expressions to determine the maximum.
Construct a complex expression that includes arithmetic, relational, and logical operations to determine if a user is eligible for a discount based on age and membership status.
Think of the criteria that must be met for eligibility.
5 more questions in this section. Enroll free to practise them all.
Enroll free