Java 1 Review
Quiz by Praise Apata
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
12 questions
Show answers
- Q1What is a variable in Java?A name associated with a memory location in the computerA keyword used to create a data typeA value stored in computer memoryA way to find an object in Java30s
- Q2Which data type is used to store decimal numbers in Java?doubleintbooleanString30s
- Q3Which data type is used to store true or false values in Java?doubleStringintboolean30s
- Q4What is the purpose of variable initialization in Java?The first time a variable is assigned a valueDeclaring a variable with a data typeCreating a named memory locationPrinting the value of a variable30s
- Q5What is the purpose of an assignment statement?To divide one number by another.To initialize or change the value stored in a variable.To increment a variable.To evaluate compound expressions.To test if two items are equal.30s
- Q6What is the operator used to test if two items are not equal in Java?!====<>30s
- Q7Which operator is used to assign a value to a variable in Java?><=!===30s
- Q8What does the == operator do in Java?Tests if the value on the left is not equal to the value on the right.Performs mathematical division.Assigns a value to a variable.Tests if the value on the left is equal to the value on the right (in terms of address)Tests if the value on the left is equal to the value on the right (in terms of content)Performs mathematical multiplication.30s
- Q9What does the modulo operator (%) return?The difference between two numbers.The quotient after dividing one number by another.The remainder after dividing one number by another.The product of two numbers.The sum of two numbers.30s
- Q10What is the purpose of incrementing a variable?To evaluate compound expressions.To test if two items are equal.To divide one number by another.To increase its value by a specific amount.To assign a value to a variable.30s
- Q11What is the purpose of using parentheses in arithmetic expressions?To increment a variable.To return the remainder of a division operation.To indicate the order of operations and ensure specific calculations are performed first.To compare two items for equality.To assign a value to a variable.30s
- Q12What is the result of an arithmetic operation that uses two int values?A double value.An object value.A boolean value.An int value.A string value.30s