Font size
WorksheetsVisual basic Quiz PGDCA
Total questions: 50
Worksheet time: 50mins
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
( )
