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
Website Dev - Lesson 2: Project Structure Best Practices Quiz
Answer all questions to test your understanding
1
What is Separation of Concerns in project structure?
Each component has a single, well-defined responsibility
All code goes in one file
Using only one programming language
Having no comments in code
2
Which naming convention is used for classes in C#?
camelCase
PascalCase
snake_case
UPPER_CASE
3
Which naming convention is used for private fields in C#?
_camelCase
PascalCase
camelCase
UPPER_CASE
4
What is the Repository pattern used for?
To store user interface code
To separate data access logic from business logic
To store configuration files
To manage frontend code
5
What is a God Object in programming?
A class with too many responsibilities
An empty class
A class that is perfectly designed
A class that only contains constants
6
What is Dependency Injection used for?
To inject CSS styles
To provide loose coupling between components
To inject JavaScript code
To inject database connections
Submit Quiz