Computer Science, asked by banerjeesubhojit92, 3 months ago


1. Study the following statement: >>>"a"+"bc" . What will be the output of this statement?
d)​

Answers

Answered by anindyaadhikari13
4

Answer:

  • Assuming that it is written in Python, the output will be - "abc"

Explanation:

  • "a"+"bc" - In this line, the two strings are concatenated and the result becomes "abc".

  • If the códe goes like >> "a" + "bc", then no output is displaced, Python compiler will simply ignore the line.

  • However, if the códe is like >> print("a"+"bc"), then the output is - abc
Answered by atrs7391
1

The output will be nothing, As a and bc are in double quotation, it means it's a string and not integer value. In python whether it's in interactive or script mode, you'll need use the print() function to output any string value.

Similar questions