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_Lesson3 Quiz
Answer all questions to test your understanding
1
What is a method in C#?
A block of code that performs a specific task
A variable that stores data
A type of class
A property that validates data
2
What is method overloading in C#?
Having multiple methods with the same name but different parameters
Having methods with different names
Having methods in different classes
Having methods that return different types
3
What is the purpose of the 'params' keyword in C#?
To define a parameter as optional
To allow a method to accept a variable number of arguments
To make a parameter read-only
To pass parameters by reference
Submit Quiz