IT Planet Class 6 Computer Chapter 4 Solution – Starting With Qbasic
IT Planet Class 6 Solution: IT Planet Class 6 Computer Chapter 4 Starting With Qbasic all Question Answer Solution by Expert Computer Teacher. Here Students can here all Questions Accurate Answers of Chapter Starting With Qbasic Solution.
Q1) Tick the (√) the correct answer :-
a) BASIC language was developed in the year
Ans i) 1963
b) These operators are used to compare two values of the same type.
Ans ii) Relational
c) A data value that does not change during the execution of a program.
Ans ii) Constants
d) The statement used to display the output on the screen
Ans iii) Print
e) In PRINT commands, the message is closed in
Ans i) Double Quotes
f) Running a program to get the output is called
Ans ii) Run
Q2) Fill in the blanks :-
a) BASIC was developed by John Kenny and Thomas Kurtz in 1963.
b) QBASIC stands for Quick Beginners All purpose Symbolic Instruction Code.
c) CLS command is used to clear the previous output on the output screen.
d) Remarks (REM) is a non- executable statement.
e) QBASIC was released by Microsoft in 1991.
f) The values given by LET statement cannot be changed at the time of execution.
g) REM stands for Remarks.
h) END statement is used to terminate the program.
Q3) Write ‘T’ for True and ‘F’ for False statements :-
a) QBASIC is a version of BASIC. T
b) BASIC is a Word Processor. F
c) BASIC programming automatically checks syntaxes. T
d) A single command is called a statement. T
e) Relational Operators are used to compare the two values of the same type. T
Q4) Very Short Answer Questions :-
a) Solution:
The full form of BASIC is Beginners All purpose Symbolic Instruction Code
b) Solution:
In the year 1963, John Kenny and Thomas Kurtz developed the BASIC language.
c) Solution:
The parts of the QBASIC window are Menu Bar, Program Window, Immediate Window, and Status Bar.
e) Solution:
Whenever we run the program, and we forget to clear the screen, many times it
happens that the old program remains on the screen and runs with the new programs. So it is necessary for us to clear the screen. We make use of CLS command, and if you will use the CLS command at the beginning of the program, will help you to clear the previous program from the output screen.
Q5) Long Answer Questions :-
a) Solution:
BASIC stands for Beginners for All-purpose Instruction Code. In the year 1963,John
Kenny and Thomas Kurtz developed the high level programming language (BASIC). If any beginner wants to learn the programming language, then he can learn/ get training of BASIC. GW-BASIC, POWER BASIC, Q BASIC are some of the different versions of BASIC programming language.
b) Solution:
The difference between Constants and Variables areas followed :-
i) Constants :- The data or the values (this data or values can be in letters, words,
numbers, and special characters) in the program that cannot be changed during
the execution of the program. Numeric constants and String constants are the two types of Constants.
ii) Variables: The variables is the name given to memory location that has a value
and this values can be changed. Numeric variables and string variables are two types of variables.
c) Solution:
This are the symbols by which the programmer can identify/ will show what type of
operation is it. In Q BASIC you can make use of many operations on constants and variables. Operators are always used in between two or more operands. For ex :- 3 – 2 Here 3 and 2 are called as operands whereas – sign is known as operator. There are three types of operators which in Q BASIC those are :-
i) Arithmetic Operators :- This operators are used for doing mathematical calculations/ operations like addition, subtraction, division, multiplication exponential etc. The different types of operators which are used while performing Arithmetic operations in
QBASIC which are :-
ii) Relational Operators :- With the help of this operators, the operations of comparison between two values are done. After doing comparison, the result may be true (nonzero) and false (zero). Below is the table, that shows the different types of operation which are used for performing relational operations in Q BASIC :-
iii) Logical Operators :- This operators are used to make a combination between two or more relational expressions. Calculations can be done to return to the specific/ single value. The single values can be true or false. And, or, Not are the examples of logical operators.
d) Solution:
i) REM :- REM stands for Remarks. When the program is executed/run, the REM
statement is rejected/ignored. This statement is always applied/used at the starting of the program, for giving title.
ii) INPUT :- When the program is running, the INPUT command is used to enter the values/ data that are given to the variable. With the help of INPUT command, the user can type the line of the text into the output window. The line is been read into the variable, when the user hits/strikes the Enter key.
Syntax :- INPUT “Message”, variable name
Example :-
iii) PRINT : PRINT command is used to show the text on the output screen. After the PRINT command, you must type the message that you want to make print in ” double quotes”. A blank line will be shown as output if you type only PRINT statement. The variable’s content will be printed as the output on the screen, when you type variable after the PRINT statement. By adding a semicolon between different things, you can print more than one thing on a line. If PRINT statement is followed by a semicolon, the
next thing will be printed on the same line.
Syntax PRINT [Expression list] [ ; ]
iv) Cls: Whenever we run the program, and we forget to clear the screen, many
times it happens that the old program remains on the screen and runs with the new programs. So it is necessary for us to clear the screen. We make use of CLS command, and if you will use the CLS command at the beginning of the program, will help you to clear the previous program from the output screen. Syntax CLS
v) GOTO :- With the help of this command, the user can go to any where/ any place in
the program and run the same program for many times. During the execution of the
program, where you to go (any place) in the program, you must specify the line with
number/label with the help of GOTO command. Syntax ; GOTO [line number or label]
For ex :-
PRINT “WELCOME”
GoTo Label
PRINT “To”
Label : PRINT “COMPUTERS”
Output will be WELCOME COMPUTERS (PRINT “To” is skipped)
vi) IF-THEN-ELSE :- To check/confirm with the condition whether it is True or False
then we make use of IF- THEN- ELSE command. If the condition is true the computer will accept the command that is given after THEN or if incase the condition is false then the computer will ignore/reject the command after THEN statement and will directly move towards to the ELSE part for its execution.
Syntax If (condition) then [COMMAND] Else [command]
Example : INPUT “Marks”;M
IF M>75 THEN PRINT “Admit in Science stream” ELSE PRINT “Admit in Commerce
stream”