Programming Quiz Channel
795 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
Which of these is a self-balancing binary search tree?
Anonymous Quiz
11%
Binary heap
76%
AVL tree
0%
Trie
13%
Hash map
Topic: Web Development

🔍 Quick look before the question:

async function loadUser() {
const res = await fetch('/api/user');
const data = await res.json();
return data;
}

console.log(loadUser());
console.log('after call');
Which traversal visits a binary tree's root before its left and right subtrees?
Anonymous Quiz
21%
Inorder
29%
Postorder
43%
Preorder
7%
Level-order
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
47%
Prints 10
27%
Prints 5
27%
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))