Advanced Programming Concepts MCQs

Topic-wise practice questions for Programming (C++ / Java / Python). Test your knowledge, check solutions on demand, and pace your preparation.

Zero-leak answer engine • Rate-limited explanations
Practice in Timed Mode
Q11easy
Why might a Closure cause a memory leak in a language with Garbage Collection?
Q12medium
Trace the value of result:

def multiplier(factor):
    return lambda x : x * factor
triple = multiplier(3)
result = triple(10)
Q13easy
In functional programming, what does the Reduce (or Fold) operation do?
Q14easy
What is the difference between C++ Templates and Java Generics?
Q15medium
Why is Reflection often discouraged in performance-critical sections of an application (like the inner loop of a game engine)?