Guess the programming language
-
http://tutorialzine.com/2014/06/guess-the-programming-language/
Good idea, but unfortunately, too easy.
The offered alternatives were awful. "C#, C++ or Haskell" Really? Even if I had no idea what's haskell, I'd have no problems guessing that.
-
Protip: if you want to make it challenging for someone to guess the PHP language, don't put an opening tag that says "php" as the very first line of your snippet!
-
Chicken.
-
I got 20/20 too. I had to guess a few of them by process of elimination, but yeah, this wasn't all that hard even though I have no experience in most of the languages they mentioned.
-
17 out of 20.
Makes it way too easy by having too many giveaways. Gee, I wonder if the code with
use warnings
anduse strict
is Perl.
-
20 out of 20. Agreed, the alternatives were awful, especially as towards the end it was two common languages that were already used as the correct answer and one new more obscure language.
-
Got 19/20 because that Chicken program looks like valid Haskell.
-
I got 17. One of those (erlang) was because I apparently missed clicking the radio button. O)ne was I wasn't sure if python or scala...guess I should have gone with the obvious and assumed that only python is awful enough to not mark blocks. I forget what the other one was.
I liked the javascript
alert()
one with all the square brackets and Brainfuck as an option.
-
While it looks like Rust, it doesn't seem to be valid code. At least not in post-1.0 Rust.
-
The only ones I didn't know were the Scala and Rust ones, but with those I could trivially eliminate the other alternatives. 20/20
Of more interest is why did they use images of text!?
-
@boomzilla said in Guess the programming language:
I liked the javascript alert() one with all the square brackets and Brainfuck as an option.
That was the only remotely clever answer section.
If they put the same thought into other questions, the quiz would have been much better.
-
Easy.
-
@boomzilla said in Guess the programming language:
only python is awful enough to not mark blocks
Well, I mean, it's whitespace based block marking.
So.
-
@dkf said in Guess the programming language:
why did they use images of text!?
So you can't Google it easily?
-
@sloosecannon said in Guess the programming language:
So you can't Google it easily?
Which will only work for about 30 seconds until GIS catches up?
-
@dkf said in Guess the programming language:
Of more interest is why did they use images of text!?
to prevent cheating by googling, obvously
-
@dkf said in Guess the programming language:
@sloosecannon said in Guess the programming language:
So you can't Google it easily?
Which will only work for about 30 seconds until GIS catches up?
I'm not giving you a good reason, I'm just giving you a reason :P
-
-
This was funny quiz. Maybe I ask people at next interview.
-
20/20. There was only one that I didn't either know or was able to trivially exclude two of the three options. That one was a bit of an educated guess
-
@Jaloopa said in Guess the programming language:
That one was a bit of an educated guess
Chicken chicken chicken
Chicken
-
@dkf I was disappointed there was no LolCode
OH HAI I CAN HAS INTEGER? KTHXBAI
-
@dkf said in Guess the programming language:
Of more interest is why did they use images of text!?
Future-proofing for when they include Piet.
-
-
@Zecc said in Guess the programming language:
@dkf said in Guess the programming language:
Of more interest is why did they use images of text!?
Future-proofing for when they include Piet.
LINENUMBERZEROCODEPRINTZEROGOTOONELINENUMBERONECODEPRINTONEGOTOONEZEROLINENUMBE RONEZEROCODEPRINTZEROGOTOONEONELINENUMBERONEONECODEPRINTZEROGOTOONEZEROZEROLINE NUMBERONEZEROZEROCODEPRINTONEGOTOONEZEROONELINENUMBERONEZEROONECODEPRINTZEROGOT OONEONEZEROLINENUMBERONEONEZEROCODEPRINTZEROGOTOONEONEONELINENUMBERONEONEONECOD EPRINTZEROGOTOONEZEROZEROZEROLINENUMBERONEZEROZEROZEROCODEPRINTZEROGOTOONEZEROZ EROONELINENUMBERONEZEROZEROONECODEPRINTONEGOTOONEZEROONEZEROLINENUMBERONEZEROON EZEROCODEPRINTONEGOTOONEZEROONEONELINENUMBERONEZEROONEONECODEPRINTZEROGOTOONEON EZEROZEROLINENUMBERONEONEZEROZEROCODEPRINTZEROGOTOONEONEZEROONELINENUMBERONEONE ZEROONECODEPRINTONEGOTOONEONEONEZEROLINENUMBERONEONEONEZEROCODEPRINTZEROGOTOONE ONEONEONELINENUMBERONEONEONEONECODEPRINTONEGOTOONEZEROZEROZEROZEROLINENUMBERONE ZEROZEROZEROZEROCODEPRINTZEROGOTOONEZEROZEROZEROONELINENUMBERONEZEROZEROZEROONE CODEPRINTONEGOTOONEZEROZEROONEZEROLINENUMBERONEZEROZEROONEZEROCODEPRINTONEGOTOO NEZEROZEROONEONELINENUMBERONEZEROZEROONEONECODEPRINTZEROGOTOONEZEROONEZEROZEROL INENUMBERONEZEROONEZEROZEROCODEPRINTONEGOTOONEZEROONEZEROONELINENUMBERONEZEROON EZEROONECODEPRINTONEGOTOONEZEROONEONEZEROLINENUMBERONEZEROONEONEZEROCODEPRINTZE ROGOTOONEZEROONEONEONELINENUMBERONEZEROONEONEONECODEPRINTZEROGOTOONEONEZEROZERO ZEROLINENUMBERONEONEZEROZEROZEROCODEPRINTZEROGOTOONEONEZEROZEROONELINENUMBERONE ONEZEROZEROONECODEPRINTONEGOTOONEONEZEROONEZEROLINENUMBERONEONEZEROONEZEROCODEP RINTONEGOTOONEONEZEROONEONELINENUMBERONEONEZEROONEONECODEPRINTZEROGOTOONEONEONE ZEROZEROLINENUMBERONEONEONEZEROZEROCODEPRINTONEGOTOONEONEONEZEROONELINENUMBERON EONEONEZEROONECODEPRINTONEGOTOONEONEONEONEZEROLINENUMBERONEONEONEONEZEROCODEPRI NTZEROGOTOONEONEONEONEONELINENUMBERONEONEONEONEONECODEPRINTZEROGOTOONEZEROZEROZ EROZEROZEROLINENUMBERONEZEROZEROZEROZEROZEROCODEPRINTZEROGOTOONEZEROZEROZEROZER OONELINENUMBERONEZEROZEROZEROZEROONECODEPRINTONEGOTOONEZEROZEROZEROONEZEROLINEN UMBERONEZEROZEROZEROONEZEROCODEPRINTONEGOTOONEZEROZEROZEROONEONELINENUMBERONEZE ROZEROZEROONEONECODEPRINTZEROGOTOONEZEROZEROONEZEROZEROLINENUMBERONEZEROZEROONE ZEROZEROCODEPRINTONEGOTOONEZEROZEROONEZEROONELINENUMBERONEZEROZEROONEZEROONECOD EPRINTONEGOTOONEZEROZEROONEONEZEROLINENUMBERONEZEROZEROONEONEZEROCODEPRINTONEGO TOONEZEROZEROONEONEONELINENUMBERONEZEROZEROONEONEONECODEPRINTONEGOTOONEZEROONEZ EROZEROZEROLINENUMBERONEZEROONEZEROZEROZEROCODEPRINTZEROGOTOONEZEROONEZEROZEROO NELINENUMBERONEZEROONEZEROZEROONECODEPRINTZEROGOTOONEZEROONEZEROONEZEROLINENUMB ERONEZEROONEZEROONEZEROCODEPRINTONEGOTOONEZEROONEZEROONEONELINENUMBERONEZEROONE ZEROONEONECODEPRINTZEROGOTOONEZEROONEONEZEROZEROLINENUMBERONEZEROONEONEZEROZERO CODEPRINTZEROGOTOONEZEROONEONEZEROONELINENUMBERONEZEROONEONEZEROONECODEPRINTZER OGOTOONEZEROONEONEONEZEROLINENUMBERONEZEROONEONEONEZEROCODEPRINTZEROGOTOONEZERO ONEONEONEONELINENUMBERONEZEROONEONEONEONECODEPRINTZEROGOTOONEONEZEROZEROZEROZER OLINENUMBERONEONEZEROZEROZEROZEROCODEPRINTZEROGOTOONEONEZEROZEROZEROONELINENUMB ERONEONEZEROZEROZEROONECODEPRINTONEGOTOONEONEZEROZEROONEZEROLINENUMBERONEONEZER OZEROONEZEROCODEPRINTONEGOTOONEONEZEROZEROONEONELINENUMBERONEONEZEROZEROONEONEC ODEPRINTONEGOTOONEONEZEROONEZEROZEROLINENUMBERONEONEZEROONEZEROZEROCODEPRINTZER OGOTOONEONEZEROONEZEROONELINENUMBERONEONEZEROONEZEROONECODEPRINTONEGOTOONEONEZE ROONEONEZEROLINENUMBERONEONEZEROONEONEZEROCODEPRINTONEGOTOONEONEZEROONEONEONELI NENUMBERONEONEZEROONEONEONECODEPRINTONEGOTOONEONEONEZEROZEROZEROLINENUMBERONEON EONEZEROZEROZEROCODEPRINTZEROGOTOONEONEONEZEROZEROONELINENUMBERONEONEONEZEROZER OONECODEPRINTONEGOTOONEONEONEZEROONEZEROLINENUMBERONEONEONEZEROONEZEROCODEPRINT ONEGOTOONEONEONEZEROONEONELINENUMBERONEONEONEZEROONEONECODEPRINTZEROGOTOONEONEO NEONEZEROZEROLINENUMBERONEONEONEONEZEROZEROCODEPRINTONEGOTOONEONEONEONEZEROONEL INENUMBERONEONEONEONEZEROONECODEPRINTONEGOTOONEONEONEONEONEZEROLINENUMBERONEONE ONEONEONEZEROCODEPRINTONEGOTOONEONEONEONEONEONELINENUMBERONEONEONEONEONEONECODE PRINTONEGOTOONEZEROZEROZEROZEROZEROZEROLINENUMBERONEZEROZEROZEROZEROZEROZEROCOD EPRINTZEROGOTOONEZEROZEROZEROZEROZEROONELINENUMBERONEZEROZEROZEROZEROZEROONECOD EPRINTONEGOTOONEZEROZEROZEROZEROONEZEROLINENUMBERONEZEROZEROZEROZEROONEZEROCODE PRINTONEGOTOONEZEROZEROZEROZEROONEONELINENUMBERONEZEROZEROZEROZEROONEONECODEPRI NTONEGOTOONEZEROZEROZEROONEZEROZEROLINENUMBERONEZEROZEROZEROONEZEROZEROCODEPRIN TZEROGOTOONEZEROZEROZEROONEZEROONELINENUMBERONEZEROZEROZEROONEZEROONECODEPRINTZ EROGOTOONEZEROZEROZEROONEONEZEROLINENUMBERONEZEROZEROZEROONEONEZEROCODEPRINTONE GOTOONEZEROZEROZEROONEONEONELINENUMBERONEZEROZEROZEROONEONEONECODEPRINTZEROGOTO ONEZEROZEROONEZEROZEROZEROLINENUMBERONEZEROZEROONEZEROZEROZEROCODEPRINTZEROGOTO ONEZEROZEROONEZEROZEROONELINENUMBERONEZEROZEROONEZEROZEROONECODEPRINTONEGOTOONE ZEROZEROONEZEROONEZEROLINENUMBERONEZEROZEROONEZEROONEZEROCODEPRINTONEGOTOONEZER OZEROONEZEROONEONELINENUMBERONEZEROZEROONEZEROONEONECODEPRINTZEROGOTOONEZEROZER OONEONEZEROZEROLINENUMBERONEZEROZEROONEONEZEROZEROCODEPRINTONEGOTOONEZEROZEROON EONEZEROONELINENUMBERONEZEROZEROONEONEZEROONECODEPRINTONEGOTOONEZEROZEROONEONEO NEZEROLINENUMBERONEZEROZEROONEONEONEZEROCODEPRINTZEROGOTOONEZEROZEROONEONEONEON ELINENUMBERONEZEROZEROONEONEONEONECODEPRINTZEROGOTOONEZEROONEZEROZEROZEROZEROLI NENUMBERONEZEROONEZEROZEROZEROZEROCODEPRINTZEROGOTOONEZEROONEZEROZEROZEROONELIN ENUMBERONEZEROONEZEROZEROZEROONECODEPRINTONEGOTOONEZEROONEZEROZEROONEZEROLINENU MBERONEZEROONEZEROZEROONEZEROCODEPRINTONEGOTOONEZEROONEZEROZEROONEONELINENUMBER ONEZEROONEZEROZEROONEONECODEPRINTZEROGOTOONEZEROONEZEROONEZEROZEROLINENUMBERONE ZEROONEZEROONEZEROZEROCODEPRINTZEROGOTOONEZEROONEZEROONEZEROONELINENUMBERONEZER OONEZEROONEZEROONECODEPRINTONEGOTOONEZEROONEZEROONEONEZEROLINENUMBERONEZEROONEZ EROONEONEZEROCODEPRINTZEROGOTOONEZEROONEZEROONEONEONELINENUMBERONEZEROONEZEROON EONEONECODEPRINTZEROGOTOONEZEROONEONEZEROZEROZEROLINENUMBERONEZEROONEONEZEROZER OZEROCODEPRINTZEROGOTOONEZEROONEONEZEROZEROONELINENUMBERONEZEROONEONEZEROZEROON ECODEPRINTZEROGOTOONEZEROONEONEZEROONEZEROLINENUMBERONEZEROONEONEZEROONEZEROCOD EPRINTONEGOTOONEZEROONEONEZEROONEONELINENUMBERONEZEROONEONEZEROONEONECODEPRINTZ EROGOTOONEZEROONEONEONEZEROZEROLINENUMBERONEZEROONEONEONEZEROZEROCODEPRINTZEROG OTOONEZEROONEONEONEZEROONELINENUMBERONEZEROONEONEONEZEROONECODEPRINTZEROGOTOONE ZEROONEONEONEONEZEROLINENUMBERONEZEROONEONEONEONEZEROCODEPRINTZEROGOTOONEZEROON EONEONEONEONELINENUMBERONEZEROONEONEONEONEONECODEPRINTONE
-
19, said "Objective-C" instead of "C#". All the others I either recognized immediately, or like the Scala one, was able to determine by eliminating the languages I did know.
-
20/20. Whatever other people said. Process of elimination for the few ones that I did not recognize (swift, ruby & go IIRC). Fairly meh.
-
@Jaloopa said in Guess the programming language:
@dkf I was disappointed there was no LolCode
OH HAI I CAN HAS INTEGER? KTHXBAI
Me too!
-
Damn, I suck. 18.
-
What I learned: I never want to touch scala or objective-c, now that I know what they look like.
-
1986 - Brad Cox and Tom Love create Objective-C, announcing "this language has all the memory safety of C combined with all the blazing speed of Smalltalk." Modern historians suspect the two were dyslexic.
2003 - A drunken Martin Odersky sees a Reese's Peanut Butter Cup ad featuring somebody's peanut butter getting on somebody else's chocolate and has an idea. He creates Scala, a language that unifies constructs from both object oriented and functional languages. This pisses off both groups and each promptly declares jihad.
-- James Iry, A Brief, Incomplete, and Mostly Wrong History of Programming Languages
-
@cartman82 said in Guess the programming language:
http://tutorialzine.com/2014/06/guess-the-programming-language/
Good idea, but unfortunately, too easy.
The offered alternatives were awful. "C#, C++ or Haskell" Really? Even if I had no idea what's haskell, I'd have no problems guessing that.
It's an utter shit. It accepts no answer as a wrong answer.
Great!
-
@sloosecannon said in Guess the programming language:
@dkf said in Guess the programming language:
why did they use images of text!?
So you can't Google it easily?
Good thing they made it hard for all those pesky cheaters who'd like Google their way to a perfect score and all the fame an swagger that comes with it.
-
@dkf said in Guess the programming language:
@Jaloopa said in Guess the programming language:
That one was a bit of an educated guess
Chicken chicken chicken
Chicken
Hey, a lie repeated often enough became the truth!
-
-
@cartman82 said in Guess the programming language:
Good idea, but unfortunately, too easy.
Given that the intended audience is supposed to have “a life time of programming excellence to make it through” I think I’d agree looking at the scores above. Even I (a hobby programmer not fluent in any except swearing at language documentation writers) got 17/20, though I have to admit some I only got by eliminating the answers that I knew they weren’t.
@Magus said in Guess the programming language:
I never want to touch scala or objective-c, now that I know what they look like.
I’m so glad Swift exists now. Even though I fight with it as well (all those bloody !s that I can’t see a reason for but which break your program if you leave them out), at least the code is readable.
-
@Gurth said in Guess the programming language:
Given that the intended audience is supposed to have “a life time of programming excellence to make it through” I think I’d agree looking at the scores above. Even I (a hobby programmer not fluent in any except swearing at language documentation writers) got 17/20, though I have to admit some I only got by eliminating the answers that I knew they weren’t.
I think someone who's had a lifetime of programming excellence to make it through will be less, not more, familiar with current-decade hipster and esoteric languages.
-
@PleegWat said in Guess the programming language:
current-decade hipster and esoteric languages
On the other hand, the avid WTDWTF reader will have been exposed to most of this menagerie of languages. Go from ben_lubar, ruby from our favourite forum software,
brainfuckJS from the current one, and Visual Basic from the original one.
-
Why does Boo get no love?
-
@cvi said in Guess the programming language:
On the other hand, the avid WTDWTF reader will have been exposed to most of this menagerie of languages. Go from ben_lubar, ruby from our favourite forum software, brainfuckJS from the current one, and Visual Basic from the original one.
If I'd been running the questionnaire, I would've been tempted to stick to just the languages that actually have a functioning job market, as the menagerie of esoteric languages is just far too vast and obscure as any CS student with half a brain can write one of those, and frequently does…
-
Can you identify the following programming languages?
1:
/ ///!/\/.\\0\/,\\,0,\\,1\/\/.\\1\/,\\,0\/\/,\\,\/.\/\/+\\+\/=\\=.\\1-\/ \/=\\=\/+\\+\//!!!!!!!!!/.///+\+///-/\\\///0/1//1/*/++.1
2:
# Prints the integers consecutively. Each # integer n is printed as a line of n asterisks. ````s``s`ks``s`k`si``s`kk``s`k `s``s`ksk # Increment ``s`k ``s``s``si`k.*`kri # Print n (and return n) i`ki `ki # The number zero (replace by i to start from one) ``s``s`ks``s`k`si``s`kk``s`k # Ditto (other half-loop) `s``s`ksk ``s`k ``s``s``si`k.*`kri i`ki
3:
HAI VISIBLE "O HAI!" HOW DUZ I SHOWBEERZ YR NUMBEERZ DIFFRINT NUMBEERZ AN 69 O RLY? YA RLY MOD OF NUMBEERZ AN 3, WTF? OMG 0 VISIBLE "Wahl haz " NUMBEERZ " botlez!!" GTFO OMG 1 VISIBLE NUMBEERZ " botlez uv beer on teh wahl!" GTFO OMGWTF VISIBLE NUMBEERZ " botlez uv beer stihl on teh wahl!" OIC NO WAI VISIBLE "Da funy # 69 iz haow many botlez there iz!" OIC GTFO IF U SAY SO I HAS A BEERZVAR ITZ 99 IM IN YR LOOP NERFIN YR BEERZVAR TIL BOTH SAEM BEERZVAR AN 1 VISIBLE "Therez " BEERZVAR " beerz on teh wahl..." VISIBLE "Takez wun daown, passez it around..." SHOWBEERZ DIFF OF BEERZVAR AN 1 IM OUTTA YR LOOP VISIBLE "Jus wun botle uv beer on teh wahl!" VISIBLE "Takez it daown, passez it around..." VISIBLE "No moar botlez of beer on teh wahl!" VISIBLE "Goez to stoar, getz sum moar..." VISIBLE "99 botlez of beer is on teh wahl again, jus liek b4!" VISIBLE "KTHXBYE" KTHXBYE
4:
_0::=_ 1_::=1++ 0_::=0++ 0++::=1 01++::=10 11++::=1++0 _1++::=10 __::=_//_ //::=::: ::= __
5:
HQ9+
6:
(aBA@?>=<;:9876543210/.-,JH)('&%$#"!~}|{zy\J6utsrq ponmlkjihgJ%dcba`_^]\[ZYXWVUTSRQPONMLKJIHGF('C%$$^ K~<;4987654321a/.-,\*) j !~%|{zya}|{zyxwvutsrqSonmlO jLhg`edcba`_^]\[ZYXWV8TSRQ4 ONM/KJIBGFE>CBA@?>=<;{9876w 43210/.-m+*)('&%$#"!~}|{zy\ wvunslqponmlkjihgfedcEa`_^A \>ZYXWPUTSRQPONMLKJIH*FEDC& A@?>=<;:9876543210/.-m+*)(i &%$#"!~}|{zyxwvutsrqpRnmlkN ihgfedcba`_^]\[ZYXWVU7SRQP3 NMLKJIHGFEDCBA@?>=<;:z8765v 3210/.-,+*)('&%$#"!~}_{zyx[ vutsrqjonmlejihgfedcba`_^]@ [ZYXWVUTSRo
7:
DO (5) NEXT (5) DO FORGET #1 PLEASE WRITE IN :1 DO .1 <- '?":1~'#32768$#0'"$#1'~#3 DO (1) NEXT DO :1 <- "'?":1~'#65535$#0'"$#65535' ~'#0$#65535'"$"'?":1~'#0$#65535'" $#65535'~'#0$#65535'" DO :2 <- #1 PLEASE DO (4) NEXT (4) DO FORGET #1 DO .1 <- "?':1~:2'$#1"~#3 DO :1 <- "'?":1~'#65535$#0'"$":2~'#65535 $#0'"'~'#0$#65535'"$"'?":1~'#0 $#65535'"$":2~'#0$#65535'"'~'#0$#65535'" DO (1) NEXT DO :2 <- ":2~'#0$#65535'" $"'":2~'#65535$#0'"$#0'~'#32767$#1'" DO (4) NEXT (2) DO RESUME .1 (1) PLEASE DO (2) NEXT PLEASE FORGET #1 DO READ OUT :1 PLEASE DO .1 <- '?"':1~:1'~#1"$#1'~#3 DO (3) NEXT PLEASE DO (5) NEXT (3) DO (2) NEXT PLEASE GIVE UP
Ah... I can't find the one that's Piet but using steganography so you can turn any image into a program.
-
3 and 5 ought to be slam-dunks. :)
Is 6 something like Malbolge? I've never actually read any of that one, so I really don't know.
And I suspect 7 is INTERCAL…
-
Why did they write their own y combinator for the Haskell one?
-
@dkf said in Guess the programming language:
If I'd been running the questionnaire, I would've been tempted to stick to just the languages that actually have a functioning job market
My job involves TTCN-3 language.
-
@Gąska said in Guess the programming language:
@dkf said in Guess the programming language:
If I'd been running the questionnaire, I would've been tempted to stick to just the languages that actually have a functioning job market
My job involves TTCN-3 language.
Wow that language is as bad as it sounds.
-
@pydsigner no. It's worse.
-
The language we deal with at work is insane and has multiple versions of its own syntax depending on the sort of code you're writing, and has text macros. Sound like lisp? I wish it was that good or mainstream...
-
@anonymous234 I liked #3. It sounded cute.
-
@Magus said in Guess the programming language:
The language we deal with at work is insane and has multiple versions of its own syntax depending on the sort of code you're writing, and has text macros. Sound like lisp? I wish it was that good or mainstream...
REBOL?
-
@dkf said in Guess the programming language:
@Jaloopa said in Guess the programming language:
That one was a bit of an educated guess
Chicken chicken chicken
Chicken