INTRODUCTION
• The fullform of QBASIC is ” Quick
Beginners All purpose Symbolic
Intruction Code”
• QBASIC is a simple programming
language developed by Microsoft to
type edit debug and execute BASIC
programming.
• QBASIC uses English words and
mathematical symbols to write
programmes. It is verry easy and
simple to understand.
3.
FEATURES OF QBASIC
•QBASIC is a very easy and simple to understand
• QBASIC automatically checks syntax
• QBASIC capitalizes the reserved words/ key words
• QBASIC allows you to break lengthy programs into modules
4.
ELEMENTS AND
CHARACTERSET INQBASIC
• The elements are:
1. Character set
2. Constants
3. Variables
4. Statements
5. Operators
6. Expressions
• The character set:
1. Alphabets from A-Z and a-z
2. Numbers from 0 to 9
3. Special characters such as +, -, *, <, >, :, ;, ‘ ,/ ,&, #, $, % etc
RELATIONAL OR
COMPARISION OPERATORS
Theoperators which are used to compare 2 values are called
relational or comparision operators. The relational operators
used in QBASIC are:
OPERATORS MEANINGS
= EQUALS TO
< LESS THAN
> GRATER THAN
>= GRATER THAN OR EQUALS TO
<> NOT EQUAL TO
7.
LOGICAL OPERATORS
THE OPERATORSWHICH ARE UESD TO COMBINE TWO OR MORE
RELATIONAL EXPRESSIONS ARE CALLED LOGICAL OPERATORS. IT
GIVES TWO LOGICAL VALUE TRUE OR FALSE. THE LOGICAL
OPERATOR USED IN QBASIC ARE AS FOLLOWS:
OPERATORS MEANINGS
AND Returns true value when all the
conditions are true
OR Returns true value when any one
condition is true
NOT Returns the inverse value
8.
STRING OPERATORS
”+” isa string operator. It is used to combine 2 strings.
Eg: ABC + XYZ = ABCXYZ
The process of joining 2 or more string is known as string
concation.