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 1: Creating a WinForms Project Quiz
Answer all questions to test your understanding
1
What is the entry point of a Windows Forms application?
Form1.cs
Program.cs
App.config
Main.cs
2
Which file is auto-generated by the Windows Forms designer?
Form1.cs
Form1.Designer.cs
Program.cs
App.config
3
What method in Program.cs starts the Windows Forms application?
Application.Run(new Form1())
Application.Start(new Form1())
Application.Execute(new Form1())
Application.Launch(new Form1())
4
What is the purpose of the [STAThread] attribute in Program.cs?
To make the application run faster
To enable single-threaded apartment mode for COM components
To disable threading
To enable multi-threading
5
What happens when you press F5 in Visual Studio with a WinForms project?
The application builds and runs
The application is published
The application is deployed
The application is closed
Submit Quiz