Revision Lists
Revision Lists
PALAPPURAM
COMPUTER SCIENCE
REVISION QUESTION- CHAPTER LIST
1. Write a program to input a list of numbers .Ask the user to enter a number, then remove all
occurrence of the given number from the list.
2. Write a program to initialize a list of numbers store the numbers which are divisible by 4 in
to another list D.
3. Write a program to input the names of some books in to q list book. Display the name of the
book with maximum number of characters.
4. Write a program to input list of with your marks in 5 subjects. Display the message “success
“if you score more than 40 in all subjects. And display “to be imported “if you have at least
one score list than 40.
5. Let a program to change the list by replaying the numbers divisible by 4 half of the numbers
and others by double of that numbers.
6. Write a program to create a list with first n Fibonacci numbers. Where n is the number of
elements.
7. Write a program to initialise a list with 8 numbers. Increment all even elements by 10 and
decrement all odd elements by 10.
8. Write a program to initialise a list with 8 numbers. Increment all elements at even index by 5
and decrement elements at odd index by 5.
9. Write a program to input a list OL with n integers. Create a new list NL with elements from
OL which are in between 10 and 25.
10. Write a program to input a list of numbers.
i. Calculate and display sum of even and odd elements
ii. Calculate and display sum of elements at even and odd index separately.