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/ 1
M. Sc.
Previous (Computer Science)
Object Oriented Programming Practical Questions
1. Write a program to print hello.
2. Write a program to print your bio data. 3. Write a program to perform addition of two numbers. 4. Write a program to find out area of rectangle. 5. Write a Program to find out area of circle. 6. Write a Program to find out simple interest. 7. Write a program to check whether a given number is less than 100. 8. Write a program to check whether a given number is even number. 9. Write a program to find out smallest among two numbers. 10. Write a program to check whether a given number is prime or not. 11. Write a program to find out greatest among three numbers. 12. Write a program to print first 10 natural numbers using looping statements. 13. Write a program to check whether a given number is odd number. 14. Write a program to print first 10 even numbers using while loop. 15. Write a program to print first 10 odd numbers in descending order. 16. Write a program to perform addition of first 10 natural numbers. 17. Write a program to print table of 5 up to 100 values. 18. Write a program to define and print an array of size 10. 19. Write a program to find sum of elements (value) of an array. 20. Write a program to perform addition of two arrays. 21. Write a program to print values of an array in reverse order. 22. Write a program to define and print two dimensional array of size 5×5. 23. Write a program to find out area of square using function. 24. Write a program to find out factorial of a number using recursion. 25. Write types of function definition and declaration. 26. Write a program to explain class and object. 27. Write a program to find out smallest among two numbers using class and object. 28. Write a program to perform swapping of two numbers using class and object. 29. Write a program to define constructor. 30. Define function overloading with a program. 31. Write types of inheritance. 32. Write a program to define simple inheritance.