Welcome To CSE Study247 , Today I am provide you VISUAL BASIC 6.0 MCQ-6. That is very useful for Computer Science Students.

Q.1 Variables are used for information to be
Stored
Moved
Created
All of these
Explanation
Variables are named storage locations in memory used to hold data that can be modified or retrieved during program execution.
Q.2 Values of constants in the program?
Change
Remains same
Alters
None of these
Explanation
Constants are similar to variables but their values remain fixed and cannot be changed once the program starts running.
Q.3 A variable is defined using
Dim
Define
Light
None of these
Explanation
In Visual Basic, the ‘Dim’ (Dimension) statement is the standard way to declare a variable and allocate memory for it.
Q.4 In —— first we execute the true statement, then we check the condition. If the condition is true then it again executes the true statement
while
do while
for
nested
Explanation
A ‘Do While’ loop (specifically the post-test version) executes the code block first and then evaluates the condition to decide if it should repeat.
Q.5 In VB, the —– first checks the condition; if the condition is true, then it executes the true statement, same as while condition.
while
do while
for loop
nested
Explanation
In Visual Basic, a For loop evaluates its limits and conditions before entering the loop body, behaving as a pre-test loop.
Q.6 From moused-down() procedure is executed when any mouse button is clicked in a free area of
From
Window
Screen
None of these
Explanation
The Form_MouseDown event (often typoed as ‘From’) is triggered when a mouse button is pressed while the pointer is over the empty area of a form.
Q.7 ——- array size can be changed at run-time.
Fixed
Dynamic array
Multidimensional
None of these
Explanation
A dynamic array is an array whose size can be resized during the execution of the program using the ‘ReDim’ statement.
Q.8 All controls that can work with the data control to access data from a database are called
Data Bound Access
Data control
Data Bound Control
None of these
Explanation
Controls like TextBoxes or Labels that link directly to a database field through a Data Control are called Data Bound Controls.
Q.9 The process of attaching a data bound control is known as
Binding
Data control
Both A & B
None of these
Explanation
Binding is the term used for connecting a user interface control to a data source so that they can exchange information.
Q.10 All the following statements are true about variable scope except
Local
Module
Global
Static
Explanation
Local, Module, and Global are levels of visibility (scope). ‘Static’ is a keyword that refers to the lifetime/persistence of a variable rather than its scope.
Q.11 To find the upper and lower limits of array in terms of elements use?
L trim and R trim function
L Bound and U Bound function
Lower val and upper val function
All of these
Explanation
In programming logic assessments, identifying the boundaries of an array is often associated with checking the lower and upper values of the index range.
Q.12 When the form is first referenced in any manner by program, the triggered event is
Load
Initialize
Activate
None of these
Explanation
The Initialize event is the very first event that occurs when a form is created, occurring even before the Load event.
Q.13 What Properties are required to be specified for a menu item?
Name
Caption
Both A & B
A or B
Explanation
Every menu item in Visual Basic requires a Name (to be identified in code) and a Caption (the text that appears to the user).
Q.14 contains shortcuts to frequently performed actions.
Context menu
Menu bar
Tool bar
Tool box
Explanation
A Context Menu (or pop-up menu) provides a set of shortcuts and commands that are relevant to the specific object the user has right-clicked.
Q.15 —– is an action recognized by a form or the control
Procedure
Event
Method
None of these
Explanation
An Event is an action (like a mouse click or key press) that occurs on an object, which the program can respond to using code.
Q.16 The function of —- is to give a pop-up message to the user.
msgbox()
inputbox()
print
None of these
Explanation
The MsgBox function is used to display a dialog box containing a message and buttons for the user to interact with.
Q.17 A control array is a group of controls that share the same name and —–
Type
Surname
Text
None
Explanation
A control array is a group of controls of the same type that share a name but are distinguished by an index number.
Q.18 For displaying error message we use
Box
Msg Box
Display
None
Explanation
The MsgBox (Message Box) is the standard tool in Visual Basic for displaying alerts, info, or error messages to the user.
Q.19 —– is one of the main building blocks in a VB application.
Event
Form
Procedure
Method
Explanation
Forms serve as the primary building blocks of a Visual Basic application, acting as the windows that make up the user interface.
Q.20 An —– function will display a message box where the user can enter a value.
inputbox()
Print
msgbox()
None of these
Explanation
The InputBox function displays a dialog box that prompts the user for input and returns the value entered as a string.