Descriptive Type Questions
1. Define Basic language.
Ans. BASIC is a High Level Programming Language used for beginners. It stands for Beginners All Purpose Symbolic Instruction Code . The popular BASIC editions are GW BASIC , BASICA and QBASIC.
2. Write the different ways to run a QBasic program.
Ans. The different ways to run a QBasic program are :
- By pressing F5 Key.
- By Selecting Run Menu and clicking on Start option.
- By Typing Run in the Immediate mode and pressing Enter key.
3. Define variable. Name the types of variables.
Ans. A variable is a location in memory to which any value can be assigned. It continues to hold the value until another value is assigned to it. There are two types of variables – Numeric and Alphanumeric.
4. Differentiate Numeric and Alphanumeric Constant.
| Numeric Constant | Alphanumeric Constant |
| It can be any numeric value such as an integer , real number (positive or negative). For eg : 22.4 , -7.5 , 0 etc. | It is a set of characters enclosed in double quotes. The characters can be A-Z , a-z , 0-9 and special symbols like % , # , & , * etc. For eg: “Gandhi Street , Velachery “ |
5. Define the term Hierarchy of operations. Write the hierarchical order of the arithmetic operators in QBasic.
Ans. Hierarchy of operations defines the order in which operators are executed in any BASIC program.
The Order is :
| B | Brackets | ( ) |
| E | Exponentiation | ^ |
| D | Division | / |
| M | Multiplication | * |
| A | Addition | + |
| S | Subtraction | – |