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 7: Full CRUD Project Walkthrough Quiz
Answer all questions to test your understanding
1
Which method is used to execute INSERT, UPDATE, or DELETE commands?
ExecuteReader()
ExecuteNonQuery()
ExecuteScalar()
ExecuteTable()
2
What event is used to refresh the DataGridView after saving?
Click
Load
Custom refresh method
FormClosing
3
How do you check if a user confirmed a delete operation?
MessageBox.Show with Yes/No buttons
MessageBox.Show with OK/Cancel buttons
MessageBox.Show with Yes/No/Cancel buttons
MessageBox.Show with OK only
4
What property tracks the currently selected row in a DataGridView?
CurrentRow
SelectedRow
ActiveRow
FocusedRow
5
How do you clear a TextBox in Windows Forms?
txtBox.Text = ''
txtBox.Clear()
txtBox.Empty()
txtBox.Reset()
Submit Quiz