Java: Arithmetic Operators


Choose an answer and hit 'next'. You will receive your score and answers at the end.

question 1 of 3

Examine the following code. What will the value of the variable tester be?

Create Your Account To Take This Quiz

As a member, you'll also get unlimited access to over 79,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-free
Try it risk-free for 30 days. Cancel anytime
Already registered? Log in here for access

1. Examine the following code. The programmer is not getting the same value for myNumber and myNumber2. Why?

2. What will the value of l be?

Create your account to access this entire worksheet
A Premium account gives you access to all lesson, practice exams, quizzes & worksheets
Access to all video lessons
Quizzes, practice exams & worksheets
Certificate of Completion
Access to instructors
Create an account to get started Create Account

About This Quiz & Worksheet

See how much you know about arithmetic operators in Java by completing this quiz and worksheet. Some of the multiple-choice questions will ask you to examine a given code, and you'll also need to understand data types.

Quiz & Worksheet Goals

You will be tested on:

  • The meaning of given symbols
  • Analyzing code
  • Finding the value of a variable

Skills Practiced

  • Information recall - access the knowledge you've gained regarding the best data type when multiplying and/or dividing large numbers
  • Reading comprehension - ensure that you draw the most important information from the lesson on arithmetic operators in Java
  • Knowledge application - use your knowledge to solve an equation and identify the value of a given variable

Additional Learning

Learn more about math in Java by completing the lesson titled Java: Arithmetic Operators. Objectives covered include:

  • Review modulo operations
  • Define programming
  • Review various code examples
  • Discuss combining operations