EVENTS CONVENT HIGH SCHOOL
Class-6
CHAPTER-9
QB64 STATEMENTS
A.Tick the correct option:
1.
____Statement can be used for controlling column location.
a.Tab(√) b. print tab c.LET
2.
_____Statement terminates the further execution of program.
a.LET bINPUT(√) c. PRINT
3. IN
QB64, when an item is enclosed in______ brackets, it indicates that is
optional.
a.Square Brackets(√) b. curly brackets c.rounded
brackets.
4.Print
with, comma statement can display at the most_____ values in a line.
a.Four b.five(√) c.three.
B. Fill in the blanks:-
1.The
input statement prints a question mark on the screen.
2.
The TAB statement print tables type of results.
3. Input
statement tells the computer to wait for the user to enter data.
4.The
input program can have both numeric and alphanumeric variables
5. CLS
command clear all the screen contents.
C. Write T for True and F for False statement:-
1.
The input statement for the assignment statement assign a value to a variable- [False]
Que-1
What is the use of input statement?
Ans-1The
INPUT statement used to take a data item from the user and then store it in a
variable.
Ans-2
It is used to move the position of the
print to the column specified by its argument. It is mostly used for printing
tables. Syntax:PRINT TAB(c): “Constant/Variable/Expression.
Ans-3
The LET statement of the assignment assigns a value to a variable. Its use is
optional.
Give an example of print with
comma command?
Ans-4
Print with semi colon(;) displays
the variable one after another without
leaving any space in between.
Syntax: Print (Variable); (Variable); (Variable); ……..
LET A$ = “I”
LET B$= “LIVE”
LET C$ = “IN”
LET D$ = “INDIA”
PRINT A$; B$; C$; D$
Print with Comma (,) It displays the values one after the other with a lot of spaces
in between (usually 14) It can print only five values in a line.
Syntax: Print(Variable), (variable) ……
LET A= 40
LET B= 60
C = A+ B
Print A, B, “SUM”, C
END