Quiz


  1. Which of the four arithmetic operations has more than one operator?

  2. Which of the arithmetic operators can operate on string as well as numeric operands?

  3. Which of the arithmetic operators cannot have a floating point operand?

  4. Which of the arithmetic operators cannot have a zero as a second operand?

  5. Assuming total is a variable, how else could you express in code total = total + 2?

  6. What is the result of 2 + 3 * 4?

  7. What is the result of the expression 8 / 2 * 4?

  8. What is the result of the expression 10 / 4?

  9. What operator or function do you use to raise a number to a certain power?

  10. What is an algorithm?




C++ Demystified(c) A Self-Teaching Guide
C++ Demystified(c) A Self-Teaching Guide
ISBN: 72253703
EAN: N/A
Year: 2006
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net