Search Header Logo
ITD103_Windows Form

ITD103_Windows Form

Assessment

Presentation

Computers

University

Practice Problem

Medium

Created by

Wency Jorda

Used 5+ times

FREE Resource

2 Slides • 36 Questions

1

media

Object Oriented
Programming 2

ITD103L

Wency N. Jorda

Instructor

2

media

C# Windows Forms
Applications

3

Multiple Choice

What is the primary purpose of Windows Forms in the .NET Framework?

1

To create web applications

2

To simplify the development of desktop applications for Windows

3

To manage databases

4

To create console applications

4

Multiple Choice

What type of applications can be created using Windows Forms?

1

Web applications

2

Console applications

3

Windows desktop applications

4

Cloud Application

5

Multiple Choice

In Visual Studio, which namespace is commonly imported for Windows Forms applications?

1

System.Console

2

System.Drawing

6

Fill in the Blanks

media image

Type answer...

7

Multiple Choice

What is the purpose of the InitializeComponent() method in a Windows Forms application?

1

It starts the application’s process loop

2

It initializes and sets up the form and its controls

3

It handles user input validation

4

It defines the form’s layout and appearance

8

Multiple Select

How can you add a Button control to a form in Visual Studio?

(Select all the correct answers)

1

By typing the code manually in the Program.cs file

2

By dragging it from the Toolbox to the form

3

By selecting it from the Solution Explorer

4

By writing code in Form1.Designer.cs

9

Multiple Choice

What is the purpose of the ErrorProvider component in Windows Forms?

1

To log errors in the application

2

To provide tooltips for controls

3

To validate user input and show error messages

4

To display confirmation messages

10

Fill in the Blanks

Type answer...

11

Multiple Choice

Blank organizes related control within a labeled container

1

GroupBox

2

ComboBox

3

Panel

4

RadioButton

12

Multiple Choice

Which SQL command is used to retrieve data in a CRUD operation?

1

SELECT

2

RETRIEVE

3

READ

4

GET

13

Multiple Choice

Which C# class is commonly used to interact with a SQL database?

1

SqlManager

2

SqlDatabase

3

SqlConnection

4

SqlClient

14

Fill in the Blanks

Type answer...

15

Multiple Choice

This component allow the selection of one option from a group

1

ComboBox

2

Button

3

RadioButton

4

GroupBox

16

Fill in the Blanks

media image

Type answer...

17

Open Ended

What are the steps to create a new Windows Forms project in Visual Studio?

18

Open Ended

Explain the difference between TextBox and Label controls.

19

Open Ended

What is the purpose of NuGet Package Manager?

20

Fill in the Blanks

media image

Type answer...

21

Open Ended

What is the purpose of ErrorProvider?

22

Multiple Choice

What is the purpose of the Form1.Designer.cs file in a Windows Forms project?

1

It contains event-handling code for form events

2

It holds the auto-generated code for form layout and controls

3

It is the main code file where execution starts

4

It contains resource files for the project

23

Fill in the Blanks

media image

Type answer...

24

Multiple Choice

Which of the following is the Radio button?

1
2
3
4

25

Multiple Choice

Which of the following is the Check button?

1
2
3
4

26

Fill in the Blanks

media image

Type answer...

27

Multiple Choice

Which of these allows the user to modify the properties of components?

1
2
3
4

28

Multiple Choice

Which of these allows the user to check the files within the project?

1
2
3
4

29

Multiple Choice

Which of these allows the user to add gui components?

1
2
3
4

30

Multiple Choice

Which of these allows the user to add forms, class, and existing project?

1
2
3
4

31

Fill in the Blanks

media image

Type answer...

32

Multiple Choice

Which of these allows the user to add database connection?

1
2
3
4

33

Multiple Choice

Which of these allows the user to modify the events of the component?

1
2
3
4

34

Multiple Choice

To display a message box in Windows Forms, which class should be used?

1

Display

2

Show

3

Message

4

MessageBox

35

Fill in the Blanks

media image

Type answer...

36

Multiple Choice

What is the default file extension for a Windows Forms application in C#?

1

.csh

2

.cs

3

.form

4

.exe

37

Fill in the Blanks

media image

Type answer...

38

Multiple Choice

What namespace must be included to use Windows Forms in C#?

4

System.Drawing

media

Object Oriented
Programming 2

ITD103L

Wency N. Jorda

Instructor

Show answer

Auto Play

Slide 1 / 38

SLIDE