Practice Conditional Statements - 11.7 | 11. Python Programming | CBSE Class 11th AI (Artificial Intelligence)
K12 Students

Academics

AI-Powered learning for Grades 8–12, aligned with major Indian and international curricula.

Professionals

Professional Courses

Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.

Games

Interactive Games

Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.

Practice Questions

Test your understanding with targeted questions related to the topic.

Question 1

Easy

What will be printed if age is 20 and we have: 'if age > 18: print("Eligible to vote")'?

💡 Hint: Think about what the condition is checking.

Question 2

Easy

In the statement: 'if x < 5: print("Less than 5"); else: print("5 or more")', what will be printed when x is 3?

💡 Hint: Consider whether 3 is less than 5.

Practice 4 more questions and get performance evaluation

Interactive Quizzes

Engage in quick quizzes to reinforce what you've learned and check your comprehension.

Question 1

What keyword is used to create a conditional statement that checks a condition?

  • while
  • for
  • if

💡 Hint: Think of which keyword is related to conditions.

Question 2

True or False: An if statement can exist without an else block.

  • True
  • False

💡 Hint: Remember that optionally you can just check a single condition.

Solve 2 more questions and get performance evaluation

Challenge Problems

Push your limits with challenges.

Question 1

Write a Python program using conditional statements to categorize a number as positive, negative, or zero.

💡 Hint: Consider how to assess each category accurately.

Question 2

Create a program that checks the type of triangle based on the lengths of its three sides.

💡 Hint: Think about how to compare the values of the sides.

Challenge and get performance evaluation