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!")?
PythonJavaScriptJava
Which programming language uses this line of code: console.log("Hello, World!");?
C++JavaScriptRuby
What programming language is indicated by this code snippet: System.out.println("Hello, World!");?
C#SwiftJava
Which programming language uses this syntax: echo "Hello, World!";?
JavaPHPPython
What programming language is represented by this line: printf("Hello, World!\n");?
RubyCJavaScript
Which programming language uses the following syntax: document.write("Hello, World!");?
PythonJavaScriptC++
What programming language is indicated by this line of code: System.Console.WriteLine("Hello, World!");?
JavaC#Swift
Which programming language uses the following line: cout << "Hello, World!" << endl;?
C++PythonRuby
What programming language is represented by this code snippet: puts "Hello, World!"?
RubySwiftJava
Which programming language uses this syntax: alert("Hello, World!");?
JavaScriptPHPC#
What programming language is indicated by this line of code: print("Hello, World!")?
C++JavaPython

More Like This
Science Fiction or Science Fact?: Guess if These Statements Are Real Scientific Fact or a Concept from a Movie!
Science Fiction or Science Fact?: Guess if These Statements Are Real Scientific Fact or a Concept from a Movie! trivia quiz
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
How to Act Like a Lady: 13 Essential Rules for Modern Women with Class
How to Act Like a Lady: 13 Essential Rules for Modern Women with Class article
Who Is Your Fantasy Books Soulmate?
Who Is Your Fantasy Books Soulmate? quiz
Fitness Fanatic or Bookworm Bliss? Discover Your Ideal Leisure Activity!
Fitness Fanatic or Bookworm Bliss? Discover Your Ideal Leisure Activity! quiz
Are You Turning into Your Father?
Are You Turning into Your Father? quiz
Tournament Temperament: Stay Calm Like Raiden or Unleash Fury Like Kano?
Tournament Temperament: Stay Calm Like Raiden or Unleash Fury Like Kano? quiz
Foodie Paradise or Cultural Immersion? Reveal Your Dream Travel Destination!
Foodie Paradise or Cultural Immersion? Reveal Your Dream Travel Destination! quiz
Fashionista or Comfort Clothes Connoisseur? Unveil Your Style Icon!
Fashionista or Comfort Clothes Connoisseur? Unveil Your Style Icon! quiz
Classic Rock Royalty or Modern Pop Icon? Discover Your Music Muse!
Classic Rock Royalty or Modern Pop Icon? Discover Your Music Muse! quiz
Who's Your Kombat Krew? Find Your Ideal Mortal Kombat Teammate!
Who's Your Kombat Krew? Find Your Ideal Mortal Kombat Teammate! quiz
See all