Programming Quiz Channel
792 subscribers
81 photos
4 videos
1 file
Programming quizzes and knowledge tests

Short quizzes on programming, logic and computer science.

Test and improve your coding knowledge.
Join 👉 https://rebrand.ly/bigdatachannels

DMCA: @disclosure_bds
Contact: @mldatascientist
Download Telegram
Topic: Debugging & Code Output

🔍 Quick look before the question:

def f(n):
if n == 0:
return 0
return n + f(n - 1)

import sys
sys.setrecursionlimit(3)
print(f(5))
Topic: Debugging & Code Output

🔍 Quick look before the question:

x = 5

def outer():
x = 10
def inner():
print(x)
x = 20
inner()

outer()
What happens when this code runs?
Anonymous Quiz
41%
Prints 10
29%
Prints 5
29%
Prints 20
0%
Raises an UnboundLocalError
Topic: Data Structures & Algorithms

🔍 Quick look before the question:

def mystery(n, memo={}):
if n in memo:
return memo[n]
if n <= 1:
return n
memo[n] = mystery(n-1, memo) + mystery(n-2, memo)
return memo[n]

print(mystery(30))
What is the result of typeof null in JavaScript?
Anonymous Quiz
30%
"null"
42%
"undefined"
24%
"object"
3%
"boolean"
❤1
Which protocol is primarily responsible for translating domain names such as example.com into IP addresses?
Anonymous Quiz
0%
FTP
92%
DNS
8%
SSH
0%
SMTP
❤1