0% found this document useful (0 votes)
13 views3 pages

Chapter 4 Introduction To Visual Basic: 1. Fill in The Blanks With The Correct Words

Uploaded by

rwad.mu24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Chapter 4 Introduction To Visual Basic: 1. Fill in The Blanks With The Correct Words

Uploaded by

rwad.mu24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Chapter 4 Introduction to Visual Basic

1. Fill in the blanks with the correct words.

a. IDE
b. .vb
c. Property
d. Variables
e. +

2. Write T for the true statement and F for the false one. Correct
the false statement(s).

a. T
b. F. The Toolbox tab appears on the left side of the screen.
c. T
d. F. Event driven programming responds to events.
e. F. It can give fl oat variables also.

3. Choose the correct option.

a. iv. All of these


b. ii. Button
c. iii. Form Design
d. ii. Textbox
e. ii. Solution Explorer

DESCRIPTIVE TYPE QUESTIONS


1. Answer the following.

a. Title Bar: The title bar at the top of the window displays the title of the
project.
Menu Bar: The menu bar consists of many drop-down menus. Clicking on
any option of the menu bar makes it active.

Form Window: The Form window is the primary work area that forms the
background of the application. The user can place objects on the form.
Toolbox: The Toolbox contains the controls. Controls are GUI components
that can be added to the form.

b. The four steps in developing an application are:


i. Create a form.
ii. Place controls on the form.
iii. Set properties for the controls.
iv. Add code to the controls to handle the events.

c. The two methods of placing controls on a form:


• First Method:
i. Double-click on the control in the Toolbox. Here the control chosen is a
button. By
default, buttons are named Button1, Button2, etc.
ii. The control appears at the top-left corner of the form. To change the
position of
the control, click on it, hold down the left mouse button, and drag it to the
new
location
iii. To resize the control, drag the resize pointers on its edges or corners.
iv. Drag the edges pointer for changing the size either horizontally or
vertically.
v. Drag the corner pointers for changing the size diagonally.

Second Method:
i. Click on the control in the Toolbox, and with the left mouse button
pressed down,
drag and drop it onto the form.
ii. Reposition the control by holding down the left mouse button and
dragging it to
a new location. To resize the control, drag one of its edges or corners.

d. After declaring a variable using the Dim statement, one can assign a
value to it using an
assignment statement. The general format of an assignment statement
is:
Variable = Expression or Constant
For example:
A = 100 or
A = B * C
e. The arithmetic operators used in Visual Basic are: Addition (+),
Subtraction (-),
Multiplication (*), Exponent (^), Division (/), Integer Division (\), and
Modulus (Mod).
APPLICATION-BASED QUESTIONS

a.i. Text property in the Properties ii. Dim a as Integer, b as String, c

window as Single

ii. BackColor d. i. Label

b. i. 5.333 ii. TextBox

ii. 5 iii. Button

iii. 1

iv. 125

c. i. Dim a, b, c as Integer

e. i. Dim Num as Integer Num= TextBox1.Text

ii. Dim MyName as String

MyName = “XYZ”

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy