Please refer to Conditional and Iterative Statements Class 11 Informatics Practices Exam Questions provided below. These questions and answers for Class 11 Informatics Practices have been designed based on the past trend of questions and important topics in your class 11 Informatics Practices books. You should go through all Class 11 Informatics Practices Important Questions provided by our teachers which will help you to get more marks in upcoming exams.
Class 11 Informatics Practices Exam Questions Conditional and Iterative Statements
Class 11 Informatics Practices students should read and understand the important questions and answers provided below for Conditional and Iterative Statements which will help them to understand all important and difficult topics.
Short Answer Type Questions
Q.1 What a range() function does? Give an example.
Ans: The range() function returns a sequence of numbers, starting from 0 by default, and increments by 1 (by default), and ends at a specified number. its syntax is range(start, stop, step) e.g.
Q.2 What are loops in Python? How many types of loop are there in Python?
Ans: Loops are iteration constructs in Python. Iteration means repetition of a set of statements depending upon a condition test. Loops has three basic elements within it to repeat the statements –
- Initialization (Start)
- Check Condition (Stop)
- Updation (Step)
Python provide two types of loop
(i) Conditional Loop while( (Condition based loop)
(ii) Counting loop for (loop for a given number of times).
Q.3 What is the syntax of if-elif statement in Python?
Ans: The syntax of if-elif statement in python is as follows:
#code-block of statements when condition1 is true
#code-block of statements when condition2 is true
#code-block of statements when condition3 is true
#code-block of statements when all above conditions are false.
Q.4 What are jump statements in Python? Name jump statements with example.
Ans: Python offers two jump statements to be used with in loops to jump out of loop-iterations. These are break and continue statements.
Skill Based Questions
We hope you liked the above provided Conditional and Iterative Statements Class 11 Informatics Practices Exam Questions. If you have any further questions please put them in the comments section below so that our teachers can provide you an answer.