Font size
WorksheetsGrade 8 Visual Basic Quiz
Total questions: 142
Worksheet time: 2hrs 42mins
Visual Basic Studios is an example of _______________________ programming?
Object-oriented
Natural language
Operands
Procedural
If Francis wants to edit the BackColor, foreColor and visibility of the label, he must proceed to the _______________.
Toolbox
Property
Windows explorer
Solution explorer
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?
Property
Windows explorer
Toolbox
Solution explorer
Which of the following is a relational operator that means “Less than or Equal to”?
<=
>=
<>
=<
This is a blank form that shows automatically when starting a Visual Basic program.
Menu Bar
Toolbox
Properties window
Windows form object
Classify the data type that must be held in each variable.
INT - for integer
DOUBLE - for double
STRING - for string
Q: LOCKER NUMBER As ______
DOUBLE
STRING
INT
Classify the data type that must be held in each variable.
INT - for integer
DOUBLE - for double
STRING - for string
Q: STUDENT NAME As ______
DOUBLE
STRING
INT
Classify the data type that must be held in each variable.
INT - for integer
DOUBLE - for double
STRING - for string
Q: SCHOOL ADDRESS As _____
DOUBLE
STRING
INT
Classify the data type that must be held in each variable.
INT - for integer
DOUBLE - for double
STRING - for string
Q: FLOOR NUMBER As ____
DOUBLE
STRING
INT
CONST
btnSubmit
Textbox.Text
txtName
How would you make the variable "Surname" equal to the information that they have put in the txtSurname?
Dim Surname As String = txtSurname
Declare "Surname" As String = txtSurname
Dim txtSurname As String = Surname
Dim Surname As String = txtSurname.text
In Visual Basic, the extension to represent project file
.frm
.vbx
.vbp
.vb
The Function and procedure in Visual Basic are by default
Private
Public
Protected
None of the above
Which symbol creates an access(hot) key in the text of a menu item?
&
@
$
#
Variable scope and lifetime in Visual Basic can be
Module
Public
Static
Private
All of the above
Variables are named storage locations in memory, the value of which does not change during program
execution
design
debug
none of the above
The default Data type for Visul Basic is
Integer
Decimal
Variant
String
Which type of control is used to design a form like above
Check Box
Option Button
Combo Box
List Box
Which property determines whether a control is displayed to the user?
Show
Visible
Enabled
Hide
Module Level Variable are declared using the ____ or the___ keyword.
(a)
_____ use to store alphanumeric values. A variable length string can store approximately 4 billion characters.
String
Boolean
variant
date
A (a) level variable is available to all the procedures in the module.
You can change the (a) of the button & also its size.
vb stands for
visual basic
visual bytes
very basic
visual bits
Properties window short cut key
ctrl R
F4
F2
F2 is the shortcut key for
Form layout window
code window
Object browser
____ variables are not reinitialized each time visual basic invokes a procedure and thus retains or preserves value even when a procedure ends
Static
dynamic
virtual
private
The divide-and-conquer-method of problem solving breaks a problem into large, general pieces first, then refines each piece until the problem is manageable.
true
false
______ Control is used to provide an identifiable grouping of other controls.
(A) Frame
(B) Label
(C) List Box
(D) Command Button
To repeat the statement again and again we use …….
for loop
select case
if condition
……….. is an action recognized by a form or the control.
Property
Method
Event
Frame control acts as a ______
(A) Event
(B) Method
(C) Class
(D) container
In visual basic the declaration of variables is done by _____ keyword.
(A) Int
(B) Dim
(C) Static
(D) Declare
This event occurs when the form is loaded.
Activate Event
Load Event
Gotfocus
What is the output of this flowchart if the time is 6:30 a.m?
Take subway and reach school.
Take bus and reach school.
Take subway, get the bus and reach school.
_______ Window is used to write code
immediate window
Codeeditor window
Properties window
Which value for x would make the following condition true: Not (x >= 5)
x is equal to 7
x is equal to 4
x is equal to 5.001
x is equal to 5.101
The ______ event occurs when the mouse pointer is moved across the screen.
(A) Mouse
(B) Mouse Move
(C) Move
(D) Control
Visual Basic is derived from a high-level programming language called (a) .
In visual basic a variable name cannot be more than ______ characters.
In visual basic a variable name cannot be more than ______ characters.
(A) 255
(B) 300
(C) 355
(D) 400
The code that is used in a sub procedure to stop execution of a program is :
(A) Exit
(B) End with
(C) End
(D) End sub
Controls are ______
(A) Code
(B) Part of the menus
(C) Rules
(D) Objects
Press __ to start debugging.
F5
F4
F12
F1
Which value for x would make the following condition true: (x >= 5) And (x <= 6)
x is equal to 7
x is equal to 5
x is equal to 5.001
You use ___________ for getting user input.
Textbox
Command button
Labels
Application in VB is created in a Area called ______.
(A) Window
(B) Form
(C) Label
(D) Test box
In visual basic ______ is the extension to represent project file.
(A) .frm
(B) .vbp
(C) .cls
(D) .vb
The default datatype for VB is ______
(A) Integer
(B) Decimal
(C) variant
(D) String
It can hold whole numbers or Fractional numbers.
(a)
A variable declared inside an event procedure is said to have local scope
True
False
A ___ variable is one that is declared inside a procedure.
Global
local
external
None of the above
MDI Stands for
Malicious Document Interface
Multilevel Document Interface
Multiple Document Interface
……….. is a meaningful name that takes the place of a number or string.
variable
datatype
constant
(a) is used to display text on a form.
The variables that Does not change the value during execution of program is _____
(A) Numeric
(B) String
(C) Constant
(D) None of the above
Visual Basic responds to events using which of the following?
code procedure
event procedure
code
procedure
Visual Basic form has ______ extension.
(A) .frm
(B) .form
(C) .vb
(D) .xls
Which property is used to change name of the command button?
(A) Caption
B) Nameset
(C) Fore color
(D) Enable
(a) is used to fire an event at specific intervals.
Option Explicit requires you to declare every variable before its use.
True
False
Which of the following is a valid Visual Basic conditional statement?
2 < n < 5
2 < n Or < 5
2 < n Or 5
(2 < n) Or (n < 5)
Declaring a variable is to reserve space in memory.
True
False
Variable name should be less than __________ characters.
250
255
200
155
CheckBox is used when the user has got the choice to select (a) options.
Visual Basic is
command line programmig
user friendly
Event driven
both b and c
Keywords in Visual Basic are words that
should be used when naming variables.
are used to name controls, such as TextBox1, Command2, etc.
have special meaning and should not be used when naming variables.
are used as prefixes for control names (such as txt, btn, lbl, and lst).
Keywords are also referred to as reserved words.
true
false
Variables are the (a) which are used to store
values temporarily.
Which of the following arithmetic operations has the highest level of precedence?
+ –
* /
^ exponentiation
( )
What screen elements displays the attributes for a form or control that is inserted and selected?
Form layout window
Properties window
Project Exploer
Toolbox
It shows the position of the form on the screen at runtime.
Toolbox
Properties window
Project Exploer
Form layout window
A control that is used to accept an input value to end-user.
Frame
TextBox
Label
CommandButton
It contains controls that can be placed on the form.
ToolBox
Form1
Project Explorer
Properties Window
What toolbox button or control provides user with more than one choice?
OptionButton
ComboBox
CheckBox
CommandButton
Visual Basic is an object-oriented program produced by Adobe Corporaton.
True
False
Serves as a visual and functional container for controls
PictureBox
ComboBox
DriveListBox
Frame
IDE acronym stands for Integrated Developers Environment.
True
False
Displays icons/bitmaps and metafiles. It displays text or acts as a visual container for other controls.
PictureBox
ComboBox
DriveListBox
Frame
Used to carry out the specified action when the user chooses it.
FileListBox
PictureBox
CommandButton
TextBox
A third-generation vent-driven programming language first released by Microsoft in 1991.
JAVA
C++
Visual Basic
Python
A set of instructions to instruct the computer to carry out certain jobs that are very much faster than human beings can do.
Binary Codes
Programming
Information
Visual Basic
In what year Microsoft released the Visual Basic.NET to replaced Visual Basic 6?
2002
2005
2010
2007
This is where all the controls in visual basic are show and inserted into the forms.
Menu Bar
Toolbar
Toolbox
Form Windows
It serves as a quick reference to the various elements of a project namely form, classes and modules.
Code Window
Form Window
Properties Window
Project Window
It allows you to position the forms in your application using a small graphical representation of the screen.
Form Window
Code Window
Form Layout Window
Properties Window
It provide quick access to commonly used commands in the programming environment.
Menu Bar
Toolbar
Toolbox
Form Window
What is the meaning of BASIC?
Beginners’ All-purpose Symbolic Instruction Code
Beginners’ All-purpose System Instruction Code
Beginners’ All-purpose Support Instruction Code
Beginners’ All-purpose Standard Instruction Code
The following are buttons in Toolbar EXCEPT;
Break
View
Design Mode
Text Box
The following are buttons in Toolbox EXCEPT;
Label
Reset
Frame
TabStrip
(a) allows the user to make a selection from a number of items.
(a) is used to fire an event at specific intervals.
It can hold whole numbers or Fractional numbers.
(a)
Variable name should be less than __________ characters.
250
255
200
155
Press __ to start debugging.
F5
F4
F12
F1
(a) is used to display text on a form.
ComboBox allows the user to make a (a) of items in the drop-down list.
You can change the (a) of the button & also its size.
Visual Basic is derived from a high-level programming language called (a) .
CheckBox is used when the user has got the choice to select (a) options.
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
Statement B: TextBox is not used to take input;
