QBASIC Note
4.2.1INTRODUCTION
QBASIC is high level programming language is the common language for writing programs. There are many different types of high level programming languages. Among them BASIC (Beginner All - purpose Symbolic Instruction Code ) is the first choice of learners. QBASIC is a version of BASIC. The statements of QBASIC are like English words and meanings of those statement . QBASIC is not only a programming language , it is also an interpreter. QBASIC converts one statement of a program into machine codes at a time.
QBASIC EDITOR SCREEN
QBASIC EDITOR SCREEN has four parts:
a. Menu Bar
b. Program Window
c. Immediate Window
d. Status Bar
a. Menu Bar: The Menu bar consists of list of commands like file, edit, view, search, run, debug, options, and help. These menus again have some sub commands. To activate the menus item of menus.
b. Program Window: The upper window which is titled as 'untitled' is the window where you write programs .
c. Immediate Window : The lower Window which is 'Immediate' is know as Immediate Window where you test commands , expressions etc.
d. Status Bar: The status bar shows short cut keys and the location of the cursor on the screen .
Running a program
After entering a set of instruction in the Program Window , you may want to see the out put of the program . To see the output of the program you need to run a program . When you run a program QBASIC converts each statement of a program at a time .
Saving a program
You need to save a program for the future use. to save a program, follows theses steps:
a. Press ALT +F key.
b. Highlight Save As option .
c. Press Enter keys . Its display Save Dialog Box.
d. Enter Filename in the filename text box.
e. Press Enter key.
OPERATOR
An operator is a symbol is a symbol which tells the computer to perform certain mathematical and logical calculation .
Arithmetic Operators
Arithmetic Operators are used to perform mathematical calculation like addition , subtraction, division, multiplication and exponential .
BASIC COMMONDS
QBASIC provides various command for performing different tasks.
TYPES OF DATA:
a. String data b. Numeric data
Comments
Post a Comment