Skip to main content

Posts

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      ...

QBASIC MULTIPLE CHOICE & SUB PROCEDURES CLASS VII

1) ELSEIF- When there are multiple choices and the user has to select one, the ELSEIF statement can be used. Example:- In the above program, program will determine greatest number among three entered number. Remember, while entering numbers , enter three different  numbers. Output:- 2) SELECT CASE:-  SELECT CASE , is used to automatically determine a program decision by checking the value of a variable. Syntax: - SELECT CASE variable CASE comparison value :  execution code : : : CASE ELSE END SELECT Example:- 1 We will make a program to print weekly day, by entering corresponding number.   In the above program, program will print day after entering corresponding day number. Output:-  Example:- 2   Output:-  In the above program we will enter character & program will show you related months staring from the entered character.   LAB ACTIVITY 1. Write Programs for the following problems. ...

SOME IMPORTANT ABBREVIATIONS

COMPUTER: COMMON OPERATING MACHINE PARTICULARLY USED FOR UNITED AND USED UNDER TECHNICAL & EDUCATIONAL RESEARCH RAM: RANDOM ACCESS MEMORY ROM: READ ONLY MEMORY USB: UNIVERSAL SERIAL BUS WINDOW: WIDE INTERACTIVE NETWORK DEVELOPMENT FOR OFFICE WORK SOLUTION GOOGLE: GLOBAL ORGANIZATION OF ORIENTED GROUP LANGUAGE OF EARTH YAHOO: YET ANOTHER HIERARCHICAL OFFICIOUS ORACLE DELL: DIGITAL ELECTRONIC LINK   LIBRARY INTEL: INTEGRATED ELECTRONICS HP: HEWLETT PACKARD LCD: LIQUID CRYSTAL DISPLAY LED: LIGHT EMITTING DIODE OLED: ORGANIC LIGHT EMITTING DIODE AMOLED: ACTIVE MATRIX ORGANIC LIGHT EMITTING DIODE CRT: CATHODE RAY TUBE TFT: THIN FILM TRANSISTOR HDMI: HIGH DEFINITION MULTIMEDIA INTERFACE WLAN: WIRELESS LOCAL AREA NETWORK LAN: LOCAL AREA NETWORK MAN: METROPOLITAN AREA NETWORK WAN: WIRELESS AREA NETWORK NAT: NETWORK ADDRESS TRANSLATION HSPDA: HIGH SPEED DOWN LINK PACKET ACCESS VPN: VIRTUAL PRIVATE NETWORK DLNA: DIGITAL LIVING NETWORK ALLIANCE APN: A...