QBASIC
BY :DIVYANSHI SHRESTHA
GRADE 6 SIRIUS
INTRODUCTION
• The full form 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.
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
ELEMENTS AND
CHARACTERSET IN QBASIC
• 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
MATHEMATICAL OPERATORS
OPERATORS MEANINGS
+
ADDITION
- SUBTRACTION
* MULTIPLICATION
/ DIVISION
 INTEGER DIVISON
^ EXPONENTIATION
RELATIONAL OR
COMPARISION OPERATORS
The operators 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
LOGICAL OPERATORS
THE OPERATORS WHICH 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
STRING OPERATORS
”+” is a 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.
EXPRESSIONS
ALGEBRIC EXPRESSIONS BASIC EXPRESSIONS
A + B A + B
PTR
M / N M/N
A3 + B3 ( A ^ 3 ) + ( B^ 3 )
3/ R BR ^ ( 113)
qbasic for beginners - who wants to learn about basic computer knowledge

qbasic for beginners - who wants to learn about basic computer knowledge

  • 1.
  • 2.
    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
  • 5.
    MATHEMATICAL OPERATORS OPERATORS MEANINGS + ADDITION -SUBTRACTION * MULTIPLICATION / DIVISION INTEGER DIVISON ^ EXPONENTIATION
  • 6.
    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.
  • 9.
    EXPRESSIONS ALGEBRIC EXPRESSIONS BASICEXPRESSIONS A + B A + B PTR M / N M/N A3 + B3 ( A ^ 3 ) + ( B^ 3 ) 3/ R BR ^ ( 113)