Skip to content
Beginner Level
- Check whether a number is positive.
- Check whether a number is negative.
- Check whether a number is zero.
- Check whether a number is even.
- Check whether a number is odd.
- Check whether a person is eligible to vote (age >= 18).
- Check whether a student has passed (marks >= 35).
- Check whether a number is divisible by 5.
- Check whether a number is divisible by 10.
- Check whether a character is an uppercase letter.
- Check whether a character is a lowercase letter.
- Check whether a character is a vowel.
- Check whether a character is a consonant.
- Check whether a number is greater than 100.
- Check whether a person is eligible for a driving license (age >= 18).
Intermediate Level
- Check whether a number is divisible by both 3 and 5.
- Find the greater of two numbers.
- Find the smaller of two numbers.
- Check whether two numbers are equal.
- Check whether three numbers are all equal.
- Find the largest of three numbers.
- Find the smallest of three numbers.
- Check whether a year is a leap year.
- Check whether a number is a multiple of 7.
- Check whether a salary is greater than ₹50,000.
- Check whether a password length is at least 8 characters.
- Check whether a person is a teenager (age between 13 and 19).
- Check whether a number is within the range of 1 to 100.
- Check whether a product price is eligible for free shipping (price >= ₹500).
- Check whether a temperature is below the freezing point.
Advanced Beginner Level
- Assign a grade based on marks.
- Check whether a number is a three-digit number.
- Check whether a number is a four-digit number.
- Check whether a number is positive and even.
- Check whether a person can enter a movie (age >= 18 and has a ticket).
- Check whether a username is
"admin".
- Check whether a user is logged in.
- Check whether an email contains
"@".
- Check whether a mobile number has exactly 10 digits.
- Check whether a number is divisible by either 2 or 3.
Real-World Practice
- Check whether an account balance is sufficient for withdrawal.
- Check whether an OTP entered is correct.
- Check whether a coupon code is valid.
- Check whether a shopping cart has items.
- Check whether a student has attendance greater than or equal to 75%.
- Check whether a user is eligible for a senior citizen discount (age >= 60).
- Check whether a customer gets a discount (purchase amount > ₹2000).
- Check whether the current time is AM or PM.
- Check whether a file size exceeds 5 MB.
- Check whether a string is empty.
Challenge Exercises
- Check whether a number is divisible by 2, 3, and 5.
- Check whether a person is eligible for a loan (age and salary conditions).
- Check whether a password is strong (length, uppercase, lowercase, number, special character).
- Check whether a student passed all subjects.
- Check whether a user can access an admin panel based on role.
- Check whether a number lies between two given numbers.
- Check whether today’s day is a weekend.
- Check whether an item is in stock before placing an order.
- Check whether a vehicle is eligible for pollution certification based on its age.
- Check whether a customer qualifies for free delivery based on location and order amount.