Brisk
Quiz
Practice. Learn. Score.
Home
🔍
🌙
🏆
Leaderboard
Login
IT
›
.NET
⏱
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 difference between the 'is' and 'as' operators in C#?
'as' works only with value types
They are functionally identical
'is' checks type compatibility and returns bool, while 'as' attempts a cast and returns null on failure
'is' throws on failure while 'as' never throws
Question 2
What is the 'N+1 query problem' in the context of an ORM like EF Core?
An error thrown when N exceeds int.MaxValue
A problem with more than one primary key
A limit on the number of migrations allowed
Making 1 query to fetch a list, then N additional queries to fetch related data, instead of a single joined query
Question 3
What distinguishes an integration test from a unit test in a typical .NET test suite?
Integration tests always run faster than unit tests
Unit tests require a running web server
An integration test exercises multiple real components together, while a unit test isolates a single class with dependencies mocked
They are the same thing with different names
Question 4
Which C# keyword creates a variable whose type is inferred by the compiler?
var
int
object
dynamic
Question 5
What is an event in C#, and how does it relate to a delegate?
A logging mechanism unrelated to delegates
A publish-subscribe wrapper around a delegate, restricting external code to only subscribe or unsubscribe
A background thread scheduler
A type of exception
Question 6
Why does ASP.NET Core Identity store passwords using one-way hashing rather than reversible encryption or plain text?
Base64 encoding is sufficient protection on its own
Plain text is fine as long as the database is private
It stores passwords in an environment variable instead
One-way hashing with a per-user salt means even a database breach does not directly expose usable passwords
Question 7
What is a 'record struct' in C#, introduced as a variant of the 'record' feature?
A value type combining struct's stack-allocated semantics with record's concise syntax and value-based equality
A type exclusive to Blazor components
A reference type with reference equality
A deprecated feature removed in .NET 8
🔀 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