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