Practice Conditional Statements - 8.2.2.1 | 8. Statements and Scope | ICSE Class 11 Computer Applications
K12 Students

Academics

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

Academics
Professionals

Professional Courses

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

Professional Courses
Games

Interactive Games

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

games

Practice Questions

Test your understanding with targeted questions related to the topic.

Question 1

Easy

What will be the output if int age = 16; if (age >= 18) { System.out.println("Adult"); } else { System.out.println("Minor"); }?

πŸ’‘ Hint: Think about the value of age and its comparison.

Question 2

Easy

What is the basic syntax of an if statement?

πŸ’‘ Hint: Remember the structure of an if statement.

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

Which of the following statements is correct about the if statement?

  • It can only have one branch
  • It can have multiple branches
  • It cannot execute code

πŸ’‘ Hint: Consider how multiple conditions can be checked.

Question 2

True or False: The switch statement requires at least one case to be defined.

  • True
  • False

πŸ’‘ Hint: Think about what happens if no cases are provided.

Solve 2 more questions and get performance evaluation

Challenge Problems

Push your limits with challenges.

Question 1

Write a program that determines a grade based on a score using if-else statements. The grading scale is: A (90-100), B (80-89), C (70-79), D (60-69), F (below 60).

πŸ’‘ Hint: Remember to check ranges correctly for each grade.

Question 2

Create a program that uses a switch statement to display the number of days in a month. Ensure to handle February correctly for leap years.

πŸ’‘ Hint: Think about how leap years affect February's day count.

Challenge and get performance evaluation