Skip to content

Quiz · C#

C# Code Output Quiz: Predict the Result

C# output questions: predict what code prints, from lists, dictionaries and structs versus classes to switch expressions, banker's rounding and overflow.

Questions
15
Difficulty
Medium
Time
~10min
Per question
20sec

What it covers

C#

A topic in Programming & Coding.

C# quizzes on value and reference types, predicting C# code output, and intermediate LINQ, object-oriented programming, records and async/await.

Before you start

How it works

  1. 1

    The clock

    You have 20 seconds for each question. When time runs out, the question counts as wrong.

  2. 2

    Your answer

    Your first choice is the one that counts. It is checked straight away, with an explanation where there is one.

  3. 3

    The score

    At the end you see your score and can go back through every question and its answer.

  4. 4

    The XP

    XP scales with your score. Replays earn XP only when you beat your previous best.

From players

Ratings

Play next

All of C#

Programming & Coding · C#

C# Basics Quiz: Variables, Types & Operators

A C# quiz for beginners: Console.WriteLine(), value and reference types, var, string interpolation, nullable types and ??, const and casting.

Easy difficulty15 questions~8 min
+75 XPPlay

Programming & Coding · C#

C# Intermediate Quiz: LINQ, OOP & Async Programming

A C# LINQ quiz with OOP and async: queries and deferred execution, properties and init, virtual and sealed, generics, Task, async/await and records.

Hard difficulty15 questions~12 min
+150 XPPlay