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)?
  • Which of the following flags is set to a 1 by the instruction just ending if a carry occurred from 4th bit ...
  • Which of the following algae are used as source(s) of alginates? 1. Gelidium 2. Macrocystis 3. Gloeopeltis ...
  • Which of the following are vitamin-deficiency diseases? 1. Glossitis 2. Haemorrhage 3. Kwashiorkor 4. Minim...
  • Which of the following are bacteriological stains used to identify acid-fast organisms? 1. Auramine-rhodami...
  • Match the following. | || |---|---| |1. Rice|A. Leaf| |2. Fenugreek|B. Root| |3. Radish|C. Stem| |4. Ginger...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy