Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is the result of 5 + 3?
Think about combining two numbers.
Calculate 15 - 7.
Find the difference between 15 and 7.
What does the + operator do in Java?
Think of how you would phrase a simple arithmetic problem.
The result of 9 % 4 is:
What remains when you divide 9 by 4?
Write a Java program that calculates the area of a rectangle given its length and width. Use multiplication for your calculation.
Remember to declare variables for length and width before calculating.
Given a number, write a Java function that returns the sum of its digits. For example, for 123, your function should return 1 + 2 + 3 = 6.
You can use both modulus and division to extract digits.
5 more questions in this section. Enroll free to practise them all.
Enroll free