Skip to main content

Posts

Showing posts from November, 2018

QBASIC STATEMENTS CLASS-VI

CONTROL STATEMENT-    The Control Statements are used for controlling the Execution of the program. We use control statements by two way 1) Unconditionally & 2) Conditionally GOTO STATEMENT- Unconditionally, we use GOTO statement. The Goto Statement is used for transferring the control to the other location for example- if you wants to transfer the control to the other place of the program then we can use the goto statement. When we use goto Statement then we have to supply a name along with a Goto Statement on which Control is transferred. The Name is user choice and Name must be defined with the help of a Colon. When Compiler transfers the Control of program to the Goto statement then statements of Goto block will be Executed and The Name of Goto Statements block is also called as the Label Name. GOTO statement uses line number or label Here, We will understand by an example CLS 1 PRINT " MY NAME IS  AMIT " :GOTO ABC 2 PRINT " I LI...

STRING HANDLING IN QBASIC CLASS VII

String in QBASIC is used to store string values.  In previous chapter we have learnt to store and work with numeric values. In this lesson we will learn to manipulate string / alphanumeric values. As we know that for storing string value in memory, we need to declare the variable as string. For declaring variable as string we use $ sign infront of variable name. Example n$="Raja"  Here, we have declared the variable with name n and for declaring it as string we put $ sign with it. Always remember that string value always enclosed in double quote. As we seen in the example, we have provided the value Raja.

QBASIC ARRAY & GRAPHICS CLASS VIII

ARRAY in QBASIC  is used to store sequential values of same kind.We can use array instead of using number of separate variables. Using different variables to store values will makes our program lengthy and complicated. So, in such cases QBASIC provides us facility to store values of same type. So, Basically there are two types of array in QBASIC: 1) SINGLE DIMENSIONAL ARRAY 2) DOUBLE / TWO DIMENSIONAL ARRAY  SINGLE DIMENSIONAL ARRAY Declaration:-                        We use DIM keyword to declare array. Syntax: DIM  (number of items). Example:- DIM A(10) The above will open 10 dimensions in memory to store 10 numbers. i.e.    1              2           3           4           5      ...