All C# quizzes
Advanced30 questions75 minutes

C# Advanced Quiz

Master reflection, memory management, performance optimization, and advanced patterns

Start the quiz

Sample questions from this quiz

A preview of the style and depth. Try each one, then reveal the answer — or skip straight to the timed quiz.

1. What is reflection?

  • Metadata reading
  • Examines and manipulates types at runtime
  • Type inspection
  • Runtime analysis
Show answer

Answer: Examines and manipulates types at runtime. Reflection examines and manipulates types, methods, properties at runtime. Use System.Reflection namespace. Enables dynamic invocation, attribute reading. Performance cost.

2. What is the Garbage Collector?

  • Memory cleaner
  • Automatic memory management system
  • Heap cleaner
  • Memory manager
Show answer

Answer: Automatic memory management system. Garbage Collector (GC) automatically manages memory. Reclaims unused objects. Runs in generations (0, 1, 2). Can be tuned but generally leave to runtime.

3. What are GC generations?

  • Age groups
  • Gen 0 (young), Gen 1 (medium), Gen 2 (old)
  • Memory levels
  • Collection stages
Show answer

Answer: Gen 0 (young), Gen 1 (medium), Gen 2 (old). GC uses three generations: Gen 0 (newly allocated, collected frequently), Gen 1 (survived one collection), Gen 2 (long-lived objects). Optimizes collection.

Frequently asked questions

How many questions are in this C# quiz?+

30 questions, with a 75-minute time limit. Every question includes a written explanation of the correct answer.

Is this C# quiz free?+

Yes. Every quiz on CodexQuizz is free and needs no account. You only enter a name if you choose to post your score to the leaderboard.

What level is the advanced quiz aimed at?+

Master reflection, memory management, performance optimization, and advanced patterns

Can I use this to prepare for a C# interview?+

Yes. The questions cover the topics that come up in C# technical screens, and the explanations are written so that a wrong answer still teaches you the underlying concept.

Ready to test your C#?

30 questions, 75 minutes. Free, no sign-up.

Start now