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
Project Workflow - Lesson 4: Coding Standards Quiz
Answer all questions to test your understanding
1
Why are coding standards important?
To make code less readable
To ensure readable, maintainable, and consistent code
To slow down development
To make code reviews harder
2
What naming convention is used for classes in C#?
camelCase
PascalCase
snake_case
UPPER_CASE
3
What naming convention is used for private fields in C#?
_camelCase
PascalCase
camelCase
UPPER_CASE
4
What does the Single Responsibility Principle state?
A class should have multiple responsibilities
A class should have only one reason to change
A class should not have any responsibilities
A class should be responsible for everything
5
What is a guard clause?
A clause that validates inputs at the start of a method
A clause that catches exceptions
A clause that returns early
A clause that logs errors
6
What should you review during a code review?
Only the code style
Functionality, standards, security, performance, test coverage, and documentation
Only the functionality
Only the performance
Submit Quiz