C# Mastery Hub
Home
Challenges
Discussion
Lessons
Core Topics
C# Fundamentals
Console Applications
Classes & OOP
Windows Forms
ASP.NET Core
SQL Server
VS & SQL Connection
RDLC Reports
.NET MAUI
Getting Started
Getting Started
Website Development
SEO Guide
Security
Project Workflow
Extra Topics
Cloud & Deployment
AWS Cloud
Deployment
About
Contact
Test Your Knowledge
ClassesAndOOP_Lesson10 Quiz
Answer all questions to test your understanding
1
What are generics in C#?
A way to define classes and methods with type parameters
A way to create objects without types
A type of collection
A way to avoid type safety
2
What is the purpose of generic constraints in C#?
To restrict the types that can be used as type arguments
To make generics faster
To allow any type to be used
To create multiple instances
Submit Quiz