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.
Define what a variable is in programming.
Think of it as a box where you store information.
What is an example of an arithmetic expression in Java?
Look for expressions involving numbers and operators.
What is a variable?
Consider how variables function in a math equation.
True or False: Expressions can only include arithmetic operations.
Think about how complex expressions might look.
Create a small program that uses variables, expressions, and operators to calculate the total price of items after applying a discount.
Think about how to combine the prices and apply the discount effectively.
Write a function that takes two integers and returns true if the first is greater than the second, false otherwise. Use a logical operator in your solution.
Consider how comparisons work in Java.
5 more questions in this section. Enroll free to practise them all.
Enroll free