Brisk
Quiz
Practice. Learn. Score.
Home
🔍
🌙
🏆
Leaderboard
Login
IT
›
C#
⏱
00:00
0/7 answered
Score: 0
🔀 Click here to get new question set
Sign up
to save this score to the leaderboard.
Question 1
What is the purpose of the C#'s "?." combined with "??" in a single expression, such as "customer?.Name ?? "Unknown""?
Permanently converts the customer object into an entirely different, unrelated type
Safely accesses a potentially null member, substituting a default if the result is null
Compares the customer object against null and returns only a plain boolean result
Throws an exception immediately if the given customer object happens to be null
Question 2
What is the key difference between C#'s "List" and "T[]" (array) types?
List can only ever store elements of exactly one single specific primitive type
An array cannot ever be iterated over using a standard foreach loop statement
List can grow or shrink dynamically; an array has a fixed size once created
An array can grow or shrink dynamically; List has a fixed size once created
Question 3
What is the purpose of LINQ's "GroupBy()" extension method?
Filters a sequence, keeping only elements that satisfy a given specific condition
Sorts a sequence's elements according to a specified custom given key selector
Groups a sequence's elements together according to a specified shared key
Aggregates a sequence down into one single, combined summary value overall
Question 4
What is the purpose of C#'s "Span" type, introduced to help improve performance in certain scenarios?
Provides a type-safe, allocation-free view over a contiguous region of memory
Provides a fully managed, dynamically-resizable collection similar to a List
Provides a dedicated data structure used specifically for storing key-value pairs
Provides a mechanism used exclusively for handling and catching thrown exceptions
Question 5
What is the purpose of C# "string interpolation", such as $"Hello, {name}!"?
Compares two given strings for exact, case-sensitive character equality
Permanently converts a given string into an entirely different, unrelated data type
Removes any leading or trailing whitespace found on either end of a string
Embeds expressions directly inside a string literal for formatted output
Question 6
What is the purpose of C#'s "required" modifier on a property, introduced in C# 11?
Permanently prevents the property from ever being reassigned after construction
Forces the property to be explicitly set during object initialization
Restricts the property so it may only ever be read, never actually written to
Automatically converts the property into an equivalent init-only property instead
Question 7
What is the purpose of LINQ in C#?
A feature that lets you write query expressions directly against collections and data sources
A framework used solely for building unit tests for C# applications
A tool used exclusively for compiling C# source code into IL
A dedicated library used only for handling file input and output
🔀 Click here to get new question set
Sign up
to save this score to the leaderboard.
Share this quiz
𝕏
💬
f
in
🔗
📚 All Quizzes
Browse every category and see the full list of quizzes on BriskQuiz
→
🏠
Home
📚
Categories
🏆
Leaderboard
👤
Profile