What is a 'closure' in programming?
Anonymous Quiz
20%
A function that cannot be called outside its module
43%
A function bundled with references to its surrounding lexical scope
23%
A class with no public methods
13%
A pattern for closing database connections
❤1👍1
What is the primary trade-off of using an event-driven, single-threaded architecture (like Node.js) compared to multi-threaded servers?
Anonymous Quiz
47%
Handles I/O-bound concurrency efficiently but struggles with CPU-bound tasks
29%
Cannot handle multiple requests simultaneously
10%
Cannot use TLS/SSL
14%
Uses more memory per connection
❤2
In a confusion matrix, 'precision' is calculated as:
Anonymous Quiz
28%
TP / (TP + FN)
44%
TP / (TP + FP)
15%
TN / (TN + FP)
13%
TP / (TP + TN)
❤1
What is 'thrashing' in virtual memory systems?
Anonymous Quiz
21%
Excessive CPU context switching between processes
58%
A state where the OS spends more time paging than executing processes
13%
Memory fragmentation causing allocation failures
8%
Cache invalidation storms across cores
Which statistic is least affected by extreme outliers?
Anonymous Quiz
27%
Mean
15%
Sum
14%
Average
44%
Median
👍1
Which data structure would you choose to implement an autocomplete feature?
Anonymous Quiz
31%
Trie
22%
Stack
19%
Queue
28%
Heap
👏1
What is a context switch?
Anonymous Quiz
19%
Switching databases
56%
Switching CPU execution
22%
Switching programming languages
3%
Switching monitors
Which browser storage mechanism is automatically sent with HTTP requests?
Anonymous Quiz
25%
Local Storage
53%
Cookies
10%
IndexedDB
12%
Session Storage
❤2
Which metric is most appropriate for evaluating a regression model's performance?
Anonymous Quiz
14%
F1 score
19%
ROC-AUC score
56%
Mean squared error
11%
Confusion matrix
❤3
What does the 'I' in ACID database properties stand for?
Anonymous Quiz
18%
Immutability
41%
Isolation
13%
Idempotency
28%
Integrity
👍2
Which traversal of a Binary Search Tree produces sorted output?
Anonymous Quiz
36%
Preorder
21%
Level Order
17%
Postorder
26%
Inorder
👍2
A developer changes a single function and unexpectedly breaks five unrelated features. Which design issue is MOST likely present?
Anonymous Quiz
17%
High cohesion
54%
Tight coupling
17%
Low Cohesion
11%
Loose coupling
What is the primary purpose of a load balancer?
Anonymous Quiz
0%
Store data
10%
Compile code
17%
Encrypt traffic
72%
Distribute requests
A computer has multiple CPU cores, but a program only uses one core. Which change is MOST likely to improve performance?
Anonymous Quiz
16%
Increase RAM
58%
Parallel execution
19%
Add caching
6%
Reduce disk space
❤3
Why do databases use transactions?
Anonymous Quiz
11%
To make queries shorter
13%
To improve UI responsiveness
17%
To reduce storage requirements
60%
To keep data consistent
Why is a model evaluated on data it has never seen before?
Anonymous Quiz
18%
To reduce training time
50%
To measure generalization
11%
To test memory usage
21%
To improve feature engineering
A website loads slowly because it requests 500 small images. What is the main issue?
Anonymous Quiz
76%
Too many network requests
7%
Too much HTML
6%
Too many comments
11%
Too many CSS classes
👍1
What problem was DNS primarily created to solve?
Anonymous Quiz
15%
Packet loss problem
70%
Human-friendly addressing
15%
Bandwidth limitations
0%
Data encryption
👍1
What does high variance usually indicate?
Anonymous Quiz
7%
Normalization
26%
Underfitting
33%
Convergence
33%
Overfitting
👍3
What is the output of this code?
x = [1, 2, 3]
y = x y.append(4) print(len(x))
x = [1, 2, 3]
y = x y.append(4) print(len(x))
Anonymous Quiz
23%
3
41%
4
25%
Error
11%
Undefined
❤3
Two transactions modify the same record simultaneously and produce inconsistent results. What issue occurred?
Anonymous Quiz
23%
Deadlock
14%
Replication
50%
Race Condition
14%
Index Fragmentation
👍2