Computer Science
Class-VI
Chapter-8 Introduction of Qbasic
A. Tick the correct answer:
1. Which among the following is a mathematical operator?
a. and b. ^ c. ;
Answer: ^
2. Which among the following stands for comment line?
a. @ b. # c. '
Answer: '
3. What does (-) sign represent?
a. multiple numbers b. negative numbers c. positive numbers
Answer: Negative numbers
4. How many characters can a variable contain?
a. 50 b. 30 c. 40
Answer: 40
5. Which among the following is used for representing number on line?
a. variable b. number line c. constants
Answer: Number line
B. Fill in the blanks with the help of words given in the box:
(Operator, String, Colon, QBASIC, Immediate Mode)
1. ........................ is not a case sensitive language.
Answer: QBASIC
2. In ......................... simple statements are written and executed immediately.
Answer: Immediate Mode
3. ........................ are the symbols used to perfom different arithmetic and logical operations.
Answer: Operators
4. ..................... separates multiple statements in a single line.
Answer: Colon
5. Alphanumeric constants are also known as .................. constants.
Answer: Number line
C. Write True or false:
1. QBASIC is a highly portable language.
Answer: True
2. F5 key is used to execute a program.
Answer: True
3. @ is a special character.
Answer: True
4. Alphabet letters are used to perform logical operations.
Answer: True
5. Constants are of three types.
Answer: False
D. Match the following:
Column A Column B
1. $ i. Controls prints
2. ; ii. Store alphabet, words and special characters
3. Numeric Constants iii. Special character
4. String Variables iv. Consist of positive and negative numbers
Answer:
1. iii.
2. i.
3. iv.
4. ii.
E. Answer the following questions:
1. Define QBASIC, write its basic features. Also wirte the various steps to start QBASIC.
Answer: QBASIC is a high level programming language developed by Microsoft.
Features of QBASIC:
* Wide variety of library functions
* Flexible language
* Highly portable language
* Rich family of operators
* User friendly language.
To start QBASIC follow the given steps:
1. Double click on QBASIC icon to start it.
2. Click on the escape key to clear the welcome dialog box.
3. The QBASIC screen will appear.
2. Differentiate between program mode and immediate mode.
Answer:
Program Mode: In program mode, you type the program and press F5 key to execute the program.
Immediate Mode: In this mode, simple statements are written and are executed immediately as you press enter key.
3. Briefly explain the different types of operators.
Answer: Operators are the symbols, which are used to perform different arithmetical and logical operations.
* Mathematical operators
* Relational operators
* Logical operators
4. What is constant? Define its different types.
Answer: Data consists of a set of numbers, alphabet, characters, words etc. It is divided into two parts:
1. Numeric Constants comprise digits, both positive and negative.
2. Alphanumeric constants/string constants consist of the data enclosed within double quotes.
5. Why do we mention number line in a QBASIC program?
Answer: We use line numbers while writing a program to tell the computer which line number has to be executed or which line number has to be ignored while executing a program.
Some Other Links:
No comments:
Post a Comment