Unlock hundreds more features
Save your Quiz to the Dashboard
View and Export Results
Use AI to Create Quizzes and Analyse Results

Sign inSign in with Facebook
Sign inSign in with Google

.NET quiz: VB.NET and C# keywords

Quick, free C# keywords quiz with VB.NET too. Instant results.

Editorial: Review CompletedCreated By: Ibrahim AshUpdated Aug 24, 2025
Difficulty: Moderate
2-5mins
Learning OutcomesCheat Sheet
Paper art illustration for DotNET quiz on teal background with layered paper code icons C sharp frameworks tools

Use this quiz to check your .NET keyword knowledge in C# and VB.NET, spot gaps, and learn the right usage fast. After you finish, try a programming quiz to broaden your skills, or sharpen scripting with a PowerShell quiz. If you want a wider review, take a computer science quiz next.

Which component executes Common Intermediate Language (CIL) code in the .NET ecosystem?
LLVM (Low Level Virtual Machine)
CLR (Common Language Runtime)
JDK (Java Development Kit)
GHC (Glasgow Haskell Compiler)
undefined
In C#, which keyword prevents a class from being inherited?
sealed
internal
readonly
static
undefined
Which .NET CLI command creates a new ASP.NET Core Web API project using the default template?
dotnet init webapi
dotnet new webapi
dotnet create webapi
dotnet new api
undefined
Which C# feature allows querying in-memory collections with a SQL-like syntax?
EF Core
TPL
LINQ
ADO.NET
undefined
Which type is a value type in C#?
struct
class
interface
delegate
undefined
What is the default dependency injection lifetime in ASP.NET Core when AddTransient is used?
Shared instance per thread
A new instance is provided each time it is requested
One instance for the application lifetime
One instance per request
undefined
In Entity Framework Core, which method is commonly used to add a migration?
dotnet ef add-migration
dotnet ef create migration
dotnet ef migrations add
dotnet ef migration new
undefined
In C#, which access modifier makes a member accessible only within its own assembly?
public
private
protected
internal
undefined
Which logging provider is built-in and commonly used for structured logging in ASP.NET Core?
Microsoft.Extensions.Logging
Serilog
NLog
log4net
undefined
Which C# feature provides non-destructive mutation for data-centric types via value-based equality by default?
sealed class
abstract class
record
module
undefined
Which C# feature provides a memory-safe view over contiguous memory without allocations when used correctly?
Span
ArrayList
dynamic
Tuple
undefined
In C#, which keyword prevents a method in a base class from being overridden in derived classes?
virtual
abstract
sealed (on the override)
new
undefined
Which feature allows streaming asynchronous data sequences in C#?
IAsyncEnumerable with await foreach
Task with yield return
IObservable with foreach
IEnumerable with await
undefined
Which .NET publish mode reduces app size by removing unused code when properly annotated?
Hot reload
Trimming
ReadyToRun
Debug symbols
undefined
Which authentication standard is commonly implemented in ASP.NET Core using OpenIdConnect middleware?
POP3
OIDC (OpenID Connect)
SAML 1.0
Kerberos only
undefined
Which .NET feature enables ahead-of-time native compilation for certain app types?
CodeDOM
ILMerge
NativeAOT
JIT only
undefined
Which library provides high-performance primitives like Pipelines for socket and stream processing?
System.Data
System.Drawing
System.Xml
System.IO.Pipelines
undefined
Which API provides non-allocating parsing and writing of UTF-8 JSON in .NET?
Utf8JsonReader and Utf8JsonWriter
XmlReader and XmlWriter
JsonTextReader and JsonTextWriter
BinaryFormatter
undefined
Which statement best describes ReadyToRun images in .NET?
Precompiles parts of IL to native code to reduce startup time
Bundles the runtime for self-contained apps
Disables JIT entirely
Removes unused IL to shrink size only
undefined
Which .NET feature enables source-time code generation to avoid reflection at runtime?
Expression Trees
Reflection.Emit
T4 Templates
Source Generators
undefined
0

Study Outcomes

  1. Understand .NET Framework Core Concepts -

    Grasp the fundamental architecture and components of the .NET platform, including CLR, CTS, and BCL, to build a solid foundation for development.

  2. Analyze C# Language Features -

    Identify key C# syntax and advanced language constructs, such as LINQ and async/await, to write more efficient and readable code.

  3. Apply Best Practices in .NET Development -

    Implement coding guidelines and patterns that improve performance, maintainability, and scalability in real-world .NET applications.

  4. Identify Key .NET Libraries and Tools -

    Recognize popular .NET libraries, frameworks, and IDE tools to streamline your workflow and leverage community-supported resources.

  5. Evaluate .NET Runtime and Version Differences -

    Compare .NET Core, .NET Framework, and .NET 5/6+ to choose the optimal runtime for your project requirements.

  6. Troubleshoot Common .NET Issues -

    Apply debugging and diagnostic techniques to quickly resolve errors and performance bottlenecks in your .NET applications.

Cheat Sheet

  1. Understanding the Common Language Runtime (CLR) -

    The CLR is the execution engine for .NET applications, providing services like JIT compilation, type safety, and garbage collection. Remember the mnemonic "JIGS" for Just-In-Time, Integrity, Garbage collection, Security to ace runtime questions in your dotnet quiz. Dive into Microsoft's official docs or academic courses to see how CLR transforms MSIL into native code at runtime.

  2. .NET Framework, .NET Core, and .NET 5+ Versions -

    Recognize the evolution: .NET Framework for Windows, .NET Core for cross-platform, and unified .NET 5+ as "one .NET." Use the timeline formula .NET Framework → .NET Core → .NET 5+ to recall platform shifts when you test dotnet version knowledge in a quiz. Official Microsoft blogs and university modules explain compatibility and why .NET 5 and later drop "Core" from the name.

  3. C# Language Essentials and LINQ -

    C# underpins most dotnet quiz online questions; key features include LINQ (Language INtegrated Query), async/await, and pattern matching. Recall LINQ queries with the phrase "from - where - select" like sentence structure in English. Academic papers and docs from msdn.microsoft.com offer sample code to practice filtering collections in-memory.

  4. Garbage Collection and Memory Management -

    .NET's generational GC (0, 1, 2) automatically reclaims unused objects; short-lived objects stay in Gen 0 while long-lived move up generations. Use the "Baby→Teen→Adult" metaphor to remember Gen 0,1,2 promotions when you test dotnet memory management concepts. Check official CLR Profiler guides or research articles for metrics on GC pauses and memory optimization tips.

  5. Common Language Specification (CLS) and Interoperability -

    CLS defines a set of language features that all .NET languages must support, ensuring smooth interoperability between C#, F#, VB.NET, and more. Think "CLS equals the lowest common denominator" to remember it's like language home base for any dotnet quiz online. Oxford academic repositories and msdn.com show examples of exposing libraries across different .NET languages.

Powered by: Quiz Maker