COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

PROGRAMMING LANGUAGES

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

Detailed explanation-1: -The output of the following códe will be hello, world! a = “Hello, World!” a is a variable and a string i.e. Hello World! is assigned to it. lower() method is used to change all the letters in the string to lowercase letters.

Detailed explanation-2: -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-3: -Create the following C program and name the source file hello.c : #include <stdio.h> int main(void) printf("Hello World!"); return 0; Compile the program: Run the program by entering the following command: ./hello. More items

There is 1 question to complete.