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)
44%
O(log n)
44%
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
76%
Employees earning more than the average salary within their own department
7%
A syntax error, since subqueries can't reference the outer query
2%
The single highest paid employee company-wide
What is the key memory difference between a generator and a list comprehension?
Anonymous Quiz
15%
Generators store all values in memory immediately, lists don't
85%
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
81%
Reduces hardcoded dependencies, making code easier to test
10%
It automatically writes unit tests
10%
It eliminates the need for interfaces
Which keyword is used to inherit a class in Java?
Anonymous Quiz
22%
implements
50%
extends
22%
inherits
6%
super
What is the key difference between composition and inheritance for reusing code?
Anonymous Quiz
7%
They are functionally identical
93%
Inheritance is 'is-a' and couples tightly; composition is 'has-a' and flexible
0%
Composition can only be used in functional languages
0%
Inheritance is always the better choice
Topic: Debugging & Code Output
🔍 Quick look before the question:
🔍 Quick look before the question:
def modify(lst):
lst.append(100)
lst = [1, 2, 3]
lst.append(200)
original = [0]
modify(original)
print(original)