aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Masters of Computer Application (C++)
  • The following expression evaluates to the value _____. 0 ...
Multiple choice

The following expression evaluates to the value _____. 0 + 1 * 3 - 1 * 5

  1. 10

  2. -10

  3. -2

  4. 2

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Following operator precedence: 1*3=3, 1*5=5. Then: 0+3-5 = -2. Multiplication has higher precedence than addition and subtraction.

Keep practicing — related questions

  • What is the value of the expression '1 2 3 + * 3 2 1 - + *'?
  • Evaluate the following expressions: (1/5)-1
  • What is the value of the expression (1 / 2 + 3 / 2 + 0.1)?
  • Consider the following countries: 1. Denmark 2. Japan 3. Russian Federation 4. United Kingdom 5. United Sta...
  • Which of the following are types of agranular leukocytes? 1. Neutrophils 2. Eosinophils 3. Basophils 4. Lym...
  • If 2 x 3 x 4 = 60 and 7 x 5 x 6 = 336, then find the value of 4 x 5 x 3.
  • Which of the following flags is set to 1 if the .result of the arithmetic or logical operation is 0 or othe...
  • Which of the following have coral reefs? 1. Andaman and Nicobar Islands 2. Gulf of Kachchh 3. Gulf of Manna...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy