Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Activity 3 - CC103

Total questions: 50

Worksheet time: 29mins

Name
Class
Date
1.

Which of these names would be most appropriate for a button that allows the user to submit the answer?

a)

Answer

b)

Button1

c)

SubmitBttn

d)

Button1.text

2.
What would be the best name for this control? 
a)
Textbox1.text
b)
Textbox
c)
Name
d)
NameTxtbox
3.

The Function and procedure in Visual Basic are by default

a)

Private

b)

Public

c)

Protected

d)

None of the above

4.

Which symbol creates an access(hot) key in the text of a menu item?

a)

&

b)

@

c)

$

d)

#

5.
To start run the application press F5 on the key board
a)
True
b)
False
6.
The first line of the code declares a class with the name of the form window
a)
True
b)
False
7.
What is wrong with the following Do loop?   Dim index As Integer = 1
Do While index <> 9  
MsgBox("Hello")
index =index+1   
Loop
a)
(a)The test variable should not be changed inside a Do loop. 
b)
(b) The test condition will never be true. 
c)
(c) This is an infinite loop. 
d)
(d) Nothing 
8.
Private Sub disp ()
Dim num as Double = 10  
Do While num > 1
MsgBox(num)
 num = num - 3
Loop
End Sub. 
 What numbers will be displayed in the list box when the button is clicked? 
a)
(a) 10, 7, and 4 
b)
(b)  10, 7, 4, and 1 
c)
(c)10, 7, 4, 1, and -2 
d)
(d) no output
9.

Variable scope and lifetime in Visual Basic can be

a)

Module

b)

Public

c)

Static

d)

Private

e)

All of the above

10.

Which type of control is used to design a form like above

a)

Check Box

b)

Option Button

c)

Combo Box

d)

List Box

11.

Which property determines whether a control is displayed to the user?

a)

Show

b)

Visible

c)

Enabled

d)

Hide

12.
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
13.

It displays the properties that are associated with an object.

a)

Project Window

b)

Properties Window

c)

Form Window

d)

Explorer

14.

________________ is used to accept input from the user.

a)

Label Box

b)

Picture Box

c)

Command Box

d)

Text Box

15.

____________ is used to appear message dialog box.

a)

MsgBox

b)

Label Box

c)

Text Box

d)

Command Box

16.

Click is an example of:

a)

an event

b)

a variable

c)

a component

d)

a property

17.

More than one radio button in a set can be selected at a time.

a)

FALSE

b)

TRUE

18.

Comments affect the way an application runs.

a)

FALSE

b)

TRUE

19.

The Val( ) function converts a string value into an integer

a)

TRUE

b)

FALSE

20.

Message boxes can only be used in decision statements (if statements)

a)

TRUE

b)

FALSE

21.
The term IDE refers to Integrated Development Entertainment
a)
True
b)
False
22.

Variables are named storage locations in memory, the value of which does not change during program

a)

execution

b)

design

c)

debug

d)

none of the above

23.

Visual Basic belongs to this type of programming language.

a)

Assembly

b)

High Level

c)

Low Level

d)

None of the above

24.

What is the output of this flowchart if the time is 6:30 a.m?

a)

Take subway and reach school.

b)

Take bus and reach school.

c)

Take subway, get the bus and reach school.

25.
What data type would you use for a whole number? 
a)
String
b)
Integer
c)
Decimal
d)
Boolean
26.
What data type would you use to return a value of true or false?
a)
String
b)
Integer
c)
Real
d)
Boolean
27.
How would you declare a variable for someone's age?
a)
Dim age as string
b)
Dim Number as decimal
c)
Dim Number as integer
d)
Dim Age as integer
28.
A variable's value can change throughout the program:
a)
True
b)
False
29.
What is an IF statement also known as?
a)
Options
b)
Selection
c)
Declaring
d)
Choosing
30.

If Francis wants to edit the BackColor, foreColor and visibility of the label, he must proceed to the _______________.

a)

Toolbox

b)

Property

c)

Windows explorer

d)

Solution explorer

31.

Kuya Ruver is about to put all the objects on the form such as textbox and checkbox, what essential part of Visual Studio does he imply?

a)

Property

b)

Windows explorer

c)

Toolbox

d)

Solution explorer

32.

Which of the following is a relational operator that means “Less than or Equal to”?

a)

<=

b)

>=

c)

<>

d)

=<

33.
……………… window we can write code
a)
A.  Immediate window 
b)
B.     Locals window
c)
C.  Code editor window 
d)
D.     None of these 
34.
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
35.
 ………. is a collection of Objects  
a)
A. Class
b)
B. Group
c)
C. Project
d)
D. Form
36.
………… method is used to delete items from a list box.  
a)
A. Remove
b)
B. Clear
c)
C. Remove item
d)
D. Delete
37.
……….. is an action recognized by a form or the control.  
a)
A. Property
b)
B. Method
c)
C. Event
d)
 D. Procedure
38.
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
39.
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
40.
……….. 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
41.
TextBox is used to take input and edit the text. 
a)
TRUE
b)
FALSE
42.
. ………….. 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 
43.
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
44.
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.
45.
1.  The form module has file extension ______  
a)
a. .frm
b)
 b. .frb
c)
c. .fru
d)
d. .fra
46.
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
47.
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
48.
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
49.
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
50.
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