Which approach is most appropriate for preventing a single database from becoming a bottleneck when read traffic grows significantly?
Anonymous Quiz
0%
Add more app logging
55%
Use read replicas
23%
Increase HTTP timeout
23%
Replace TCP with UDP
What does a Python function return if it reaches the end without encountering a return statement?
Anonymous Quiz
28%
0
16%
False
20%
An empty string
36%
None
ā¤2
A device has an IPv4 address of 192.168.1.25/24. Which address is the network address?
Anonymous Quiz
6%
33%
42%
19%
ā¤2
In a distributed system, what is the main purpose of a message queue such as RabbitMQ or Kafka?
Anonymous Quiz
4%
Compile source code
11%
Store CSS files
11%
Replace all databases
74%
Decouple producers and consumers
Which device primarily connects different networks and forwards packets between them?
Anonymous Quiz
94%
Router
0%
Monitor
3%
Keyboard
3%
Printer
Binary search is appropriate when the data is:
Anonymous Quiz
13%
Unsorted and stored in a queue
79%
Sorted and supports efficient middle access
8%
Stored only in a stack
0%
Made entirely of duplicate values
ā¤1
Which data structure is most suitable for checking whether a value exists quickly on average, without caring about order?
Anonymous Quiz
0%
Stack
71%
Hash set
4%
Queue
25%
Linked list
A product catalog is read far more often than it changes. Which technique can reduce repeated database queries?
Anonymous Quiz
85%
Caching
10%
Frequent full database backups
5%
Disabling HTTP
0%
Increasing image resolution
Which statement best describes a Python dictionary?
Anonymous Quiz
23%
An ordered sequence accessed only by numeric index
77%
A collection of key-value pairs
0%
A collection that allows only duplicate keys
0%
A function that sorts lists
What is the time complexity of accessing an array element by its index?
Anonymous Quiz
27%
O(1)
8%
O(log n)
58%
O(n)
8%
O(n²)
Which layer of the TCP/IP model is responsible for routing packets between networks?
Anonymous Quiz
9%
Application
78%
Transport
9%
Internet
4%
Physical
What is the purpose of:
`if __name__ == '__main__':`
`if __name__ == '__main__':`
Anonymous Quiz
69%
To run a block only when the file is executed directly
0%
To rename the Python file
19%
To import every installed package
13%
To stop all functions from running