Trivia

236 readers
2 users here now

A place to quiz others with trivia questions related to the instance!

Please keep questions on the topic of trivia. If you have a question for how to do something please post it in a community relevant to what youre doing or !no_stupid_questions@programming.dev

Guidelines

Credits

Logo base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
1
 
 
IO.puts "Hello, world!"

Options: Erlang, Elixir, Julia, Kotlin

Use the following link to guess an answer, answer + results posted in 12 hours. (If you say the answer in the replies please put it in spoiler tags)

https://strawpoll.com/e2narP0olgB

2
 
 

Options: TRS-80, Altair 8800, Commodore 64, Apple II

Use the following link to guess an answer: https://strawpoll.com/e2narPLNzgB

If you say the answer in the replies please put it a spoiler tag

3
1
Guess the Language: #9 (programming.dev)
submitted 1 year ago* (last edited 1 year ago) by Ategon@programming.dev to c/trivia@programming.dev
 
 
import std.stdio;

void main()
{
    writeln("Enter a number:");
    int input;
    readf("%d", &input);
    writeln("Factorial:", factorial(input));
}

int factorial(int n)
{
    if (n <= 1)
        return 1;
    return n * factorial(n - 1);
}

Options: Vala, Crystal, D, Nim

Use the following link to guess an answer, answer + results posted in 12 hours. (If you say the answer in the replies please put it in spoiler tags)

https://strawpoll.com/Qrgebk7PKZp

4
 
 

Use the following link to guess an answer: https://strawpoll.com/w4nWrMRBdyA

You can discuss it below but if you say the answer put it in spoiler tags

5
1
Guess the Language: #8 (programming.dev)
submitted 1 year ago* (last edited 1 year ago) by Ategon@programming.dev to c/trivia@programming.dev
 
 
function isPalindrome(str)
    str = str:gsub('%s', ''):lower()
    return str == str:reverse()
end

local input = "A man a plan a canal Panama"
if isPalindrome(input) then
    print("It's a palindrome!")
else
    print("It's not a palindrome.")
end

Testing out a new voting system of using strawpoll so that vote totals can be hidden. A thing I noticed in some of the previous rounds was that people would pile on to the same option. Loses a bit of the ease of vote but shouldnt be too bad since you can just instantly vote after you go to the site

You can vote for what you think it is here: https://strawpoll.com/xVg7j6Q5Rnr

Voting ends in 12 hours and then ill post here with the results. You can talk about it below but if you want to talk about the correct answer put it in spoiler tags

6
1
Guess the Language: #7 (programming.dev)
submitted 1 year ago* (last edited 1 year ago) by Ategon@programming.dev to c/trivia@programming.dev
 
 

Upvote a comment to vote. Answer revealed in ~ 12 hours

7
 
 

Answer revealed in ~ 12 hours, Upvote a comment below to vote

8
 
 

Answer revealed in ~12 hours. Upvote a comment below to vote

9
 
 

Answer revealed in ~12 hours. Upvote a comment below to vote

10
 
 

And the third trivia question of the day. Will be doing 3 questions every day, 1 about guessing the language, 1 about concepts, and 1 about history

The 4 options will be given in the comments and answer + results will be posted in ~ 12 hours

Feel free to also do your own trivia questions in the community if youve got any

11
 
 

The 4 options will be given in the comments. Upvote the one you think is correct

Answer + how many people got it right will be posted in ~ 12 hours

12
 
 

Back from a small break and doing some more programming trivia! Doing a bit of a different format this time as it was a bit hard to guess if you didnt know the names of a bunch of different programming languages by memory

There will be 4 options in the comments you can vote for. Just upvote the one that you think is the answer and ill post the answer + results ~ 12 hours after it started

For this question its just a simple hello world statement

13
 
 

Answer will be revealed in a day, put guesses below

14
 
 

Bonus points if you also know:

  • How the language (allegedly) got it's name?
  • Which operating system still leverages the language today?
15
 
 

And were up to the third language to guess! This one might be a bit harder for most people compared to the last two. Throw your guesses down below and ill reveal the answer in a day

16
 
 

Answer will be revealed in a day. Comment your guesses below

17
 
 

Give your guesses below, answer will get posted in a day

18
1
Guess the language: #1 (programming.dev)
submitted 1 year ago* (last edited 1 year ago) by Ategon@programming.dev to c/trivia@programming.dev
 
 

Throw your guesses down below. Answer will be given in a day

19
 
 

Welcome to the programming trivia community! This will be a spot where you can post questions related to the instance and others will have a chance to guess answers

Answers should be given in the comments around a day after the question was posted and do not look up answers on search engines if you are answering it. Just post a guess for what you think the answer is in the comments

Ill be doing daily questions (and will do some more today + tomorrow to start the community off) but feel free to post your own as well

To start off heres a history-related question, enjoy!