In this post, we have solved the NCERT questions and answers part of chapter 10 – Introduction To QB64 for class 6.
Let’s have a Recap of the chapter first:
- Qbasic is very easy and simple to understand language. It is a beginner-friendly programming language.
- A set of instructions is called a program.
- QB64 is the updated version of the Qbasic programming language. Qb64 is compatible with Windows and Linux operating systems.
- Debugging means the process of finding and removing bugs in a program.
- In QB64, there are three types of operators – Arithmetic, Relational, and Logical
- There are two types of constant: Numeric and Alphanumeric constant
Here are some links on some basic topics of QB64, it will help you understand the topic better
We will cover two-section E and F of the Question and Answer part.
Answer the following in one word or in a sentence:
1. What is the full form of BASIC?
The full form of BASIC is Beginners All-Purpose Symbolic Instruction Code.
2. What are the different types of constants?
The different types of constants are :
- Numeric Constant
- Alphanumeric or String Constant
3. Give two examples of both numeric and alphanumeric constants?
The two examples of both numeric and alphanumeric constants are:
Numeric Constants – 220 + 10, -7.4
Alphanumeric Constant are: “MAX”, “192”
4. Which operator is used to represent ‘less than or equal to a condition in QB64’?
The operator is used to represent ‘less than or equal to a condition in QB64’ is <= operator.
5. Which statement is used to display the output on the screen?
The PRINT statement is used to display the out on the screen.
6. What are the types of operators in QB64?
The types of operators in QB64 are
- Arithmetic Operators
- Relational Operators
- Relational Operators and
- Logical Operators
Who developed the BASIC language?
John G. Kemeny and Thomas E. Kurtz developed BASIC language in May 1964.
Answer the following:
1. Define QB64 language.
Qbasic is an IDE (Integrated Development Environment), developed by Microsoft to write, edit, debug, and execute codes written in BASIC programs. It uses basic English words and symbols to write a program.
Each command in Qbasic is called a Qbasic Statement. And each statement must be written following a specific set of rules known as syntax.
2. Write the different ways to run a QB64 program.
The different ways to run a QB64 program are:
- By pressing the f5 key
- By selecting the run from Menu and selecting Start.
3. Define Variables. Name the types of variables.
A variable is a location that is allocated in the memory, which has been assigned a name and which can store data temporarily. A Variable can hold the data until another value is assigned to it.
The different types of variables are :
- Numerical Variables
- Alphanumerical Or String variables
4. Differentiate between Numeric and Alphanumeric Constant.
The difference between Numeric and Alphanumeric Constant are:
Numeric Constant: Any numerical value, either a positive, negative, integer or a real number is a numeric constant. These constants are used for calculations.
For Examples: 224, 45 + 12, -7.4
Alphanumeric Constant: Alphanumeric constant has both alphabet and numeric values to it. An alphanumeric constant has a sequence of characters, A-Z,a-z, and 0-1. It can also include special symbols like %,$,^,&,(),: all enclosed in double-quotes.
For example : “MAX”, “SUM = RS 84”
5. Define the term Hierarchy of operations. Write the hierarchical order of the arithmetic operators in QB64.
The hierarchy of operations means the order in which all the operations in the program are executed. It uses BEDMAS for the hierarchy of operations.
The BEDMAS rule is written down below