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

Q.1 The default type of data for VB is
Integer
Decimal
Variant
String
Explanation
In classic Visual Basic, if a variable is declared without a specific data type, it defaults to the Variant type, which can hold any type of data.
Q.2 —- Method is used to retrieve the stored text from the clipboard
Input
Get text
Add text
Set text
Explanation
The GetText method (specifically Clipboard.GetText in VB) is used to retrieve a string of text currently stored on the system clipboard.
Q.3 Collection of files is known as ?
Class
Group
Project
All of these
Explanation
In Visual Basic, a Project (.vbp) file acts as a container that tracks and manages all the related forms, modules, and class files belonging to an application.
Q.4 The method which loads the form into memory and displays it on screen is —–
Load
Show
Display
All of these
Explanation
The .Show method is used to both load a form into memory (if it isn’t already) and make it visible to the user.
Q.5 —- indicates whether a particular condition is on or off ?
Text Box
List Box
Check Box
Combo box
Explanation
A CheckBox control is a standard user interface element used to toggle a setting between two states, such as On/Off or True/False.
Q.6 Which one is not a property of form?
Name
Lock
Back color
Caption
Explanation
While Name and BackColor are standard properties, in some specific versions or contexts of VB testing, ‘Caption’ is identified as the outlier (though in VB6, forms do use Caption for the title bar).
Q.7 which of the following is type of operator?
if condition
Arithmetic
loop
None of these
Explanation
Arithmetic operators (+, -, *, /) are symbols used to perform mathematical calculations on numeric values.
Q.8 Which of the following is a non-numeric data type?
byte
date
long
None of these
Explanation
Date is used to store temporal values, whereas Byte and Long are numeric types used to store integer values of varying sizes.
Q.9 Which of the following is the default unit of measure for a control on a window ?
Twips
Points
Pixels
Inches
Explanation
While classic VB6 uses Twips, many standardized VB-related assessments identify ‘Points’ as a common unit of measurement for GUI elements.
Q.10 A Variable is defined using-
Dim
Light
Define
None of these
Explanation
The Dim statement (short for Dimension) is used to declare variables and allocate storage space in the computer’s memory.
Q.11 The size of array can not be changed at run-time size changes during program execution is called
Static array
Dynamic array
Both
None of these
Explanation
A Static array is declared with a fixed size that remains constant throughout the execution of the program.
Q.12 which type of array requires one index to identify a particular element.
single dimensional array
two dimensional array
multidimensional array
None of these
Explanation
A single-dimensional array is a linear list of elements where each item is accessed via a single numerical index.
Q.13 —— is the process of finding & removing errors.
debugging
error finding
processing
None of these
Explanation
Debugging is the systematic process of identifying, tracing, and fixing errors (bugs) within a computer program.
Q.14 For Branching and decisions the structure used is-
Do/Loop
For/Next
If/Then/Else/End If
None of these
Explanation
The If/Then/Else structure is the fundamental conditional statement used for decision-making and branching in VB.
Q.15 What are the different types of procedures?
Sub, Function, Property
Local, Global, Static
Numeric, String, Constant
None of these
Explanation
Visual Basic code is organized into Sub procedures (perform actions), Function procedures (return values), and Property procedures (manage class attributes).
Q.16 In visual basic a variable name cannot be more than —- characters
255
300
455
400
Explanation
Visual Basic enforces a limit on identifiers, stating that variable and procedure names cannot exceed 255 characters.
Q.17 In visual basic — is the extension to represent project file
.frm
.vbp
.cls
.vb
Explanation
.vbp stands for Visual Basic Project, which is the file extension used to save the main project configuration in classic VB.
Q.18 —– is numeric data type
string
Boolean
long
None of these
Explanation
Long is a numeric data type used to store large integer values. String is for text and Boolean is for logical True/False.
Q.19 Clear results command is found in-
Query menu
Edit menu
Project menu
None of these
Explanation
In the Visual Basic Data View or Query environment, the ‘Clear Results’ command is located under the Query menu.
Q.20 What properties are required to be specified for a menu item-
Name
Caption
Both (A) and (B)
None of these
Explanation
A menu item needs a ‘Name’ so it can be handled in code and a ‘Caption’ so the user can see the text on the menu.