Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

VB.Net - OOP

Total questions: 50

Worksheet time: 32mins

Name
Class
Date
1.

Press __ to start debugging.

a)

F5

b)

F4

c)

F12

d)

F1

2.

ComboBox allows the user to make a (a)   of items in the drop-down list.

3.

CheckBox is used when the user has got the choice to select (a)   options.

4.

.................... such as click on a command button.

a)

Procedures

b)

Events

c)

Properties

5.

It contains tools of controls which can be put on the Form and can be shown in categories

a)

Toolbox Window

b)

Form Window

c)

3-  Properties Window

6.

is the interface which the user deals with through different controls such as Button, Textbox, label……etc

a)

Form

b)

Solution Explorer

c)

Properties Window

7.

Each tool of the above Common Controls has a group of properties which can be adjusted through "Properties Window"

a)

Properties Window

b)

Form

c)

Toolbox

8.

Click is an example of:

a)

an event

b)

a variable

c)

a component

d)

a property

9.

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

a)

FALSE

b)

TRUE

10.

Comments affect the way an application runs.

a)

FALSE

b)

TRUE

11.

The correct code to declare an integer variable is:

a)

dim myvariable as Integer

b)

dim integer

c)

myvariable Integer

d)

dim myvariable

12.

The visual basic control that allows users to enter a value is a:

a)

Textbox

b)

Label

c)

Button

d)

GroupBox

13.

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

a)

TRUE

b)

FALSE

14.

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

a)

TRUE

b)

FALSE

15.

This is where all the controls in visual basic are show and inserted into the forms.

a)

Menu Bar

b)

Toolbar

c)

Toolbox

d)

Form Windows

16.

It allows you to position the forms in your application using a small graphical representation of the screen.

a)

Form Window

b)

Code Window

c)

Form Layout Window

d)

Properties Window

17.

A control that is used to accept an input value to end-user.

a)

Frame

b)

TextBox

c)

Label

d)

CommandButton

18.

It contains controls that can be placed on the form.

a)

ToolBox

b)

Form1

c)

Project Explorer

d)

Properties Window

19.

What toolbox button or control provides user with more than one choice?

a)

OptionButton

b)

ComboBox

c)

CheckBox

d)

CommandButton

20.

Displays icons/bitmaps and metafiles. It displays text or acts as a visual container for other controls.

a)

PictureBox

b)

ComboBox

c)

DriveListBox

d)

Frame

21.

Rules for variable name

a)

Must begin with letter

b)

Contain spaces,period(:),hyphen(-)

c)

Maximum size 255 characters

d)

Must be unique within the same scope

22.

A control that lets you place descriptive text , where the text does not need to be changed by the user.

a)

Textbox

b)

Date Time Picker

c)

List Box

d)

Label

23.

It is the standard control for accepting input from the user as well as to display the output.

a)

Label

b)

Button

c)

Textbox

d)

Picture Box

24.

What does "GUI" mean?

a)

Graphical User Interface

b)

Gradient Uninterrupted Interface

c)

Gradual Unified Interface

d)

Graphical Unified Interface

25.

It is one of the controls that is used to handle graphics.

a)

Image Source

b)

Link Label

c)

Picture Box

d)

GUI

26.

It is used to display a drop-down list of various items.

a)

ListBox

b)

CheckBox

c)

TextBox

d)

ComboBox

27.

Lets the user selects or unselects an option.

a)

CheckBox

b)

RadioButton

c)

ListBox

d)

ComboBox

28.

When an option box is selected, its value is set to “______” and when it is unselected; its value is set to “_______”.

a)

True and False

b)

Yes and No

c)

I / O

d)

Check and X

29.

It is a type of graphical user interface element that allows the user to choose only one of a predefined set of options.

a)

Command Button

b)

Radio Button

c)

CheckBox

d)

ComboBox

30.

It refers to an extensive system used for declaring variables or functions of different types.

a)

Controls

b)

Object

c)

Data Types

d)

Variables

31.

It is useful to declare and allocate the storage space for one or more variables.

a)

Dim

b)

Var

c)

Int

d)

String

32.

A binary variable, having two possible values called “true” and “false.”.

a)

String

b)

Integer

c)

Float

d)

Boolean

33.

It is a primitive data type with the size of exactly one byte.

a)

String

b)

Char

c)

Double

d)

Short

34.

It is a datum of integral data type, a data type that represents some range of mathematical integers.

a)

Double

b)

Float

c)

Short

d)

Integer

35.

It is traditionally a sequence of characters, either as a literal constant or as some kind of variable.

a)

Integer

b)

Float

c)

Dim

d)

String

36.

What is the proper syntax used in VB?

a)

Dim Integer x = 5

b)

Dim String as Name

c)

Dim age as Integer

d)

Dim String = name

37.

Check which syntax is correct in declaring a variable.

a)

Dim age = 5 as Integer

b)

Dim fname as String

c)

Dim platenum as Integer

d)

Dim lastname as Reyes

38.

Check which syntax is correct in declaring a variable.

a)

Dim grade as Integer = 85

b)

Dim math = 76

c)

Dim String = MiddleInitial

d)

Dim lastname as String = "REYES"

39.

It allows you to define the data type in the declaration statement.

a)

While

b)

Else

c)

As

d)

If

40.

These are the self-explanatory notes to provide detailed information about the code which we wrote in our applications.

a)

Comment

b)

Dictation

c)

Input

d)

Output

41.
What data type would this information be? 
a)
Decimal
b)
Currency
c)
Integer
d)
Number
42.
What is a variable? 
a)
A value that can change depending on the conditions or information passed through the program
b)
The label of a control
c)
An IF statement
d)
None of these answers
43.
What would be the best name for this control? 
a)
Textbox1.text
b)
Textbox
c)
Name
d)
NameTxtbox
44.
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
45.
What data type would this information be? 
a)
Boolean
b)
String
c)
Integer
d)
Decimal
46.
What data type would this information be? 
a)
Boolean
b)
String
c)
Integer
d)
Decimal
47.
How would you declare a variable for the age of someone? 
a)
DECLARE Age as decimal
b)
DIM Age as integer
c)
DIM Age as decimal
d)
DECLARE Age as integer
48.
How would you make the variable "Surname" equal to the information that they have put in the SurnameTxtbox?
a)
Dim Surname as string = SurnameTextbox
b)
Declare "Surname" as string = SurnameTextbox
c)
Dim SurnameTxtbox as string = Surname
d)
Dim Surname as string = SurnameTextbox.text
49.

____________ is used to appear message dialog box.

a)

MsgBox

b)

Label Box

c)

Text Box

d)

Command Box

50.

What is the code to clear the screen in a VB program?

a)

Text1.text = "

b)

Text1.text = ""

c)

Text1.Text = Clear

d)

Text1.Text = "Clear"