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
Windows Forms - Lesson 2: Controls Basics Quiz
Answer all questions to test your understanding
1
Which control is used for single-line text input?
Label
TextBox
Button
ComboBox
2
What naming prefix is recommended for a TextBox control?
lbl
txt
btn
cmb
3
What does the Anchor property do in Windows Forms?
Keeps the control centered
Keeps the control's distance fixed from an edge as the form resizes
Makes the control fill the form
Makes the control invisible
4
Which property makes a control fill an entire form or panel?
Anchor
Dock
Margin
Padding
5
How do you read the text from a TextBox in code?
txtName.Value
txtName.Text
txtName.Content
txtName.String
Submit Quiz