DevToolsHub Free · Fast · 100% in your browser

Guess the Programming Language

Look at a short code snippet and guess the programming language: Rust, Go, Kotlin, Elixir, Haskell and more.

Question1 / 20
Score0
Streak0
Best streak0

Which language is this?

def greet(name)
  "Hello, #{name}!"
end

puts greet("world")

About this guess the programming language quiz

How well do you know programming languages? Look at a short code snippet and identify the language: Rust, Go, Kotlin, Swift, Elixir, Haskell, F#, Scala, Lua, Dart and more. Each answer explains the giveaway syntax.

How to use the Guess the Programming Language

  1. Read the code snippet.
  2. Choose the language.
  3. Learn the telltale syntax from the explanation.

Frequently asked questions

How can I tell Kotlin from Swift?

Kotlin uses fun and val; Swift uses func, let and guard.

How can I tell Rust from Go?

Rust has fn, let mut and macros ending in !; Go has func, := and package declarations.

Is my data safe?

Yes. The tool runs entirely in your browser using WebAssembly. Nothing you type or upload is sent to a server, logged or stored.

Is it free?

Yes, completely free with no sign-up, no limits and no watermarks. It also works offline once the page has loaded.

An unhandled error has occurred. Reload ✕