Interactive Quiz for Chapter 3

Question
Your Answer Result/Explanation
3.1
Write an expression that returns a random integers between 0 and 9, inclusive.
3.2
What is x after the following code?
  int x = 3;
  if (x >= 2); {
    x += 1;
  }
                  
3.3
What is true && true?
3.4
What is true && false?
3.5
What is true || false?
3.6
What is false || false?
3.7
What is !true?
3.8
What is !false?
3.9
Assume age = 16; ticketPrice = age >= 16 ? 20 : 10; What is ticketPrice?
3.10
Assume x is an integer. Write a simple expression that returns true if x is even or false if x is odd.