Guess the Programming Language

Can you guess the programming language given a "Hello world" example code?
Quiz by Pinoccio
Rate:
Last updated: August 17, 2018
You have not attempted this quiz yet.
First submittedAugust 17, 2018
Times taken1,635
Average score40.0%
Rating4.42
Report this quizReport
4:00
Enter programming language 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 ...
Hello World Code
Answer
#include

int main()
{
 std::cout << "Hello, world!";
 return 0;
}
C++
using System;
class Program
{
 public static void Main(string[] args)
 {
  Console.WriteLine("Hello, world!");
 }
}
C#
echo "Hello World"
Bash
disp('Hello world!')
MATLAB
print("Hello world!")
Python
puts "Hello world!"
Ruby
document.write('Hello world!');
JavaScript
program HelloWorld;
begin
 WriteLn('Hello world!');
end.
Pascal
cat('Hello, world! ')
R
$("body").append("Hello world!");
JQuery
import javax.swing.JFrame;
import javax.swing.JLabel;
public class HelloWorld {
 public static void main(String[] args) {
  JFrame frame = new JFrame();
  frame.setTitle("Hi!");
  frame.add(new JLabel("Hello world!"));
  frame.pack();
  frame.setLocationRelativeTo(null);
  frame.setVisible(true);
 }
}
Java
#import
#import

int main(void)
{
 NSLog(@"Hello world!");
 return 0;
}
Objective-C
package main
import "fmt"

func main() {
 fmt.Println("Hello World!")
}
Go
print_string "Hello World!\n";;
OCaml
PRINT "Hello, world!"​
BASIC
+5
Level 68
Oct 2, 2022
JQuery is not a programming language, it's a JS library.
+1
Level 56
Oct 2, 2022
I love the idea. Sad how unknown Basic is! It's still the only language I can really write in (in two different varieties, if I might make the most pointless boast ever).
+3
Level 82
Oct 2, 2022
That's def not how to print hello world in java
+5
Level 80
Oct 2, 2022
What is that Java code? It’s making my eyes bleed. You could just do System.out.print(“Hello World!”);
+1
Level 34
Sep 6, 2023
Fun quiz but you should use the standard output for each langage (in particular for Java), and jQuery isn't a language, it's a JS library. You should accept TypeScript for JavaScript too since valid JS is valid TS.