Header Ads

Object Oriented Programming With C++ (sem 4) UNIT 1



Object Oriented Programming With C++

1) How inline functions are different normal functions? Explain with suitable example.

2) What is call by value and call by reference? Explain.

3) Write C++ program which accepts values from keyboard and perform addition and display result.
4) What is Array? Explain Single/one dimensional array with example.

5) Explain function prototype with example.
6) What is identifier? Write rules for naming identifiers in C++.

7)Write a C++ program to print natural numbers from 1 to 10.
8)Explain relational operator with suitable example.

9)Write syntax and purpose of user defined function with suitable example.
10) Define manipulator with example.

11) Define function. What is function prototyping? Explain with suitable example.
12) Write a program in C++ to check given number is prime or not.

13) Explain Inline functions. How they are different from normal member functions.
14) Explain with suitable example. i) Call by value. ii) Call by reference.

15) Explain one dimensional array with example.
16) What is function overloading? Write C++ program to demonstrate "Sum ( )" function overload for.
              i) Two integer arguments.
             ii) Two real arguments.

17) What are tokens? Explain each of them with example.
18) What is array? Explain types of arrays with example.

19) Explain console I/O Operation in C++.
20)Write a C++ program to calculate a factorial of a given number.

21) Explain the control structure in detail? Write a program to reverse a number & check     whether           number is palindrome or not.
22) What do you mean by function prototyping? Why it is necessary? Explain with example.

23) Define argument? Explain default argument with an example.
24) Explain the following.
           i) Manipulators.
          ii) Enumeration.

25) Write a short note on Inline function.
26) Explain the concept of default argument with suitable example.

27)Write a C++ program that will accept temperature in celsius and display it in Fahrenheit
28)Explain any three features of object oriented programming supported by C++.

29) What is ternary operator ? Write a program in C++ to find largest of three numbers using ternary operator.
30) Explain the limitations of inline function.

31) Write a program to find the sum of even and odd numbers among Ist N natural numbers.
32) What are strings? Are they standard or derived data type? Write an interactive program to check whether a given string is palindrome or not. What happens if the end-of string character is missing?

33) Write a program to compute the sin (x) series value of a given number x using the series Sin (x) = 1 – x3 /3!+x5 /5!-x7 /7!+….
34) Develop a function to sort numbers using sequential sort technique. Write a driver function also. 

 35) What is function prototyping? Write its importance with suitable example.   

Unit 2 Unit 3 Unit 4

No comments

Powered by Blogger.