Questionbank Pps
Questionbank Pps
*
**
***
** * *
*
**
***
** * *
10. Write a pseudo code and program to print the reverse of a given integer
number
11. Write Python program to check if a given number is even or odd.
15. Prepare a C array and Python list that contain the same set of integers.
Describe how to access and modify elements in each data structure.
16.What is Array ? How to use multidimensional arrays in C.
19. Write a Python function that takes a list of numbers and returns a new list
with each number squared.
22. Write a python func on for checks whether a given string is a palindrome.
g) a= [9, 8, 7, 6, 5, 4]
print ( a[1 : 4] )
print( a[:3])
print(a[2:3])
27. Write a python program to create a list and add all the items in a list.
28. Write a Python func on that takes a number as a parameter and check the
number is prime or not.
29. Write a Python program to handle a Zero Division Error exception when
dividing a number by zero.
30. Write a python program to swap two variables values with and without
using third variables