Page 1 :
Sanskar Global School,Pratapgarh, Chapter 8- CONDITIONAL STATEMENTS IN QBASIC, Class-6"", , Subject-Computer, Session 2020-21, , Note: Copy it to your fair copy., , C. Short Answer_Type Questions:, , Ql. Mention two control statements., Ans.1 Two control statements are Loop and Conditional statements. They help for, controlling the sequence of program’s execution., , Q2, Mention any three conditional statements., Ans2. Three conditional statements are: IF-THEN, IF-THEN-ELSE, IF-ELSEIF-ELSE., , , , Q3. Write the syntax of IF THEN Statement., Ans3._ IF <condition> THEN (if the condition is true then statements are executed), <Statements>, END IF, D. Long Answer_Type Questions:, , Q1. What do you mean by conditional statements?, , Ans1, Conditional statements specifies whether a particular task will be performed or not, on the basis of a specific condition. The program transfers control for executing the, statements based on whether the result of condition is true or false. These statements use, relational operators., , Q2. Define IF THEN ELSE statement., , Ans2. If Then Else is a conditional statement. It is also called bi-directional decision, making statement. If the condition is true then the statements in IF block are executed. If, the condition is false, then the statements following ELSE block are executed., , Q3. When do we use IF ELSE IF ELSE statement?, Ans3._IF-ELSEIF-ELSE statement is used when we want to specify some additional, conditions in the IF-THEN statement, the IF-ELSEIF-ELSE statement is used., , Syntax:, , IF <condition 1> THEN <Statements> (if the condition 1 is true statement is executed), ELSEIF <condition 2> THEN <Statements>, , (statements to be executed if condition 1 is false and condition 2 is true)