Can You Guess The Programming Language by Simple Line?

You'll be presented with simple lines of code, and your task is to identify the programming language based on the syntax. Whether you're a seasoned coder or just getting started, this quiz will challenge your understanding of various programming languages

Can You Guess The Programming Language by Simple Line?

This image was created with the assistance of Playground AI

Test your knowledge of programming languages!

You'll be presented with simple lines of code, and your task is to identify the programming language based on the syntax. Whether you're a seasoned coder or just getting started, this quiz will challenge your understanding of various programming languages.

What programming language is represented by this line of code: print("Hello, World!")?
JavaScriptJavaPython
Which programming language uses this line of code: console.log("Hello, World!");?
JavaScriptC++Ruby
What programming language is indicated by this code snippet: System.out.println("Hello, World!");?
SwiftC#Java
Which programming language uses this syntax: echo "Hello, World!";?
PHPPythonJava
What programming language is represented by this line: printf("Hello, World!\n");?
CRubyJavaScript
Which programming language uses the following syntax: document.write("Hello, World!");?
C++JavaScriptPython
What programming language is indicated by this line of code: System.Console.WriteLine("Hello, World!");?
JavaSwiftC#
Which programming language uses the following line: cout << "Hello, World!" << endl;?
PythonRubyC++
What programming language is represented by this code snippet: puts "Hello, World!"?
SwiftRubyJava
Which programming language uses this syntax: alert("Hello, World!");?
JavaScriptC#PHP
What programming language is indicated by this line of code: print("Hello, World!")?
C++JavaPython

More Like This
Elemental Exploration: Can You Answer 20 Easy Chemistry Questions?
Elemental Exploration: Can You Answer 20 Easy Chemistry Questions? trivia quiz
Do You Know the Calendar?
Do You Know the Calendar? trivia quiz
English Spelling Quiz: Can You Answer All 20 Questions?
English Spelling Quiz: Can You Answer All 20 Questions? trivia quiz
Are These Words German Or Swedish?
Are These Words German Or Swedish? trivia quiz
What Programming Language Are You? 💻
What Programming Language Are You? 💻 quiz
Which Firewall Are You?
Which Firewall Are You? quiz
 If You Worked in a Big IT Company, What Would Your Job Position Be?
If You Worked in a Big IT Company, What Would Your Job Position Be? quiz
If You Were a Programming Language, Which One Would You Be?
If You Were a Programming Language, Which One Would You Be? quiz
Are You a Low-Tech Person? 📼
Are You a Low-Tech Person? 📼 quiz
Which Button on the Keyboard Are You? ⌨️
Which Button on the Keyboard Are You? ⌨️ quiz
What's Your Must-Have Tech Accessory?
What's Your Must-Have Tech Accessory? quiz
What's Your Preferred Digital Assistant?
What's Your Preferred Digital Assistant? quiz
Latest
Creepy Countdown: 11 Two-Sentence Stories That Will Make Your Skin Crawl
Creepy Countdown: 11 Two-Sentence Stories That Will Make Your Skin Crawl article
Can You Get 15/15 On This General Knowledge Quiz?
Can You Get 15/15 On This General Knowledge Quiz? trivia quiz
The Soul of the Samurai (Fairy Tale)
The Soul of the Samurai (Fairy Tale) article
The Single Lantern of Yamato (Fairy Tale)
The Single Lantern of Yamato (Fairy Tale) article
The Princess Moonbeam (Fairy Tale)
The Princess Moonbeam (Fairy Tale) article
Are You Paris or Nicky Hilton?
Are You Paris or Nicky Hilton? quiz
The Hunter and the Priest (Fairy Tale)
The Hunter and the Priest (Fairy Tale) article
The Knightly Waste-paper Man (Fairy Tale)
The Knightly Waste-paper Man (Fairy Tale) article
The Goddess of Green-growing Things (Fairy Tale)
The Goddess of Green-growing Things (Fairy Tale) article
See all