Computer Science, asked by rmanojdivya000, 9 months ago

What will be the output of the following code - print("100+200") ? pls quick

Answers

Answered by parkarziya573
1

Answer:

Answer is d. 250 300

ask related question

Answered by dualadmire
1

The output of the code is 100+200

Given: print("100+200")

To Find: The output of the code

Solution:

  • It must be noted that in programming, whatever the programming language may be if we print something within double quotes (" "), it is sure that the output will show exactly what is written within the quotes.
  • If there is something written without the double quotes (" "), then that will get executed, be it any calculation, function call, etc.

Coming to the question,

        print("100+200") has 100+200 written within double quotes (" "), so it will not be executed, rather it will be printed as such.

Hence, the output in the terminal window will show  100+200

#SPJ3

Similar questions