You are on page 1of 2

VB MCQ 1

Visual Basic will allow the user to develop applications in


Character user interface
Graphical user interface
Real time
Online platform
In Visual Basic, a variable name will not be more than
100 characters
128 characters
200 characters
255 characters
Which property is used to display the string on the command button?
Appearance
Caption
Default
Font
 
 
In Visual Basic, the extension of the project file is
.vbp
.frm
.cls
.vb
Which is not a property of the common control class?
Show
BackColor
Font
ForeColor
Which data type can be used to declare 10 million characters?
Ulong
Date
String
Numeric

What is meant by string? Discuss string handling inbuilt functions: insert, mid, left, right

with suitable example.

What are the various types of errors in VB? How errors can be handled using error

handlers. Give suitable example.

Why COM components are used? How object-oriented approaches are used in Visual

Basic?
Explain in detail data types used in Visual Basic.

a) Write down the difference between procedure and function with an example.

b) What do you mean by an array? Write a program to search an element in a given

array.

a) How do you change a For-next structure to Do-Loop structure? Explain with the help

of suitable code fragments.

b) Describe the various methods to assign property values to forms and controls.

You might also like