wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Visual basic

Total questions: 30

Worksheet time: 10mins

Name
Class
Date
1.
……………… window we can write code
a)
A.  Immediate window 
b)
B.     Locals window
c)
C.  Code editor window 
d)
D.     None of these 
2.
The variable that does not change the value during execution of program is…………..
a)
A.  Numeric 
b)
B. Constant
c)
C. String
d)
D. All of the above
3.
A………. displays a list of items from which user can select one or more items  
a)
A. Combo box
b)
B. List box
c)
C. Check box
d)
D.  Scroll bar
4.
 ………. is a collection of Objects  
a)
A. Class
b)
B. Group
c)
C. Project
d)
D. Form
5.
………… method is used to delete items from a list box.  
a)
A. Remove
b)
B. Clear
c)
C. Remove item
d)
D. Delete
6.
To repeat the statement again and again we use …….   
a)
A. for Loop
b)
B. if
c)
C. if else
d)
 D. else if
7.
……….. is an action recognized by a form or the control.  
a)
A. Property
b)
B. Method
c)
C. Event
d)
 D. Procedure
8.
A ………. is a tool you use to create objects on a Visual Basic form.    
a)
A. Control
b)
B. Object
c)
C. Event
d)
D. Property
9.
An ………..is a type of user interface element you create on a Visual Basic form by using a toolbox control.   
a)
A. Control
b)
B. Object
c)
C. Event
d)
D. Property
10.
……….. is a meaningful name that takes the place of a number or string.  
a)
A. Variable
b)
B. Event
c)
C. Constant 
d)
D. Datatype
11.
The body of a for…Next loop in Visual Basic will terminate once the condition is false. 
a)
TRUE
b)
FALSE
12.
When you press the button load event will trigger. 
a)
TRUE
b)
FALSE
13.
TextBox is used to take input and edit the text. 
a)
TRUE
b)
FALSE
14.
Using RadioButton you can select multiple options. 
a)
TRUE
b)
FALSE
15.
Timer will start only when its property enabled is false.
a)
TRUE
b)
FALSE
16.
THIS PROGRAM WILL GIVE OUTPUT AS
Dim i, n, m As Single
  i = Val(TextBox1.Text)
  n = Val(TextBox2.Text)
  For m = i To n
  Dim a As Integer
  a = i * m
  ListBox1.Items.Add(i & "*" & m & "=" & a)
  Next
  End Sub
End Class 
a)
multiplication table
b)
prime or not
c)
factors of given number
d)
sum of n numbers
17.
Visual Basic is a tool that allows you to develop application in…………  
a)
A. Real time
b)
B. Graphical User Interface
c)
C. Menu Driven
d)
D. None Of These 
18.
. ………….. Combines the features of the text box and list box   
a)
A. Picture box 
b)
B. Check box
c)
C. Option button
d)
D. Combo box 
19.
1.  ………… is an example for control   
a)
A. Toolbox
b)
B. Event
c)
C. Method 
d)
D. Code editor
20.
1.   A Boolean datatype can store……….bytes.   
a)
A. 2 byte
b)
B. 4 byte
c)
C. 6 byte
d)
D. 8 byte
21.
1.  The ____ statement checks in the module for usage of any undeclared variables and reports an error to the user. 
a)
A. looping.
b)
B. iteration
c)
 C. dim
d)
D. external
22.
Which window displays a list of all forms and modules making up your application.  
a)
a. Project window
b)
b. Properties window
c)
 c. Form layout Window
d)
 d. All of the above.
23.
1.  The form module has file extension ______  
a)
a. .frm
b)
 b. .frb
c)
c. .fru
d)
d. .fra
24.
.__________ cannot be declared in a form or class module.    
a)
a. Public constants
b)
b. Private constants
c)
c. Static constants
d)
d. None of these.
25.
Statement A: Label is not used to edit the name
Statement B: TextBox is not used to take input; 
a)
a. Statement A is True and B is False 
b)
b. Statement B is True and A is False 
c)
c. Both the statements are True 
d)
d. Both the statements are False
26.
Statement A: Boolean means true or false Statement B: Actions triggered by the system are called object 
a)
a. Statement A is True and B is False 
b)
b. Statement  B is True and A is False 
c)
c. Both the statements are True
d)
d. Both the statements are False
27.
Statement A : Suffix for Long data type is & Statement A : Suffix for Currency data type is #  
a)
a. Statement A is True and B is False 
b)
b. Statement B is True and A is False
c)
c. Both the statements are True 
d)
d. Both the statements are False
28.
Statement A :TextBox property is maxLength Statement B: Label property is Caption  
a)
a. Statement A is True and B is False
b)
b. Statement B is True and A is False
c)
 c. Both the statements are True 
d)
d. Both the statements are False
29.
Statement A : Decimal is not a DataType Statement B:  Properties window is used to change program. 
a)
a. Statement A is True and B is False
b)
 b. Statement B is True and A is False
c)
c. Both the statements are True 
d)
 d. Both the statements are False
30.
Statement A : Objects are actions usually triggered by system; Statement B : Collection of data types and data members are called class.  
a)
a. Statement A is True and B is False 
b)
b. Statement B is True and A is False
c)
c. Both the statements are True 
d)
d. Both the statements are False