What exception does Python raise when you divide by zero?
Anonymous Quiz
14%
ValueError
74%
ZeroDivisionError
10%
ArithmeticError
1%
TypeError
What is the purpose of an API rate limiter?
Anonymous Quiz
0%
To speed up all requests equally
93%
To restrict how many requests a client can make in a given time window
4%
To translate API responses into JSON
4%
To cache database queries
Which statement best explains why binary numbers are used inside computers?
Anonymous Quiz
6%
Binary calculations are always shorter
63%
Electronic circuits can reliably represent 2 stable states
9%
Binary stores more information than decimal
22%
CPUs cannot process decimal numbers
What HTTP status code indicates a resource was not found?
Anonymous Quiz
8%
200
6%
301
81%
404
5%
500
Topic: Debugging & Code Output
🔍 Quick look before the question:
🔍 Quick look before the question:
def greet(name):
print("Hello " + name)
greet()
What happens when this code runs?
Anonymous Quiz
22%
It prints "Hello"
22%
It prints "Hello None"
50%
It raises a TypeError for a missing argument
6%
It runs but prints nothing
Which JOIN returns only rows with matches in both tables?
Anonymous Quiz
16%
LEFT JOIN
13%
RIGHT JOIN
56%
INNER JOIN
16%
FULL OUTER JOIN
What are the units of transmitted network data called?
Anonymous Quiz
81%
Packets
13%
Blocks
3%
Folders
3%
Files
What does refactoring mean in software development?
Anonymous Quiz
3%
Adding new features
93%
Restructuring existing code without changing its external behavior
3%
Deleting unused files
0%
Rewriting documentation
What is the space complexity of a typical recursive Fibonacci implementation without memoization?
Anonymous Quiz
3%
O(1)
57%
O(n)
30%
O(log n)
10%
O(n^2)
❤2
Which CSS property controls the space between an element's border and its content?
Anonymous Quiz
28%
margin
52%
padding
16%
spacing
4%
border-gap
What advantage does a doubly linked list have over a singly linked list?
Anonymous Quiz
4%
Faster random access
83%
It can be traversed backward as well as forward
13%
It uses less memory
0%
It supports binary search
What does the Python slice list[::-1] do?
Anonymous Quiz
24%
Removes the last element
56%
Reverses the list
14%
Sorts the list descending
6%
Returns an empty list
👍2
What is the default value of a boolean instance variable in Java?
Anonymous Quiz
19%
true
38%
false
38%
null
4%
0
Which concept allows one algorithm to solve many different problems by changing only the input?
Anonymous Quiz
7%
Hardcoding
60%
Abstraction
13%
Duplication
20%
Compilation
What is the core idea behind consistent hashing, and why is it useful for distributed caches?
Anonymous Quiz
18%
It hashes every request to the same single server for simplicity
55%
It maps servers and keys onto a hash ring, remapping only a few keys
14%
It guarantees perfectly even load regardless of key distribution
14%
It's a way to encrypt cache keys
What is the amortized time complexity of appending to a dynamic array (like Python's list or Java's ArrayList)?
Anonymous Quiz
17%
O(n) always, because it must resize every time
70%
O(1) amortized, even though occasional resizes cost O(n)
9%
O(log n) amortized
4%
O(1) worst case, every single append
What does the strict equality operator === check that == does not?
Anonymous Quiz
10%
Variable names
74%
Type in addition to value
8%
Memory address
8%
Nothing, they're identical
What problem does a message queue primarily solve?
Anonymous Quiz
9%
Sorting large datasets
77%
Decoupling producers and consumers so they can work asynchronously
9%
Encrypting messages between services
5%
Rendering web pages faster
In dynamic programming, what distinguishes memoization from tabulation?
Anonymous Quiz
0%
They are the same technique with different names
73%
Memoization is top-down recursion; tabulation is bottom-up
23%
Tabulation always uses more memory than memoization
5%
Memoization can't be used with recursion
Topic: JavaScript
🔍 Quick look before the question:
🔍 Quick look before the question:
function Counter() {
this.count = 0;
this.increment = function() {
this.count++;
};
}
const c = new Counter();
const inc = c.increment;
inc();
console.log(c.count);