Programming languages - "Hello World."

Can you identify the programming language used to print these "Hello World."?
Quiz by
alexm72
Rate:
Last updated: November 1, 2015
You have not attempted this quiz yet.
First submittedNovember 1, 2015
Times taken2,454
Average score60.0%
Rating4.25
Report this quizReport
2:30
0
 / 10 guessed
The quiz is paused. You have remaining.
Scoring
You scored / = %
This beats or equals % of test takers also scored 100%
The average score is
Your high score is
Your fastest time is
Keep scrolling down for answers and more stats ...
Hint
Answer
System.out.println("Hello World.");
Java
std::cout << "Hello, new world!\n";
C++
echo 'Hello World.';
PHP
Console.WriteLine("Hello World.");
C#
NSLog (@"Hello World.");
Objective C
puts 'Hello World.'
Ruby
alert('Hello, World!')
JavaScript
print "Hello World."
Python
Sub Main()

MsgBox("Hello World.")

End Sub
Visual Basic
printf("hello, world\n");
C
Save Your Stats
Your Next Quiz
Guess what the underlined letter in these acronyms and initialisms stands for.
Try to guess the most common words in the English language. You will fail and then kick yourself.
It's election day and you are representing the Lime Green Party of America. Name any state to grab its electoral votes and defeat the hated Periwinkle party.
To start, name any country. The redder it appears, the closer you are. When you guess the mystery country, the quiz is over - you win!
7 Comments
+1
Level 45
Dec 16, 2018
Great quiz!
+1
Level 66
Nov 15, 2019
print "Hello World." works in BASIC, too.
+10
Level 74
Nov 10, 2021
Python, without a qualifier, now unambiguously refers to Python 3; in Python 3, "print" is a function and the example is incorrect. So the example should be modified.

Goodness knows in how many languages print("Hello World.") is valid.

+4
Level 43
Sep 6, 2023
In Python print is a function so you need the parentheses
+2
Level 67
Nov 23, 2023
Sure, the printed string doesn't matter but it's funny the hints are inconsistent. Hello World. Hello, new world! Hello, World! hello, world
+1
Level 39
Nov 18, 2024
we need brainf**k
+1
Level 62
Jun 24, 2025
There are a number of problems here.

* The Python example is Python 2, which is no longer maintained

* The PHP example is also valid in most shell scripting languages. Too generic.

* Typing "C" auto-populated the "C#" answer, which seems like too much of a gimme

* You don't include required boilerplate in e.g. Java, why include it for VB? Just takes up space.