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
What gets printed?
Anonymous Quiz
13%
0 1 2 3 4
61%
0 1 2 4
13%
0 1 2
13%
3
Topic: SQL

🔍 Quick look before the question:

BEGIN TRANSACTION;
UPDATE accounts SET balance = balance - 200 WHERE id = 1;
UPDATE accounts SET balance = balance + 200 WHERE id = 2;
COMMIT;
Topic: Debugging & Code Output

🔍 Quick look before the question:

def outer():
result = []
for i in range(3):
def inner():
return i
result.append(inner)
return [f() for f in result]

print(outer())
Which isolation level allows a transaction to read data another concurrent transaction has written but not yet committed?
Anonymous Quiz
15%
Serializable
17%
Repeatable Read
18%
Read Committed
50%
Read Uncommitted
What is the practical difference between Object.is(NaN, NaN) and NaN === NaN?
Anonymous Quiz
5%
Both return false
0%
Both return true
89%
Object.is returns true, === returns false, because === treats NaN as never equal to itself
5%
Object.is throws an error for NaN
Which of these creates a shallow copy of a list in Python?
Anonymous Quiz
0%
list2 = list1
63%
list2 = list1.copy()
26%
list2 = list1[:]
11%
Both B and C
Topic: Python

🔍 Quick look before the question:

def outer():
x = 10
def inner():
nonlocal x
x += 5
return x
return inner

f = outer()
print(f())
print(f())
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