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
78%
Decoupling producers and consumers so they can work asynchronously
9%
Encrypting messages between services
4%
Rendering web pages faster
In dynamic programming, what distinguishes memoization from tabulation?
Anonymous Quiz
0%
They are the same technique with different names
74%
Memoization is top-down recursion; tabulation is bottom-up
22%
Tabulation always uses more memory than memoization
4%
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);
When an interviewer asks "Tell me about yourself," what should your answer focus on?
Anonymous Quiz
0%
Your entire life story in detail
95%
A brief, relevant summary connecting your background to the role
5%
Your salary expectations
0%
Why you left your last job
What is the time complexity of searching in a balanced binary search tree?
Anonymous Quiz
8%
O(1)
42%
O(log n)
46%
O(n)
4%
O(n log n)
Topic: SQL
🔍 Quick look before the question:
🔍 Quick look before the question:
SELECT e.name, e.salary
FROM employees e
WHERE e.salary > (
SELECT AVG(salary)
FROM employees
WHERE department = e.department
);
What does this query return?
Anonymous Quiz
15%
All employees earning more than the overall company average
77%
Employees earning more than the average salary within their own department
7%
A syntax error, since subqueries can't reference the outer query
1%
The single highest paid employee company-wide
What is the key memory difference between a generator and a list comprehension?
Anonymous Quiz
22%
Generators store all values in memory immediately, lists don't
78%
Generators produce values lazily one at a time, lists build the entire sequence in memory upfront
0%
There is no difference, both are lazy
0%
Lists are always faster regardless of size
❤2
What problem does dependency injection primarily address?
Anonymous Quiz
0%
It makes code run faster at the CPU level
90%
Reduces hardcoded dependencies, making code easier to test
10%
It automatically writes unit tests
0%
It eliminates the need for interfaces