Computer Science
Class-VI
Chapter-8 Basic of BASIC
A. Fill in the blanks:
1. BASIC is the acronym for ___________________.
Answer: Beginners All-Purpose Symbolic Instruction Code
2. In the QBASIC system, commands are presented in the form of a _______.
Answer: Menu
3. Blank spaces can also be included in a ____________.
Answer: String
4. The _________ variable always represents numeric value.
Answer: Numeric
5. BASIC provides three types of operators ______, ______, and _____ operators.
Answer: Arithmetic, Relational, Logical
B. Write whether true or false:
1. BASICA, QBASIC, GWBASIC, etc. are versions of BASIC.
Answer: True
2. END statement generally is the start statement of program.
Answer: False
3. A string variable is a string of characters or alphanumeric values.
Answer: True
4. Arithmetic operators always give a numeric output.
Answer: True
5. In numeric variables, the restriction is that, the first character should be a letter.
Answer: True
C. Tick the correct option:
1. Every command or instruction in BASIC is called a
a. letter b. statement
Answer: statement
2. This command is used to save the current program onto the disk.
a. Save command b. Save As
Answer: Save command
3. The file extension in QBASIC is
a. .BAS b. DOS
Answer: .BAS
4. The operator which operates on numeric constants and variables is called an
a. experiment b. arithmetic variable
Answer: arithmetic variable
5. These operators are used to compare two values.
a. Relational operators b. Logical operators
Answer: Relational operators
D. Answer the following questions:
1. What do you mean by BASIC statement?
Answer: Every command or instruction in BASIC is called a statement. If you want to store a value in the computer's memory, compare any two values, or display the result on the screen, you have to write separate statements.
2. What are the three parts of a statement in BASIC? Give an example.
Answer: In BASIC, a statement consists of three parts:
1. Line or statement number
2. The BASIC statement
3. An optional comment
3. What are the components of QBASIC window?
Answer: The QBASIC window has the following components:
1. Menu Bar
2. Name of the current program
3. Status Bar
4. Status of Caps Lock, and Num Lock
5. Current Line Number
6. Current Column Number
4. What are the system commands in QBASIC?
Answer: System commands in QBASIC:
1. New command
2. Open command
3. Save command
4. Save as command
5. Print command
6. Exit command
5. What do you mean by operators?
Answer: BASIC provides three types of operators; arithmetic, relational and logical operators.
Arithmetic operators: The operator which operates on numeric constants and variables is called an arithmetic operator.
Relational operators: Relational operators are used to compare two values.
Logical Operators: The following logical operators are used in BASIC
NOT
AND
OR
6. What are the elements of QBASIC?
Answer: The elements of any programming language consist of the character set, the constants, the variables, the operators, and the statements.
Character Set: A character set is a set of symbols used to frame the various components of a program.
Constants: Constants or data are the values stored in a program, which do not change during program execution.
Variables: A variable is an area in computer memory and within a program that can be referred to by a name and whose value can be altered during program execution.
You may Like:
Computer science is one of the tough subjects. This includes the study of data structures, discrete mathematics, and cryptography. As a child, it is difficult to understand these new concepts. Proper guidance and practice can make a better understanding of the subjects. Students take more interest in science when they start to understand the concepts and complexity of the subject. For better preparation of the subject, a highly qualified and experienced tuition teacher can help more.
ReplyDelete