Skip to content

Csharp Programming Practice Exam

Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.

📝 50 questions · ⏱ 60 minutes · 🎯 Pass mark 70% · 🆓 Free, no signup

Exam details

  • 50 questions drawn from 170 cards
  • Countdown timer — auto-submits when time runs out
  • Pass mark 70% (real certification threshold)
  • Full review of wrong answers at the end
  • No signup required — save your score with a free account

Sample Questions

5 shown

What is LINQ in C#?

Show ▼

LINQ (Language Integrated Query) is a set of features that allows you to write query expressions directly in C# to filter, sort, and transform data from collections, databases, and XML.
var results = list.Where(x => x > 5).OrderBy(x => x);

What is the difference between LINQ query syntax and method syntax?

Show ▼

Query syntax resembles SQL:
var q = from x in list where x > 5 select x;
Method syntax uses extension methods:
var q = list.Where(x => x > 5);
Both compile to the same IL code.

What does the LINQ Select method do?

Show ▼

Select projects each element of a sequence into a new form (a transformation/map operation).
var names = people.Select(p => p.Name);
It returns an IEnumerable<T> of the projected type.

What is deferred execution in LINQ?

Show ▼

Deferred execution means a LINQ query is not executed when defined, but only when the results are enumerated (e.g., via foreach, ToList(), or Count()). This allows efficient chaining of operations.

How do you use GroupBy in LINQ?

Show ▼

GroupBy groups elements by a key:
var groups = students.GroupBy(s => s.Grade);
Each group implements IGrouping<TKey, TElement> with a Key property and a collection of elements.

🎯 Take the Csharp Programming Practice Exam