The document outlines a series of programming tasks for Class XI students at Kendriya Vidyalaya INS Dronacharya, Kochi, for the academic year 2022-2023. It includes exercises on input/output operations, mathematical computations, string manipulations, and data structures using Python. The tasks aim to enhance students' programming skills through practical applications and problem-solving.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
18 views
xi record works with 46 programs
The document outlines a series of programming tasks for Class XI students at Kendriya Vidyalaya INS Dronacharya, Kochi, for the academic year 2022-2023. It includes exercises on input/output operations, mathematical computations, string manipulations, and data structures using Python. The tasks aim to enhance students' programming skills through practical applications and problem-solving.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3
KENDRIYA VIDYALAYA INS DRONACHARYA, KOCHI
CLASS XI –– RECORD WORKS 2022 - 2023
1. Input your name and welcome message and display it appropriately to wish you. 2. Input two numbers and display the larger & smaller number. 3. Input three numbers and display the largest & smallest number. 4. Generate the following patterns using nested loop. Pattern-1 Pattern-2 Pattern-3 * 12345 A ** 1234 AB *** 123 ABC **** 12 ABCD ***** 1 ABCDE 5. Write a program to input the value of x and n and print the sum of the following series: o 1+x+x2+x3+x4+. ..........xn o 1-x+x2-x3+x4 .................................xn o x - x2 + x3 - x4 + ............xn 2 3 4 n o x + x2 - x3 + x4 ...................................xn 2! 3! 4! n! 6. Determine whether a number is a perfect number, an Armstrong number or a palindrome. 7. Input a number and check if the number is a prime or composite number. 8. Display the N terms of a Fibonacci series. 9. Compute the greatest common divisor and least common multiple of two integers. 10. Count and display the number of vowels, consonants, uppercase, lowercase characters in string. 11. Input a string and determine whether it is a palindrome or not; convert the case of characters in a string ( Toggle Case ). 12. Accept a Number and Reverse it. Also check whether a given number is a Palindrome or not 13. Accept a Number and Display the Multiplication Table of a Number 14. To print the words starting with a particular alphabet in a user entered string. 15. To print the number of occurrences of a given alphabet in a given string. 16. Accept a String and count the alphabets and numbers in it separately. 17. Accept a Number and Display the Factors of it. 18. To find the factorial of an accepted Number 19. Write a Python Program to find the largest/smallest number in a list. 20. Write a Python Program to find the largest/smallest number in a tuple. 21. Write a Python Program to Input a list of numbers and swap elements at the even location with the elements at the odd location. 22. Write a Python Program to Input a list of elements, search for a given element in the list. 23. Write a Python Program to Input a tuple of elements, search for a given element in the tuple. 24. Write a Python Program to Create a dictionary with the roll number, name and marks of n students in a class and display the names of students who have scored marks above 75. 25. Write a Python Program to accept a list of elements and find the count of Odd Numbers and Even Numbers / elements in a List. 26. Write a Python Program to accept a list of elements and find the count the frequency of each Numbers / elements in a List. 27. Write a Python program to accept a tuple and find the sum of all elements in the tuple. 28. Write a Python Program to accept a tuple and delete an element from the tuple. 29. Write a Python Program to accept a tuple and show the count of a search number. 30. Write a Python Program to accept the Record of a student and display the information. 31. Write a menu driven Python Program to create manipulate dictionary containing names of states as keys and Capitals as Values. The following options should be manipulated on Dictionary. 1. Accept a Dictionary with few states and Capitals. 2. Append a Dictionary with a state and its Capital. 3. Display the Dictionary. 4. Modify a Dictionary with the Changed Capital. 5. Search for a State and display its Capital. 6. Delete a state and its Capital. 7. Exit. 32. Write the Python Program to accept a List of elements and Multiply the Odd elements by 7 and divide the even Elements by 7and take the quotient. 33. Write the Python Program to accept the List of elements and insert a number into the List and arrange the list elements in sorted order. 34. Write the Python Program to accept the List / Tuple elements and find the second largest element in the List. 35. Write the Python Program to accept the List of elements and delete all the occurrences of an element from the List. 36. Write the Python Program to accept the List / Tuple of elements and display all Prime numbers in the List. 37. Write the Python Program to accept the List / Tuple of elements and display all Armstrong Numbers in the List. ( Armstrong Numbers are those numbers whose sum of cubes of its digits is the number itself ) 38. Write the Python Program to accept two Lists of elements and Merge/concatenate/join them. 39. Write the Python Program to calculate the mean of a given List / Tuple of numbers/elements. 40. Write the Python Program to find the frequencies of all elements of a List / Tuple. 41. Write the Python Program to input two lists and display the maximum element from the elements of both the list combined, along with its index in its list. 42. Write the Python Program to find the sum of all elements in a List / Tuple. 43. Write the Python Program to accept a List of elements and create two new lists, one having all positive numbers and the other having all negative numbers from the given list. Print all three lists. 44. Write a Python Program to read a List / Tuple of integers and find the median. (The Median Value of a list of values is the middle one when they are arranged in order. If there are two middle values then take the average.) 45. Write the Python Program to read a list of elements. Modify this list so that it does not contain any duplicate elements. i.e all elements occurring multiple times in the list should appear only once. 46. Write the Python Program to reverse a list of integers.