Test Your Knowledge: Quiz

 

 
  1. What is the value of the expression 2 * (3 + 4) in Python?
  2. What is the value of the expression 2 * 3 + 4 in Python?
  3. What is the value of the expression 2 + 3 * 4 in Python?
  4. What tools can you use to find a number’s square root, as well as its square?
  5. What is the type of the result of the expression 1 + 2.0 + 3?
  6. How can you truncate and round a floating-point number?
  7. How can you convert an integer to a floating-point number?
  8. How would you display an integer in octal, hexadecimal, or binary notation?
  9. How might you convert an octal, hexadecimal, or binary string to a plain integer?