ISC Class 11 Solved Python Programming Sample Questions 2026

Question 9 [3 + 2]
(i) A school has introduced a health programme for all its students which aims at promoting holistic physical development. As a part of the programme, the school wants to calculate BMI (Body Mass Index) of each student.

Write a program to input the name, weight in kilograms and height in meters of the students and to calculate the BMI based on the formula BMI = weight / height2.

The output should display the name, BMI value and status of the student based on WHO criteria as per the chart given below.

Status of the studentWHO criteria for BMI
Underweight< 18.5
Normalbetween 18.5 to 24.9
Overweightbetween 25 to 29.9
Obese>= 30
name = input('Enter your name: ')
height = float(input('Height in meters: '))
weight = float(input('Weight in kilograms: '))
bmi = weight / (height ** 2)
print('Student name:', name)
print('BMI value:', bmi)
if bmi < 18.5:
    print('Underweight')
elif bmi < 25:
    print('Normal')
elif bmi < 30:
    print('Overweight')
else:
    print('Obese')

(ii) What will be the output for the following part of code? Show the working.
x, y, z = 4, -6, 2
result = -(x + z) < y or x ** z < 10
print(result)

WORKING:
-(4 + 2) < -6 or 4 ** 2 < 10
-6 < -6 or 16 < 10
False or False
OUTPUT:
False

Question 10 [4 + 1]
(i) Write a program to input an integer. Check and display if it is a prime palindrome number or not. Prime number is a number which is exactly divisible only by itself and by number 1. Palindrome number is a number which remains the same on reversing its digits. Prime palindrome is a number which is prime as well as palindrome. Examples: 101, 131, 313.

num = int(input('Enter an integer: '))
f = 0
for i in range(1, num + 1):
    if num % i == 0:
        f += 1
rev = 0
temp = num
while temp > 0:
    rev = rev * 10 + temp % 10
    temp //= 10
if f == 2 and num == rev:
    print('Prime palindrome!')
else:
    print('Not a prime palindrome.')

(ii) Construct a for loop statement which will generate multiples of 5 in descending order from 50 to 5, in a single line.

for i in range(50, 5, -5):
    print(i, end = ' ')

Question 11 [5]
Answer the following questions:
(i) State one advantage and one challenge for IoT.
Task automation.

(ii) Explain Natural Language Processing (NLP)
Branch of AI that enables machines to understand, interpret and generate human language.

(iii) Give one example each of non-malicious spamming and malicious spamming.
Example of non-malicious spamming: A shopkeeper frequently sending new offers/discounts through emails.
Example of malicious programming: A fake email claiming to be from an e-commerce site, persuading to download malicious programs.

(iv) What is open-source software (OSS)?
Source code developed and maintained by open collaboration. These codes are freely available for use, that anyone can examine, modify and redistribute.

(v) Write the full form of GPL and explain its main feature.
GPL stands for General Public License.
Main feature: Any modified/derived version of OSS must also be released under the same GPL license. The source code must continue to remain open.

Leave a Reply

Your email address will not be published. Required fields are marked *