Page 546 - Computer Science V2.0 Class 11
P. 546
Write a program that accepts a number and check whether the number is a palindrome or not. The program
should display an appropriate message accordingly.
32. Write a program that takes a list as an input and prints the largest and smallest numbers from the list.
O R
Write a program that accepts student data, stores it in a dictionary, and then searches for and displays the names
of students who have scored more than 75 marks.
33. Sara is a high school student who has been facing persistent online harassment from a classmate, Anil. Anil creates
fake social media profiles to spread false rumors about Sara, posts hurtful comments on her pictures, and sends
threatening messages. Sara is distressed and scared, affecting her mental well-being and academic performance.
(i) What elements characterize Anil's behavior as cyberbullying?
(ii) What legal consequences might Anil face for engaging in cyberbullying?
Section-E
34. Consider the code given below and write answer of the following questions:
n = ___________ # Statement 1
if _________: #Statement 2
print("Please enter a positive number")
elif _______: #Statement 3
print("You have entered 0")
else:
_______________ #Statement 4
c = a+b
a = b
b = c
print(b)
i. Write input statement to accept n number of terms—Statement 1
ii. Write if condition to check whether input is positive number or not—Statement 2
iii. Write if condition to check whether input is 0 or not—Statement 3
iv. Write for loop to iterate the values up to n terms - Statement 4
35. Kartik is learning python modules. Help him to complete the code:
import ____________ # Statement 1
text = "CLASS XI"
count = ____________ # Statement 2
index = 3
while text[index] != 'L':
print(text[index] + text[count] + '*')
count = count + 1
index = index - 1
I. Write the name of module required to be imported. – Statement 1
II. Write the random function to generate a random number between 0 and 3. – Statement 2
III. Write the possible output for the given code.
IV. What are the minimum and maximum values that can be generated from this module?
532 Touchpad Computer Science (Ver. 2.0)-XI

