What is Qbasic programming language? Features of Qbasic.
QBASIC PROGRAMMING
INTRODUTION TO QBASIC
Q-BASIC stands for Quick Basic All-purpose Symbolic Instruction Code. It is the upgraded version of Basic programming. It is one of the high-level programming languages. It is easy for beginner programmers or students to understand the concept of the language. It uses the interpreter as a translator or language processor. Basic programming was developed by John George Kemeny and Thomas Eugene Kurtz in Dartmouth College, USA in 1964 AD. Qbasic is a high-level programming language. It consists of basic elements from which other elements are formed. The basic elements are character set, variables, constants, operators, expressions, etc.
FEATURES OF THE QBASIC
The features of the Qbasic are as follows:
- Easy to understand the language and to write the language
- It is easy to debug the program
- It is a portable program.
- It completes the set of file sizes if very small
- Meaningful words are used in programming syntax
- There is a help menu available for the programmer
- There are two windows or modes: programming mode or indirect mode and other is the direct mode or immediate window
How to download Qbasic and start the Qbasic? (In points)
The ways to download Qbasic and start the Qbasic are given below in the points:
- Qbasic 4.5 is available in the market or you can download it from the net as well.
- Then after downloading run the qb.exe file.
- It opens a text editor programming window.
- In the new beginning system, it may be required to install DOSBox 0.74 to start the QBASIC program.
- There is a programming mode window in the upper part and immediate mode, a small window in the lower section.
- Statements with correct syntax can be used to write a program in the main window.
- Then, there is a menu system and help feature to support the programmer.
What is the Reserved Word in Qbasic?
Reserved Word
The standard words that are well defined in the Qbasic program are called Reserved Word. The reserved words of QBasic are statements, commands, and functions. They are not used to define the variable name, constant name, subroutine name, an array name. The meanings of these words are well defined. Some keywords are PRINT, INPUT, FOR, UNTIL, DO, WHILE, CASE, IF, ELSE, etc.
WHAT IS VARIABLE IN QBASIC?
VARIABLE
Variables are names that are used to store data in a programming language. Its value can be changed during the execution of a program. Variables are needed to allocate the memory of the computer. There are two types of variables. They are:
- Numeric variable
- String variable
what are constant in QBASIC?
Constant
Constant are the names in which it stores fixed value. Constant value doesn't change the execution of the program. It is a predefined value in a program. The rule to define constant is given below:
Let constantname= value
Eg: name$= "school"
X%=5
Y#=1524
Types of constant
- Numeric constant
- Integer constant
- Single precision constant
- Long integer
- Double precision
What are operators?
An operator is a symbol that tells the computer to perform certain mathematical or logical manipulations. Operators are mainly used to manipulate data and variables. They mainly form a part of a mathematical of logical expressions. They can use for both numeric as well as a string values. For examples: +,-.*,<,> etc.
Types of operators
- Arithmetic operators
- Relational operators
- Logical operators
- String operators
- Assignment operators
owesome note for me
ReplyDelete