Skip to content

Commit c8d5fad

Browse files
authored
Merge pull request #1743 from asterized/main
Added additional trivia questions
2 parents 7b11ffd + d7589d9 commit c8d5fad

1 file changed

Lines changed: 83 additions & 0 deletions

File tree

bot/resources/fun/trivia_quiz.json

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,73 @@
830830
"id": 444,
831831
"question": "On Linux systems, the `fork` system call returns what value in the parent process?",
832832
"answer": ["PID", "child PID"]
833+
},
834+
{
835+
"id": 445,
836+
"question": "What lemma is commonly used to prove non-regularity of languages?",
837+
"answer": ["pumping lemma", "pumping"]
838+
},
839+
{
840+
"id": 446,
841+
"question": "TCP congestion and flow control throttle the sender by adjusting the _________",
842+
"answer": "window size"
843+
},
844+
{
845+
"id": 447,
846+
"question": "What algorithm was famously created at a cafe in 20 minutes?",
847+
"answer": ["Dijkstra's", "Dijkstra", "Dijkstra's algorithm"],
848+
"info": "Dijkstra's algorithm is an algorithm to find the shortest path between two nodes in a weighted graph."
849+
},
850+
{
851+
"id": 448,
852+
"question": "What is the minimal time complexity for a comparison-based sorting algorithm?",
853+
"answer": ["O(n log n)", "O(nlogn)", "nlogn", "n log n"]
854+
},
855+
{
856+
"id": 450,
857+
"question": "The family of algorithms for choosing a simple random sample without replacement from a stream of unknown size in a single pass is called?",
858+
"answer": "reservoir sample"
859+
},
860+
{
861+
"id": 451,
862+
"question": "A hash function with no hash collisions is known as?",
863+
"answer": ["perfect", "perfect hash function"]
864+
},
865+
{
866+
"id": 452,
867+
"question": "What is it called when an attacker gains unauthorized privilages on a machine?",
868+
"answer": "privilege escalation"
869+
},
870+
{
871+
"id": 453,
872+
"question": "An attacker using an SQL query to access private or confidential information within a web form which passes unsanitized input is known as a(n):",
873+
"answer": ["SQL injection", "sql injection"]
874+
},
875+
{
876+
"id": 454,
877+
"question": "A _____ is the term used to describe the part of a virus that actually delivers or executes malicious code",
878+
"answer": "payload"
879+
},
880+
{
881+
"id": 455,
882+
"question": "_______ movement is when an attacker moves within a network after compromising a single machine.",
883+
"answer": "lateral"
884+
},
885+
{
886+
"id": 456,
887+
"question": "Which protocol does HTTPS use to secure traffic?",
888+
"answer": "TLS",
889+
"info": "SSL used to be used for HTTPS, but was deprecated in favor for TLS. Libraries such as OpenSSL, despite having SSL in the name, are primarily used as an implementation of TLS."
890+
},
891+
{
892+
"id": 457,
893+
"question": "In contrast to block ciphers, ______ ciphers are symmetric-key algorithms where plaintext is combined with a keystream",
894+
"answer": "stream"
895+
},
896+
{
897+
"id": 458,
898+
"question": "The block cipher used within the AES standard was originally known as:",
899+
"answer": "Rijndael"
833900
}
834901
],
835902
"python": [
@@ -1077,6 +1144,22 @@
10771144
"id": 549,
10781145
"question": "What cache replacement policy is used by the `re` module for up to 256 compiled patterns?",
10791146
"answer": "FIFO"
1147+
},
1148+
{
1149+
"id": 550,
1150+
"question": "What builtin function does this function implement?\n```py\nmystery = lambda *args: map(lambda *x: x, *args)\n```",
1151+
"answer": "zip"
1152+
},
1153+
{
1154+
"id": 551,
1155+
"question": "What algorithm does this function implement?\n```py\nmystery = lambda xs: xs and [*mystery([x for x in xs[1:] if x <= xs[0]]), xs[0], *mystery([x for x in xs[1:] if x > xs[0]])]\n```",
1156+
"answer": "quicksort",
1157+
"info": "Quicksort is a divide-and-conquer algorithm used to sort collections of data."
1158+
},
1159+
{
1160+
"id": 552,
1161+
"question": "In what year did Python 2 reach EOL (End of Life)?",
1162+
"answer": "2020"
10801163
}
10811164
]
10821165
}

0 commit comments

Comments
 (0)