Gui Suggestions
Gui Suggestions
2 mark:
4 mark:
1. Explain how CheckBox and RadioButton controls work in a form. Provide an example of when
each would be appropriate to use.
2. Describe the process of creating and managing a form in a simple application. How do
TextBox, Label, and Button controls interact with user input?
3. Discuss the differences between ListBox and ComboBox. How can each control be used in a
form to enhance user interaction?
4. What is the role of a Button control in event-driven programming? Illustrate with an example
of event handling.
5. What are DateTimePicker and TreeView controls? Discuss their uses and provide examples of
common events associated with them.
6. What is the significance of the Timer control in application development? Provide an
example demonstrating its use.
6 mark:
1. What are methods and events in the context of GUI programming? Explain with examples
how event handling works for RadioButton and Timer controls in an application.
2. What are Dialog Boxes in Windows Forms? Explain the use and significance of
OpenFileDialog, SaveFileDialog, and FontDialog.
3. Explain the process of designing menus using MenuStrip and ContextMenuStrip in an
application. How are access keys and shortcut keys implemented?
25 MCQ
o A) TextBox o A) Label
o B) Label o B) TextBox
o C) Panel o C) PictureBox
o D)WebPage o D)Button
Answer: D) WebPage Answer: B) TextBox
3. What property of a TextBox control is 7. Which control allows the user to pick
used to make it read-only? a date and time?
o A) ReadWrite o A) DateTimePicker
o B) Enabled o B) TextBox
o C) Locked o C) Timer
o D)ReadOnly o D)LinkLabel
Answer: D) ReadOnly Answer: A) DateTimePicker
o A) CheckBox o A) ListView
o B) ListBox o B) TreeView
o C) RadioButton o C) ComboBox
o D)ComboBox o D)Panel
Answer: C) RadioButton Answer: B) TreeView
6. What is the primary difference 10. What is the main purpose of an event
between a ListBox and a ComboBox? handler in a form?
o C) Shift + Key
UNIT 3
2 marks:
4 marks:
1. Describe how arrays are declared and initialized in VB.NET. Provide an example.
2. Explain the concept of collections in VB.NET. What are the advantages of using a collection
over an array?
3. What are the major types of errors in VB.NET? Define syntax, execution, and logic errors.
4. How are strings manipulated in VB.NET? Give examples of common string functions.
5. Explain how exceptions are handled in VB.NET using Try, Catch, and Finally blocks.
6. How do you define a function in VB.NET? Give an example of a function returning a value.
7. What is a user-defined exception and how can it be created in VB.NET? Provide an example.
6 marks:
1. Discuss the different types of looping statements with example in VB.NET and explain how
they are used in decision-making processes.
2. What is the difference between passing a parameter by value and by reference? Give an
example.
25 MCQ