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 key difference between C#'s "List" and "T[]" (array) types?
An array can grow or shrink dynamically; List has a fixed size once created
An array cannot ever be iterated over using a standard foreach loop statement
List can only ever store elements of exactly one single specific primitive type
List can grow or shrink dynamically; an array has a fixed size once created
Question 2
What is the difference between "Transient", "Scoped", and "Singleton" service lifetimes in ASP.NET Core's built-in dependency injection container?
They control whether a given registered service is allowed to be static or not
They control which specific access modifier a given registered service must use
They control how often a new instance of a registered service is actually created
They control the exact physical order services are registered in the DI container
Question 3
What is the purpose of the C# "using" directive placed at the top of a source file, such as "using System.Collections.Generic;"?
Permanently imports and copies the entire specified namespace's source code into that file
Automatically installs a specified external NuGet package for use within the project
Lets types from the specified namespace be referenced without their full, qualified name
Declares which specific namespace the current source file's own types belong to
Question 4
What is a C# "event", built on top of delegates?
A specialized attribute used exclusively for marking a method as deprecated
A dedicated data structure used specifically for storing key-value pairs
A mechanism used only for defining a class's explicit access modifiers
A mechanism letting a class notify subscribers when something notable happens
Question 5
What is the purpose of the C# "override" keyword?
Permanently prevents a derived class from ever inheriting from that base class
Automatically generates a matching unit test for the overridden member
Marks a member so that it can never be called from outside its own declaring class
Provides a new implementation for a virtual or abstract member inherited from a base class
Question 6
What is the purpose of C# "boxing", when a value type is converted to a reference type?
Encrypts a given value type's data before it is stored somewhere in memory
Compresses a given value type's underlying data to reduce its overall memory usage
Wraps a value type instance inside an object allocated on the managed heap
Permanently converts a reference type instance directly into a value type
Question 7
What is the purpose of the C# "as" clause used together with "is" pattern matching, such as "if (obj is Customer c)"?
Checks whether two given objects are considered equal to one another
Removes the need for any variable to ever be explicitly declared with a type
Casts and binds the matched value to a new variable in a single step
Permanently converts every object into that exact specified target type
🔀 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