Prolog Practical List Section B


  1. Write a program to display whole list
  2. Write a program to display first element of a list. (Assume that there is at least one element in the list.)
  3. Write a program to display last element of a list. Assume that there is at least one element in the list.
  4. Write a program to count number of elements in list
  5. Write a program to display elements up to specified index of a list
  6. Write a program to display elements from specified index to the end of a list
  7. Write a program to display specified index element of a list
  8. Write a program to display elements of a list from specified index1 to specified index2.
  9. Write a program to count elements of a list which are odd
  10. Write a program to count elements of a list which are even
  11. Write a program to count odd and even elements of a list
  12. Write a program to display elements of a list which are odd
  13. Write a program to check if the specified element is a member of the specified list or not
  14. Write a program to find Maximum number from the List.
  15. Write a program to Add two lists, only if number of elements are in both the List are same.
  16. Write a program to Copy one List to Another.
  17. Write a program to Copy selected portion of one List to Another.
  18. Write a program to append one List to another.
  19. Write a program to append selected portion of one List to another.
  20. Write a program to delete specified index element from the list.
  21. Write a program to delete specified element of a list, if it exists. If not so or List is empty, display appropriate message.
  22. Write a program to find intersection of two lists.
  23. Write a program to find union of two lists.
  24. Write a program to rotate the list on the left direction.(Empty list can’t be rotated so appropriate message should be displayed)
  25. Write a program to rotate the list on the right direction.(Empty list can’t be rotated so appropriate message should be displayed)
  26. Write a program to find difference of two lists.
  27. Write a program to find symmetric difference of two lists.
  28. Write a program to convert the list in unique list.


Practical Program will be upload on upcoming blog....

No comments:

Post a Comment