aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming Languages and Threading Concepts
  • main() { cout << "Hello World!"; return 0; }
Multiple choice technology programming languages

main() { cout << "Hello World!"; return 0; }

  1. C#

  2. C++

  3. JAVA

  4. C

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The code uses cout << from the C++ iostream library. C would use printf, C# would typically use Console.WriteLine, and Java would use System.out.println.

Keep practicing — related questions

  • int main() { printf("hello, world"); return 0; }
  • What will be the output of the given program? #include<iostream.h> void main ( ) { cout<< 5+ “Hello world”; }
  • JAVA class myfirstprog { public static void main(String args[]) { System.out.println("Hello World!"); } }
  • void main(){ print(“%d”,scanf(“%s”)) };
  • void main(){ print(“%d”,scanf(“%s”)) };
  • void main() { int i=0; int j = ++i; if(j>i) main(); } the program compiles. }
  • class myfirstprog { public static void main(String args[]) { System.out.println("Hello World!"); } }
  • What will be the output of the given program? #include<iostream.h> void main ( ) { int a=5; cout<< ++a; }
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Output Evaluation (1721 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy