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