IS 171
Visual Basic I
LATEST MIDTERMS REVIEW
Q&S
©2024/2025
,1. Multiple Choice: What is the purpose of the 'My' namespace in
Visual Basic?
a) To provide access to certain network functions
b) To provide a simple way to access project resources
c) To manage the application's database connections
d) To handle error logging mechanisms
Answer: b) To provide a simple way to access project
resources
Rationale: The 'My' namespace in Visual Basic simplifies the
process of accessing project resources, forms, settings, and more,
making it a crucial feature for efficient application development.
2. Fill-in-the-Blank: The _______ event is triggered in a form
when the form is loaded for the first time.
Answer: Load
Rationale: The Load event is essential in form initialization,
where developers can place code to set initial properties and
configurations.
3. True/False: The 'Sub Main' procedure can be used as the
starting point of a Visual Basic application.
Answer: True
©2024/2025
, Rationale: 'Sub Main' is often used as the entry point for a
Visual Basic application, especially when the application's startup
behavior needs to be controlled programmatically.
4. Multiple Response: Which of the following are components of
the Model-View-Controller (MVC) architecture that can be
implemented in Visual Basic desktop applications?
a) Model
b) View
c) Controller
d) DataSet
Answers: a) Model, b) View, c) Controller
Rationale: MVC is a design pattern that separates an application
into three interconnected components. The Model represents the
application's data, the View displays the data, and the Controller
handles the input. DataSet is a data structure but not a component
of MVC.
5. Multiple Choice: In Visual Basic, which control is typically
used for displaying and editing multiline text?
a) TextBox
b) Label
c) RichTextBox
d) ListBox
©2024/2025
Visual Basic I
LATEST MIDTERMS REVIEW
Q&S
©2024/2025
,1. Multiple Choice: What is the purpose of the 'My' namespace in
Visual Basic?
a) To provide access to certain network functions
b) To provide a simple way to access project resources
c) To manage the application's database connections
d) To handle error logging mechanisms
Answer: b) To provide a simple way to access project
resources
Rationale: The 'My' namespace in Visual Basic simplifies the
process of accessing project resources, forms, settings, and more,
making it a crucial feature for efficient application development.
2. Fill-in-the-Blank: The _______ event is triggered in a form
when the form is loaded for the first time.
Answer: Load
Rationale: The Load event is essential in form initialization,
where developers can place code to set initial properties and
configurations.
3. True/False: The 'Sub Main' procedure can be used as the
starting point of a Visual Basic application.
Answer: True
©2024/2025
, Rationale: 'Sub Main' is often used as the entry point for a
Visual Basic application, especially when the application's startup
behavior needs to be controlled programmatically.
4. Multiple Response: Which of the following are components of
the Model-View-Controller (MVC) architecture that can be
implemented in Visual Basic desktop applications?
a) Model
b) View
c) Controller
d) DataSet
Answers: a) Model, b) View, c) Controller
Rationale: MVC is a design pattern that separates an application
into three interconnected components. The Model represents the
application's data, the View displays the data, and the Controller
handles the input. DataSet is a data structure but not a component
of MVC.
5. Multiple Choice: In Visual Basic, which control is typically
used for displaying and editing multiline text?
a) TextBox
b) Label
c) RichTextBox
d) ListBox
©2024/2025