D.Answer the
following questions:-WRITE DOWN IN YOUR COMPUTER NOTBOOK
Que-1 Write the steps to create a calculator In
visual basic?
Ans-1 Step-1
Using visual basic design a form interface as shown below:
Step-2 The next stp is changing the
name property of the controls as shown below:
a.Number 1 Text box: txtNum1
b.Number 2 Text box: txtNum2
c.Result text ox: txtResult
d.Add Button: cmdAdd
e.Subtract Button: cmdsubtract
f.Multiply Button: cmfMul
Step-3 Double click on the Add button
and type the given code in the cmdAdd_click() event handler.txtResult.
Text=Val(txtNum1.Text)+Val(txtNum2.Text)
Step-4 Now add the given code in the
cmdsub_click()event handler and cmdMul_click() event handler.
Step-5 Press f5 to run the project.
Que-2 Define the Visual Basic?
Ans-2 Visual
Basic is a programming language that offers a graphical user interface to
design and develop programs while when you compare it to the other popular
programming language that is widely used QBASIC it only offers a text based
interface.
Que-3 Give Difference between visual basic and QBASIC.
Ans-3 (1.)In QBASIC,
programming is done in a text-only environment and the program is executed
sequentially.
(2)In Visual Basic, programming is done in a graphical environment.
Users may click
on a certain object randomly, so each object has to be programmed independently
to be able to response to those actions (events).
Que-4 What is Code View?
Ans-4 CodeView
is something which indicates a process or principle of making what is viewed
clearer by the special way in which the code and its associations,
dependencies, etc, are presented.
Que-5 What is Solution Explorer?
Ans-5 Solution Explorer displays the projects that form your solution, the
files and folders in a project as they appear on the physical hard drive, and
any assemblies, COM objects or files the project references.
No comments:
Post a Comment
Thank your for your valuable responce.
Mrfarooqui