thumbnail

Print "Hello World" in different Coding Languages

I will give you a method to print "Hello World" to the console in a coding language, name that coding language.
If a language has a symbol in it e.g. an exclamation mark! in a fake language R! you will need to type in R Exclamation for the correct answer :)
Quiz by
A123S456
Rate:
Last updated: March 4, 2024
You have not attempted this quiz yet.
First submittedMarch 4, 2024
Times taken191
Average score46.7%
Report this quizReport
3:00
Enter answer here
0
 / 15 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
print("Hello World")
Python
console.log("Hello, world!");
JavaScript
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
Java
#include <stdio.h>
int main() {
printf("Hello, world!\n");
return 0;
}
C
#include <iostream>
int main() {
std::cout << "Hello, world!" << std::endl;
return 0;
}
C++
puts "Hello, world!"
Ruby
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
Go
fn main() {
println!("Hello, world!");
}
Rust
Hint
Answer
<?php
echo "Hello, world!";
?>
PHP
print "Hello, world!\n";
Perl
using System;
class Program
{
static void Main()
{
Console.WriteLine("Hello, world!");
}
}
C#
main = putStrLn "Hello, world!"
Haskell
echo "Hello, world!"
Shell Script
object HelloWorld {
def main(args: Array[String]): Unit = {
println("Hello, world!")
}
}
Scala
program hello
print *, 'Hello, World!'
end program hello
Formula Translation
Save Your Stats
Your Next Quiz
Name all 50 states in the USA. Easy, right?
Can you name the countries with the highest GDP per capita?
Watching the news might help you place these countries on the map.
Drag the flag onto the correct country. Careful, though! One wrong move and the game ends.
2 Comments
+2
Level 46
Nov 8, 2024
I put C++ and C# but it didn't count it.
+1
Level 45
Jan 27, 2025
It only counts C++ if you type in Cplusplus...