Home > Articles > Programming > Java

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Review Questions

  1. What is modulus operator, and how is it used?

  2. What is the difference between the following operators: && and &?

  3. What is a truth table, and what does it tell you?

  4. What is the result of 21 & 3?

  5. What is the result of 21 | 3?

  6. What is the result of 21 ^ 3?

  7. What is the difference between the following operators: >> and >>>?

  8. What is the result of 5 * 5 + 5?

  9. What is the result of 5 + 5 * 5?

  10. What is the result of the following code fragment?

    int a = 5;
    a += 6 * ++a / 2 – 6 * 9 + 2

  • + Share This
  • 🔖 Save To Your Account