Topics- Conditional statements: if, if-else, if-elif-else, flowcharts, simple programs: e.g.: absolute value, sort 3 numbers and divisibility of a number.

1. Which conditional statement is used to execute a block of code only if a specific condition is true?

 
 
 
 

2. What is the purpose of the if-else statement?

 
 
 
 

3. What is the purpose of the if-elif-else statement?

 
 
 
 

4. What is a flowchart?

 
 
 
 

5. What are flowcharts used for?

 
 
 
 

6. Which symbol is used in a flowchart to represent a process or operation?

 
 
 
 

7. Which symbol is used in a flowchart to represent a decision or condition?

 
 
 
 

8. Which of the following is a simple program that finds the absolute value of a number?

 
 
 
 

9. Which of the following is a simple program that sorts three numbers in ascending order?

 
 
 
 

10. Which of the following is a simple program that checks if a number is divisible by another number?

 
 
 
 

11. What is the output of the program that checks if a number is divisible by 5?

 
 
 
 

12. What is the output of the program that finds the absolute value of a number?

 
 
 
 

13. What is the output of the program that sorts three numbers in ascending order?

 
 
 
 

14. Which operator is used to check if two values are equal in a conditional statement?

 
 
 
 

15. Which operator is used to check if two values are not equal in a conditional statement?

 
 
 
 

By cbsepython

A complete solution for the students of class 9 to 12 having subject Information Technology (402), Computer Science (083). Explore our website for all the useful content as Topic wise notes, Solved QNA, MCQs, Projects and Quiz related to the latest syllabus.