Wednesday, January 6, 2021

Class-6 Computer Chapter-9 QB64 Statements

                          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]

 2.the input programs can have numeric as well as alphanumeric variables –[True].

 3. An input statement can have a list of variables -[True].

 4. You can print only 5 values in a line-[True].


 
D. Answer the following questions:-

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.

 Que-2 Write the use of print command using tab function?

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.

 Que-3 Give the use of assignment statement?

Ans-3 The LET statement of the assignment assigns a value to a variable. Its use is optional.

 Que-4 Write the difference between print statement with comma and semi column?

            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

No comments:

Post a Comment

Thank your for your valuable responce.
Mrfarooqui