Pro Coder Quiz
CapDev Harbinger Group

ProCoder Quiz of the Month - March 2025

Top 3 Winners:

Vaibhav Meena, Deepa Menghani and  Manoj Jadhav

Congratulations!!

Quiz Questions and answers are as below:


1. Which metric indicates how long an application takes to respond to a user's request?

a) Throughput

b) Latency

c) Response Time

d) Scalability

Answer: c) Response Time


2. Indexing ________?

a) reduces database size

b) Hastens data retrieval

c) Increases redundancy

d) Slows down data deletion

Answer: b) Hastens data retrieval


3. API caching primarily improves?

a) Database indexing

b) Network performance and response time

c) CPU performance

d) Code readability

Answer: b) Network performance and response time


4. "lazy loading" primarily means?

a) Reducing memory leaks

b) Loading resources only when needed

c) Increasing database connections

d) Improving server CPU

Answer: b) Loading resources only when needed


5. Improper disposal of objects results in?

a) Improved performance

b) Increased scalability

c) Memory leaks

d) Faster garbage collection

Answer: c) Memory leaks


6. The N+1 query problem primarily affects?

a) CPU cycles

b) Database efficiency

c) Network speed

d) UI rendering time

Answer: b) Database efficiency


7. Which tool is best suited to profile memory leaks in .NET applications?

a) Postman

b) JMeter

c) Visual Studio Profiler

d) Docker Compose

Answer: c) Visual Studio Profiler


8. To reduce latency, which technique is most beneficial?

a) Increasing code complexity

b) Object pooling

c) Using a Content Delivery Network (CDN)

d) Adding redundant code

Answer: c) Using a Content Delivery Network (CDN)


9. Connection pooling in database applications helps to:

a) Increase network latency

b) Decrease throughput

c) Reduce connection overhead

d) Slow down the CPU

Answer: c) Reduce connection overhead


10. _______ encourages reusing existing code instead of duplicating logic.

a) SOLID

b) DRY (Don't Repeat Yourself)

c) MVC

d) KISS

Answer: b) DRY (Don't Repeat Yourself)


11. What would most likely cause premature optimization?

a) Optimizing the system after deployment

b) Writing clean code first

c) Spending excessive time on minor performance gains early

d) Regularly profiling and optimizing performance bottlenecks

Answer: c) Spending excessive time on minor performance gains early


12. Why is horizontal scaling often preferred over vertical scaling?

a) It always reduces memory leaks

b) It’s cheaper in all situations

c) Allows adding more servers/resources dynamically

d) Improves CPU utilization instantly

Answer: c) Allows adding more servers/resources dynamically


13. The primary advantage of object pooling is to:

a) Eliminate the need for garbage collection entirely

b) Improve memory utilization and reduce overhead

c) Permanently store data in memory

d) Avoid database queries completely

Answer: b) Improve memory utilization and reduce overhead


14. BenchmarkDotNet is primarily used for:

a) Profiling UI performance

b) Measuring precise code execution performance

c) Performing database optimization

d) Detecting security vulnerabilities

Answer: b) Measuring precise code execution performance


15. Which statement correctly describes scalability?

a) The time taken for a database query to execute

b) The system’s ability to handle increased load smoothly

c) The reduction of resource usage at runtime

d) Increasing application complexity for faster performance

Answer: b) The system’s ability to handle increased load smoothly

Last modified: Friday, 18 April 2025, 6:19 PM