Welcome To CSE Study247 , Today I am provide you VISUAL BASIC 6.0 MCQ-3. That is very useful for Computer Science Students.
Q.1 RDO Stands for
Remote data open
Remote data object
Remote direct object
None of these
Explanation
RDO stands for Remote Data Object, which is a legacy COM interface used to access data in remote databases, specifically designed for SQL Server and Oracle.
Q.2 An object data type can store
1 byte
2 byte
4 byte
8 byte
Explanation
In programming environments like Visual Basic 6.0, an object variable is stored as a 4-byte address that refers to the actual object.
Q.3 The —- is one of the most important controls as it is used to execute commands.
command button
radio
Label
None of these
Explanation
The Command Button is a fundamental UI control used to initiate an action or execute a block of code when clicked.
Q.4 The most common event associated with the command button is the —— event
Click
Double click
Change
None of these
Explanation
The Click event is the primary event for a command button, triggered when the user presses and releases the button.
Q.5 The is one of the controls that is used to handle graphics
Picture Box
Combo
Label
None of these
Explanation
A Picture Box control is specifically designed to display images and can also serve as a container for other controls.
Q.6 In Picture box You can also load the picture at runtime using the —- method.
Picture Box
Load Picture
Resize
None of these
Explanation
The LoadPicture function is used to load a graphic file (such as .bmp or .jpg) into a PictureBox control during the execution of the program.
Q.7 The variables that Does not change the value during execution of program is
Numeric
String
Constant
None of these
Explanation
A Constant is a meaningful name that takes the place of a number or string that does not change throughout the life of the program.
Q.8 The function procedure are _____ by default,
Public
Protected
Private
None of these
Explanation
In Visual Basic, procedures (Sub and Function) are Public by default, meaning they can be accessed from any other part of the project.
Q.9 ADO Stands for
Active data object
Active x data object
Active x data open
None of these
Explanation
ADO stands for ActiveX Data Objects, which is a Microsoft technology that allows developers to access data from various sources.
Q.10 By default the textbox control can hold text as
Multiple Lines
Password Character
Single Lines
None of these
Explanation
By default, a TextBox control is set to display a single line of text unless the MultiLine property is manually changed to True.
Q.11 The variable can be a declared by _ statement.
dim
var
$
None of these
Explanation
In Visual Basic and ASP, the ‘Dim’ (short for Dimension) statement is used to declare variables and allocate storage space.
Q.12 Following are the arithmetic operator.
mod
None of these
Explanation
The ‘Mod’ operator is an arithmetic operator that divides two numbers and returns only the remainder.
Q.13 Following are the condition operator.
OR
and
=
None of these
Explanation
In this context, OR is used as a logical/conditional operator to evaluate multiple expressions.
Q.14 Following are the logical operator
+
or
/
None of these
Explanation
The ‘or’ operator is a logical operator used to perform a logical disjunction between two boolean expressions.
Q.15 IIS is a _____
Markup Language
Web server
Operating system
Scripting Language
Explanation
IIS stands for Internet Information Services, which is a web server software created by Microsoft for use with the Windows NT family.
Q.16 We can preserve the value of a local variable by making the variable ____
Private
Public
Static
Implicit
Explanation
A ‘Static’ variable remains in memory and retains its value even after the procedure in which it was declared has finished.
Q.17 Object is a
Instances of object
Instances of class
Both A & B
None of these
Explanation
An object is a specific instance of a class, containing the properties and methods defined by that class.
Q.18 HTML Stands for
Hyper text markup language
High text markup language
Hyper text markdown language
None of these
Explanation
HTML stands for HyperText Markup Language, the standard language used to create and design documents on the World Wide Web.
Q.19 —— do not return a value.
Sub procedure
Function procedure
Property procedure
None of these
Explanation
A Sub procedure performs a task but does not return a value to the calling code, whereas a Function does return a value.
Q.20 —— is used to take decision.
While loop
if condition
for loop
None of these
Explanation
The ‘if…then’ statement is a decision-making structure that executes code only if a specific condition is met.