Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MODULE 4 TOPICS REVIEW
- Operators and Operands
- • Which of the two (Operands or Operators) are the items being acted on?
- • List a few examples of Operators:
- • What are the two types of Operators (Hint: It involves how many operands they act on at once):
- • In the following expressions, which operation will occur first? (See Bottom Image for reference, only look for the operators you need to avoid confusion).
- o 1 + 3 / 2
- o 4 * 22 / 4 + 7
- o true && false || false
- o (1 / 5) * (4 + 2)
- • What is the difference between a Prefix and Postfix Unary Operator?
- Expressions (Division and Modulo)
- • What is the result of this expression if the numbers are integers?
- o 1 / 2 =
- • What is the result of this expression if the numbers are doubles or floats?
- o 1.0 / 2.0 =
- • What is the result of this expression if the numbers are integers?
- o 20 % 2 =
- • What happens in this expression if the numbers aren’t integers?
- o 20 % 2
- Type Conversions
- • What is the difference between implicit and explicit casting?
- Review Question
- • Write a scan statement that will take two integers as input, and put them into variables intNum1 and intNum2.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement