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 taken23
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
No comments yet