wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PF 101 - Activity 5 (OO Design and Principles

Total questions: 55

Worksheet time: 28mins

Name
Class
Date
1.

A ________ is blue print that defines certain characteristics and behavior. It is simply a representation of different types of objects.

a)

Class

b)

Object

c)

Attribute

d)

Characteristics

2.
What data type would you use for a whole number? 
a)
String
b)
Integer
c)
Decimal
d)
Boolean
3.
What data type would you use to return a value of true or false?
a)
String
b)
Integer
c)
Real
d)
Boolean
4.
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
5.
What is an IF statement also known as?
a)
Options
b)
Selection
c)
Declaring
d)
Choosing
6.
This symbol (<)  means more than?
a)
True
b)
False
7.
All tools on your form should be named appropriately?
a)
True
b)
False
8.

Visual Basic Studios is an example of _______________________ programming?

a)

Object-oriented

b)

Natural language

c)

Operands

d)

Procedural

9.

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

10.

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

11.

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

a)

<=

b)

>=

c)

<>

d)

=<

12.

This is a blank form that shows automatically when starting a Visual Basic program.

a)

Menu Bar

b)

Toolbox

c)

Properties window

d)

Windows form object

13.

Classify the data type that must be held in each variable.

INT - for integer

DOUBLE - for double

STRING - for string


Q: STUDENT NUMBER

a)

DOUBLE

b)

STRING

c)

INT

14.

Classify the data type that must be held in each variable.

INT - for integer

DOUBLE - for double

STRING - for string


Q: SCHOOL ADDRESS

a)

DOUBLE

b)

STRING

c)

INT

15.

Classify the data type that must be held in each variable.

INT - for integer

DOUBLE - for double

STRING - for string


Q: FLOOR NUMBER

a)

DOUBLE

b)

STRING

c)

INT

d)

CONST

16.
To start run the application press F5 on the key board
a)
True
b)
False
17.
Radio button are used when the user can choose more than one option
a)
True
b)
False
18.
Some properties are not effective unless other properties adjust first
a)
True
b)
False
19.
Text property of the button determines the name which is used when typing the code
a)
True
b)
False
20.
There are no common properties among the controls   
a)
True
b)
False
21.
In IDE screen, displayed properties differ upon the selected element
a)
True
b)
False
22.
The term IDE refers to Integrated Development Entertainment
a)
True
b)
False
23.
Event is an action performed on the object
a)
True
b)
False
24.
The value assigned to a property can be changed only from properties menu
a)
True
b)
False
25.

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

a)

&

b)

@

c)

$

d)

#

26.
To start run the application press F5 on the key board
a)
True
b)
False
27.

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

a)

Check Box

b)

Option Button

c)

Combo Box

d)

List Box

28.

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

a)

Show

b)

Visible

c)

Enabled

d)

Hide

29.
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
30.

It displays the properties that are associated with an object.

a)

Project Window

b)

Properties Window

c)

Form Window

d)

Explorer

31.

________________ is used to accept input from the user.

a)

Label Box

b)

Picture Box

c)

Command Box

d)

Text Box

32.

______________ is the code to change the background color of the form.

a)

me.backcolor = "vbred"

b)

me.backcolor : vbred

c)

me.backcolor 'vbred'

d)

me.backcolor = vbred

33.

____________ is used to appear message dialog box.

a)

MsgBox

b)

Label Box

c)

Text Box

d)

Command Box

34.

is a third-generation event-driven programming language from Microsoft known for its Component Object Model (COM) programming model first released in 1991 and declared legacy during 2008.

a)

Java Programming

b)

Visual Studio

c)

Visual Basic

d)

JavaScript

35.

What does "GUI" mean?

a)

Graphical User Interface

b)

Gradient Uninterrupted Interface

c)

Gradual Unified Interface

d)

Graphical Unified Interface

36.

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

37.

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

38.

is one of the most important controls as it is used to execute commands.

a)

Command Button

b)

CheckBox

c)

Label

d)

Textbox

39.

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

a)

Image Source

b)

Link Label

c)

Picture Box

d)

GUI

40.

Presents a list of items where the user can click and select the items from the list.

a)

CheckBox

b)

ListBox

c)

TextBox

d)

LinkBox

41.

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

a)

ListBox

b)

CheckBox

c)

TextBox

d)

ComboBox

42.

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

43.

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

44.

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

a)

Controls

b)

Object

c)

Data Types

d)

Variables

45.

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

a)

Dim

b)

Var

c)

Int

d)

String

46.

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

a)

String

b)

Integer

c)

Float

d)

Boolean

47.

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

a)

String

b)

Char

c)

Double

d)

Short

48.

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

49.

It is a data type in computer science whose range is greater (sometimes even double) than that of the standard data type integer.

a)

Long

b)

Short

c)

Integer

d)

Double

50.

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

51.

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

52.

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

a)

While

b)

Else

c)

As

d)

If

53.

These are the predefined set of reserved words that have special meaning for the compiler.

a)

Keyword

b)

Keyphrase

c)

Keycode

d)

Keypass

54.

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

55.

It is a programming element that specifies what kind of operation needs to perform on operands or variables.

a)

Variables

b)

Declarations

c)

Operator

d)

Decision