wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

SELF-CHECK TEST 2.2

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

What is the primary purpose of a WinForms application?

a)

To create web-based applications that run in a browser

b)

To manage server-side logic and databases for enterprise systems

c)

To develop cross-platform mobile applications for iOS and Android

d)

To build desktop applications with a graphical user interface for the Windows operating system

2.

A ListBox control is primarily used to:

a)

Display a single line of text for user input

b)

Present a hierarchical view of files and folders.

c)

Show a list of selectable items to the user.

d)

Embed images and videos within an application

3.

What is the primary reason for using variables to store intermediate values in a multi-step

calculation?

a)

To make the code more aesthetically pleasing.

b)

To reduce the total number of lines in the program

c)

To ensure the values are accessible and can be used in subsequent steps of the calculation.

d)

To hide the values from the user for security purposes

4.

Which of the following best defines a ComboBox control in a user interface?

a)

A control used exclusively for displaying images.

b)

A space-saving control that combines a text box and a list box

c)

A control that allows users to input multiple lines of text

d)

A control designed to show the progress of a task

5.

A LinkLabel control is best described as a control that

a)

Stores and displays data from a connected database.

b)

Allows users to browse and open local files.

c)

Acts as a clickable hyperlink while displaying text.

d)

Is used to draw custom shapes and graphics.

6.

What is the primary function of a CheckBox control in a user interface?

a)

To allow the user to select one option from a group of mutually exclusive choices

b)

To provide a drop-down list of choices

c)

To enable the user to select one or more independent options

d)

To display a link that opens a new webpage.

7.

Which of the following best describes a CheckedListBox control?

a)

A control that displays a list of items where each item has a button next to it

b)

A list control where each item can be independently checked or unchecked with an associated check box

c)

A control that combines a drop-down list with a text box

d)

A control used for selecting a single file from a directory

8.

When updating an item in a ListBox control, what is the standard process?

a)

Using a built-in UpdateItem() method.

b)

Calling a Refresh() method on the ListBox control

c)

Modifying the item directly by accessing its properties

d)

 Removing the old item and inserting the new item at the same index.

9.

What is the main purpose of setting the PasswordChar property on a TextBox control?

a)

To change the color of the text entered by the user

b)

To limit the number of characters the user can type.

c)

To validate that the input is a valid password format

d)

To mask sensitive input, such as passwords, for security.

10.

The char.IsDigit() method is used to:

a)

Convert a string into a number

b)

Determine if a given character is a numeric digit

c)

Check if a character is an uppercase or lowercase letter

d)

Format a number with a specific number of decimal places

11.

What is the main purpose of a RadioButton control in a user interface?

a)

To allow the user to select multiple options from a list

b)

To provide a text input field for user data

c)

To enable the user to select one option from a group of mutually exclusive choices

d)

To display a list of items with checkboxes

12.

Which of the following best describes a ProgressBar control?

a)

A control used for displaying text in a formatted manner

b)

A control that allows users to input numeric values

c)

A visual indicator of the progress of a task

d)

A control that allows users to select files from their system

13.

What is the primary function of a ToolTip control in a user interface?

a)

To validate user input in real-time

b)

To display a list of available commands in the application

c)

To create a modal dialog for user confirmations

d)

To provide additional information about a control when the user hovers over it

14.

What is the primary function of a TextBox control in a user interface?

a)

To allow users to input text data

b)

To display images and videos within an application

c)

To create a modal dialog for user confirmations

d)

To provide a list of selectable items

15.

What is the main purpose of a MenuStrip control in a Windows Forms application?

a)

To display a list of items with checkboxes

b)

To provide a way to organize and display menus for user interaction

c)

To show progress of a long-running task

d)

To allow users to select files from their system

16.

Which of the following best describes a SplitContainer control?

a)

A container that divides its area into two resizable panels

b)

A control that combines a drop-down list with a text box

c)

A control that allows users to input multiple lines of text

d)

A control used for displaying a list of items with checkboxes

17.

What is the primary purpose of using a DataGridView control in a Windows Forms application?

a)

To display and edit tabular data in a grid format.

b)

To create a modal dialog for user confirmations.

c)

To provide a way to input single-line text data.

d)

To show images and videos within an application.

18.

Which of the following best describes the purpose of a Timer control in a Windows Forms application?

a)

To manage user input events.

b)

To perform actions at specified intervals.

c)

To display a list of selectable items.

d)

To create a visual representation of data.

19.

What is the main function of a MenuStrip control in a Windows Forms application?

a)

To allow users to select files from their system.

b)

To provide a way to organize and display menus for user interaction.

c)

To show progress of a long-running task.

d)

To display a list of items with checkboxes.

20.

What is the primary purpose of a Label control in a user interface?

a)

To create a clickable hyperlink

b)

To display static text to the user

c)

To show a list of selectable items

d)

To allow users to input text data

21.

Which of the following best describes the purpose of a ProgressBar control?

a)

To display the current status of a long-running operation

b)

To allow users to select multiple options from a list

c)

To provide a way to input numeric values

d)

To show images and videos within an application

22.

What is the main function of a ToolStrip control in a Windows Forms application?

a)

To provide a container for buttons and other controls for user interaction

b)

To display a list of items with checkboxes

c)

To allow users to input text data

d)

To show progress of a long-running task

23.

What is the primary function of a SplitContainer control in a Windows Forms application?

a)

To divide the user interface into two resizable sections

b)

To create a dropdown menu for user selections

c)

To display a list of items with images

d)

To allow users to input text data in multiple formats

24.

Which of the following best describes the purpose of a ToolStripDropDownButton control?

a)

To allow users to input numeric values

b)

To provide a button that displays a dropdown menu when clicked

c)

To display a list of selectable items

d)

To create a visual representation of data

25.

What is the main purpose of a NumericUpDown control in a user interface?

a)

To show progress of a long-running task

b)

To allow users to select a numeric value by clicking up or down buttons

c)

To provide a way to input text data

d)

To display a list of items with checkboxes

26.

What is the primary purpose of a Button control in a user interface?

a)

To show a list of selectable items

b)

To display static text to the user

c)

To allow users to input text data

d)

To trigger an action or event when clicked

27.

Which of the following best describes the purpose of a GroupBox control?

a)

To allow users to input numeric values

b)

To provide a container for images and videos

c)

To group related controls together visually

d)

To display a list of items with checkboxes

28.

What is the main function of a TabControl in a Windows Forms application?

a)

To allow users to input text data in multiple formats

b)

To show progress of a long-running task

c)

To organize content into separate tabs for better navigation

d)

To display multiple forms in a single window

29.

What is the primary function of a ComboBox control in a user interface?

a)

To allow users to select a single item from a dropdown list

b)

To display a list of items with checkboxes

c)

To provide a way to input multi-line text data

d)

To show images and videos within an application

30.

Which of the following best describes the purpose of a SplitContainer control?

a)

To allow users to input text data in multiple formats

b)

To divide the user interface into two resizable panels

c)

To display a list of selectable items

d)

To create a dropdown menu for user selections