
Java: Math & String
Quiz by Michael Engel
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
26 questions
Show answers
- Q1What will be the value of Math.ceil(4.2)?5644.230s
- Q2What will be the value of Math.pow(2, 3)?263830s
- Q3What will be the value of Math.random() * 10?10a random number between 1 and 100a random number between 0 and 1030s
- Q4What will be the value of Math.abs(-5.8)?-5.8055.830s
- Q5What will be the value of Math.floor(7.9)?6787.930s
- Q6What will be the value of Math.sqrt(25)?2551030s
- Q7What will be the value of Math.round(6.7)?6076.730s
- Q8What will be the value of Math.floor(Math.random() * 100)?A random integer between 0 and 99100A random decimal between 0 and 100030s
- Q9Which method can be used to calculate the largest integer less than or equal to a given number in Java?Math.floor()Math.round()Math.ceil()Math.random()30s
- Q10Which method can be used to calculate the power of a number in Java?Math.random()Math.pow()Math.sqrt()Math.abs()30s
- Q11Which method can be used to generate a random number between 0.0 (inclusive) and 1.0 (exclusive) in Java?Math.abs()Math.round()Math.random()Math.ceil()30s
- Q12Which method can be used to calculate the maximum value between two numbers in Java?Math.abs()Math.min()Math.max()Math.random()30s
- Q13Which method can be used to round a number to the nearest integer in Java?Math.floor()Math.round()Math.random()Math.ceil()30s
- Q14Which method can be used to find the absolute value of a number in Java?Math.abs()Math.floor()Math.ceil()Math.max()30s
- Q15Which method can be used to calculate the square root of a number in Java?Math.pow()Math.abs()Math.random()Math.sqrt()30s