Digital Learning

Monday, January 2, 2023

CBSE Computer-Science Class-VII Exercise-9(2022-23):

Computer Science
Class-VII
Chapter-9 BASIC Statements

A. Fill in the blanks:
1. ______________ statement stores the data in the variable.
Answer: LET

2. String variables can be combined together or can be combined with _.
Answer: String Constants

3. The useful format of the REM statement is __________.
Answer: REM text

4. Numeric variables are used with _____________.
Answer: Numeric expressions

5. Comments can also be added to other statements after putting an __.
Answer: Apostrophe

B. Match the following:
1. Assignment statement                  a. READ AND INPUT
2. Input statement                             b. PRINT
3. Output statement                          c. IF-THEN-ELSE
4. Loop statement                              d. LET
5. Conditional statement                  e. FOR-NEXT WHILE-WEND
Answer: 
1.         d.
2.         a.
3.         b.
4.         e.
5.         c.

C. Tick the correct option:
1. This statement is used to assign a value or data to a variable.
a. PRINT statement                        b. LET statement
Answer: LET statement

2. This statement will print constants, variables or expresssions.
a. PRINT statement                        b. INPUT statement
Answer: PRINT statement

3. In a LET statement, it is a variable name of the numeric or string type.
a. VAR                                                  b. WAR
Answer: Var

4. This statement is used to request data items from the user terminal.
a. Output statement                       b. Input statement
Answer: Input statement

5. The general format of IF...... THEN statement is
a. IF< CONDITION>THEN<STATEMENT>
b. IF THEN
Answer: IF< CONDITION>THEN<STATEMENT>

6. If you want more choices in the IF......THEN statement, then you can use the 
a. SIFEL keyword                            b. ELSEIF keyword
Answer: ELSEIF keyword

7. This command is used to clear the screen
a. CLS                                                   b. BLANK
Answer: CLS

D. Write whether true or false:
1. String variables are used with string ariables.
Answer: True

2. The INPUT statement has options to format the output on screen.
Answer: False

3. CLS command makes the screen completely blank.
Answer: True

4. In QBASIC, the IF....THEN statement has two forms.
Answer: True

5. The REM statement is used to write comments in the body of the program.
Answer: True

6. FOR....NEXT statement is an assignment statement.
Answer: False

E. Answer the following questions:
1. Which BASIC statements are discussed in the chapter?
Answer: BASIC statements are discussed in this chapter are as follows:
1. LET statement
2. PRINT statement
3. INPUT statement
4. REM statement
5. CONTROL statement

2. What is the used of LET statement? Write its general format.
Answer: The LET statement or assignment statement is used to assign a value or dat to a variable.
the general format of this statement is :
LET Var=Var/Data/Expression

3. How can you display the output on-screen? Write the general format of useful statement.
Answer: The PRINT statement is used to display the output on screen. This statement will print constants, variables or expressions. The general format or syntax of this statement is :
PRINT list of variables/constants/expressions

4. What is the effect of comma in PRINT statement?
Answer: In case, more than one value is printed, they may be separated by either a comma or a semicolon. If the comma is used, the value will be spearated with more space, where as the semicolon will leave just one space.

5. How can you request data items from the user terminal? Give an example.
Answer: INPUT statement is used to request data items from the user terminal. As each value is typed in, it is assigned to the appropriate variable. Thus, if the statement,
INPUT A

6. What is the use of control statements?
Answer: Sometimes it becomes necessary to change the order of execution of the statements, or to repeat a particular series of statements until certain specified conditions are met. This facility is provided by means of control statements.

No comments:

Post a Comment