wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Visual Basic

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

1. Who developed Visual Basic?

a)

a) Symantec

b)

b) Ashton-Tate

c)

c) Microsoft

d)

d) Sybase

2.

Which of the following statement is used to define a class in visual basic?

a)

a) Event class statement

b)

b) Class statement

c)

c) Form class statement

d)

d) Event statement

3.

Which of the following extension is used to represent the project file in Visual Basic?

a)

a) .vbp

b)

b) .vb

c)

c) .cls

d)

d) .vvb

4.

If you keep a variable undeclared, it is automatically taken as to which of the following data type in Visual Basic?

a)

a) Char

b)

b) Int

c)

c) Object

d)

d) String

5.

Which of the following applications can be developed using Visual Basic tool?

a)

a) Graphical User Interface

b)

b) Real-time

c)

c) Character User Interface

d)

d) All of the mentioned

6.

In Visual Basic, which of the following is used for coding single-alternative and dual-alternative selection structures?

a)

a) Switch-Case block

b)

b) If…Then…Else statement

c)

c) function overloading

d)

d) Recursion

7.

In the Visual Basic application, which of the following are listed in a properties window?

a)

a) Items

b)

b) Values

c)

c) Attributes

d)

d) Objects

8.

Which of the following is commonly used to perform an immediate action when clicked in Visual Studio?

a)

a) Button control

b)

b) Close

c)

c) End

d)

d) Exit

9.

Which of the following displays the list of projects contained in the Visual Basic current solution?

a)

a) List Window

b)

b) Project Window

c)

c) Catalogue Window

d)

d) Solution Explorer Window

10.

Object respond to an event by writing __________

a)

a) Defining events

b)

b) Operations

c)

c) Defining actions

d)

d) Event procedures