wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Visual basic Quiz PGDCA

Total questions: 50

Worksheet time: 50mins

Name
Class
Date
1.

Module Level Variable are declared using the ____ or the___ keyword.

(a)  

2.

_____ use to store alphanumeric values. A variable length string can store approximately 4 billion characters.

a)

String

b)

Boolean

c)

variant

d)

date

3.

A (a)   level variable is available to all the procedures in the module.

4.

You can change the (a)   of the button & also its size.

5.

vb stands for

a)

visual basic

b)

visual bytes

c)

very basic

d)

visual bits

6.

Properties window short cut key

a)

ctrl R

b)

F4

c)

F2

7.

F2 is the shortcut key for

a)

Form layout window

b)

code window

c)

Object browser

8.

____ variables are not reinitialized each time visual basic invokes a procedure and thus retains or preserves value even when a procedure ends

a)

Static

b)

dynamic

c)

virtual

d)

private

9.

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.

a)

true

b)

false

10.

______ Control is used to provide an identifiable grouping of other controls.

a)

(A) Frame

b)

(B) Label

c)

(C) List Box

d)

(D) Command Button

11.

To repeat the statement again and again we use …….

a)

for loop

b)

select case

c)

if condition

12.

……….. is an action recognized by a form or the control.  

a)

Property

b)

Method

c)

Event

13.

Frame control acts as a ______

a)

(A) Event

b)

(B) Method

c)

(C) Class

d)

(D) container

14.

In visual basic the declaration of variables is done by _____ keyword.

a)

(A) Int

b)

(B) Dim

c)

(C) Static

d)

(D) Declare

15.

This event occurs when the form is loaded.

a)

Activate Event

b)

Load Event

c)

Gotfocus

16.

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.

17.

_______ Window is used to write code

a)

immediate window

b)

Codeeditor window

c)

Properties window

18.

Which value for x would make the following condition true: Not (x >= 5)

a)

x is equal to 7

b)

x is equal to 4

c)

x is equal to 5.001

d)

x is equal to 5.101

19.

The ______ event occurs when the mouse pointer is moved across the screen.

a)

(A) Mouse

b)

(B) Mouse Move

c)

(C) Move

d)

(D) Control

20.

Visual Basic is derived from a high-level programming language called (a)   .

21.

In visual basic a variable name cannot be more than ______ characters.

In visual basic a variable name cannot be more than ______ characters.

a)

(A) 255

b)

(B) 300

c)

(C) 355

d)

(D) 400

22.

The code that is used in a sub procedure to stop execution of a program is :

a)

(A) Exit

b)

(B) End with

c)

(C) End

d)

(D) End sub

23.

Controls are ______

a)

(A) Code

b)

(B) Part of the menus

c)

(C) Rules

d)

(D) Objects

24.

Press __ to start debugging.

a)

F5

b)

F4

c)

F12

d)

F1

25.

Which value for x would make the following condition true: (x >= 5) And (x <= 6)

a)

x is equal to 7

b)

x is equal to 5

c)

x is equal to 5.001

26.

You use ___________ for getting user input.

a)

Textbox

b)

Command button

c)

Labels

27.

Application in VB is created in a Area called ______.

a)

(A) Window

b)

(B) Form

c)

(C) Label

d)

(D) Test box

28.

In visual basic ______ is the extension to represent project file.

a)

(A) .frm

b)

(B) .vbp

c)

(C) .cls

d)

(D) .vb

29.

The default datatype for VB is ______

a)

(A) Integer

b)

(B) Decimal

c)

(C) variant

d)

(D) String

30.

It can hold whole numbers or Fractional numbers.

(a)  

31.

A variable declared inside an event procedure is said to have local scope

a)

True

b)

False

32.

A ___ variable is one that is declared inside a procedure.

a)

Global

b)

local

c)

external

d)

None of the above

33.

MDI Stands for

a)

Malicious Document Interface

b)

Multilevel Document Interface

c)

Multiple  Document  Interface 

34.

……….. is a meaningful name that takes the place of a number or string.  

a)

variable

b)

datatype

c)

constant

35.

(a)   is used to display text on a form.

36.

The variables that Does not change the value during execution of program is _____

a)

(A) Numeric

b)

(B) String

c)

(C) Constant

d)

(D) None of the above

37.

Visual Basic responds to events using which of the following?

a)

code procedure

b)

event procedure

c)

code

d)

procedure

38.

Visual Basic form has ______ extension.

a)

(A) .frm

b)

(B) .form

c)

(C) .vb

d)

(D) .xls

39.

Which property is used to change name of the command button?

a)

(A) Caption

b)

B) Nameset

c)

(C) Fore color

d)

(D) Enable

40.

(a)   is used to fire an event at specific intervals.

41.

Option Explicit requires you to declare every variable before its use.

a)

True

b)

False

42.

Which of the following is a valid Visual Basic conditional statement?

a)

2 < n < 5

b)

2 < n Or < 5

c)

2 < n Or 5

d)

(2 < n) Or (n < 5)

43.

Declaring a variable is to reserve space in memory.

a)

True

b)

False

44.

Variable name should be less than __________ characters.

a)

250

b)

255

c)

200

d)

155

45.

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

46.

Visual Basic is

a)

command line programmig

b)

user friendly

c)

Event driven

d)

both b and c

47.

Keywords in Visual Basic are words that


a)

should be used when naming variables.

b)

are used to name controls, such as TextBox1, Command2, etc.

c)

have special meaning and should not be used when naming variables.

d)

are used as prefixes for control names (such as txt, btn, lbl, and lst).

48.

Keywords are also referred to as reserved words.

a)

true

b)

false

49.

Variables are the (a)   which are used to store

values temporarily.

50.

Which of the following arithmetic operations has the highest level of precedence?

a)

+ –

b)

* /

c)

^ exponentiation

d)

( )