0% found this document useful (0 votes)
1K views

Class VIII Chapter 2 Notes Computer

Visual Basic is a visual and event-driven programming language used to build graphical user interface (GUI) applications. It provides an integrated development environment (IDE) that allows programmers to design forms and controls, write code, and debug and test applications within a single interface. The IDE integrates functions like design, editing, compiling, and debugging. A Visual Basic project contains all the files that make up an application and can be executed by pressing F5 or the Start button. The code window allows writing code to run the application and can be accessed by double clicking objects or through the view menu.

Uploaded by

B
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)
1K views

Class VIII Chapter 2 Notes Computer

Visual Basic is a visual and event-driven programming language used to build graphical user interface (GUI) applications. It provides an integrated development environment (IDE) that allows programmers to design forms and controls, write code, and debug and test applications within a single interface. The IDE integrates functions like design, editing, compiling, and debugging. A Visual Basic project contains all the files that make up an application and can be executed by pressing F5 or the Start button. The code window allows writing code to run the application and can be accessed by double clicking objects or through the view menu.

Uploaded by

B
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/ 4

DPS – MIS, DOHA- QATAR

CLASS VIII COMPUTER SCIENCE NOTES


CHAPTER 2 –STARTING WITH VISUAL BASIC

I. Answer the following questions:


1 How is Visual Basic different from BASIC programming language?
Explain briefly.
A. Basic Visual Basic
It is a fairly easy VB is a visual and events
programming language to driven programming
learn. The code look a bit language.
like English Language.

In Basic programming is It is done in a graphical


done in a text- only environment.
environment and the
program is executed
sequentially.

2 Explain the use of new, existing and recent projects in startup dialog box.
A. New: After selecting New tab and clicking the open button the user
can go into the actual vb programming environment.
Existing : On clicking of the existing tab the user is prompted to open
an already existing project.
Recent : The recent tab in the dialog box shows the list of recently
opened projects.
3 What is Integrated Development Environment? Explain.
A. The working environment in Visual Basic is often referred to as the
integrated development Environment or IDE because it integrates
many different functions such as design , editing, compiling , and
debugging within a common environment.
4 How do you execute a Visual Basic project?
A. A project can be executed in three different ways:
• Press F5 key to the keyboard to run or execute your project.
• Clicking the Start button (blue arrow) on the toolbar .
Page 1 of 4
• Selecting Run – Start from the menu will also accomplish the
same thing.
5 Write the steps to save a project.
A. Saving a Project
 To save the projects select the Save Project on the toolbar.
 Create a new folder by clicking the create new folder Icon, and
save your Form in the new folder.
 Click on the save button to save the Form with the name Form1.
User can also save the Form with any one name.
 Now save your project in the same new folder.

6 Visual Basic is an event driven programming language. Justify.


A. In visual basic programming is done in a graphical environment.
Because 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). Therefore, a vb program is made up of many
subprograms, each has its own program codes, and each can be
executed independently. That’s why Visual Basic is a visual and event
driven programming language.
7 What is the use of End statement?
A. End Statement is used to stop the execution of a project.
8 How do you define a project?
A. A project is a collection of files that make up your
application. There are various types of applications we could
create, however , we shall concentrate on creating Standard EXE
Programs(EXE means executable program).
9 In how many ways the code window can be accessed?
A. Code Window can be accessed in 3 different ways:
1. The easiest way to access a code window for any particular
form or control is to double click on it.
2. You can right click on form and select View Code.
3. Click View/Code from the menu when the object is selected.

10 Explain briefly the following parts of Visual Basic Environment:


a) Tool Bar: The tool bar consists of most frequently used commands
and utilities.
b) Menu Bar: The menu bar is located below the title bar. It displays
various menu options of visual basic.
c) Title Bar : Title bar is located at the top of the screen it shows the
default name for the ‘new’ project as PROJECT 1. Also notice that the
Page 2 of 4
title bar indicates that we are design mode.
d) Code Window : The Code Window is a part of visual basic
environment where user can write the code for running an
application.
e) Form Window : The blank form is the window in which you can
design your application’s interface.
f) Project Explorer : This window displays the files that are created in
your application. The project explorer window gives you a tree
structured view of all the files inserted into the application. The
project explorer is very useful for getting an overall view of your
project, and switching between forms and code modules. To display
project explorer select it from the view/ project explorer menu or
press
CTRL+ R.
g) Properties Window: This window displays the properties of various ,
controls objects that are created in your applications.
h) Form Layout: This window is used to position the form where it will
be displayed on the screen.
11 Fill in the banks:
a) The full form of BASIC is Beginners’ All Purpose Symbolic Instruction
Code .
b) .vbp is the extension name used for a Visual Basic project.
c) .frm is the extension name used for a Visual Basic form.
d) The full form of IDE is Integrated Development Environment.
e) Menu Bar is located below the title bar.
f) F5 key is used to run a project.
g) A visual basic program ends with End Sub statement.
h) The properties window displays the properties of various controls
and objects.
i) The project window displays the files that are created in your
application.
12 Design a Visual Basic form. Insert a command button with the code to end
the execution. Set the caption property of the command button as QUIT.

Page 3 of 4
Private Sub Command1_Click( )
End
End Sub
*******

Page 4 of 4

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