The output of print("Hello" + "World") is:
-
A
Hello World
-
B
HelloWorld
Correct answer
-
C
Hello+World
-
D
Error
Correct answer
B. HelloWorld
11 views
Explanation
The + operator concatenates strings. So “Hello” + “World” gives “HelloWorld”.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ