FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What will the output be from the following code?print("Hello world!” * 2 * “Hello world!")
A
TypeError
B
Hello world! Hello world! Hello world! Hello world!
C
Hello Hello World! World!
D
Hello world! Hello world!
Explanation: 

Detailed explanation-1: -The first print statement will print Hello World! The End keyword is used for printing the next statement in the same line. Hence, the program should give the output of Hello World!

Detailed explanation-2: -Explanation: The expression shown above is evaluated as: 2+9*(36-8)/10, which simplifies to give 2+9*(2.8), which is equal to 2+25.2 = 27.2. Hence the result of this expression is 27.2. 3.

There is 1 question to complete.