Sunday 13 March 2011

assignment questions


ASSIGNMENT QUESTIONS FOR 2ND YEAR(2011)

(1.)   wap to display the given number is prime number or not?
(2.)   Wap to reverse of a given number using array
(3.)   Wap to swap two values using reference variable and also use third variable.
(4.)   Wap to display “good morning” using inline function.
(5.)   List out the escape sequence.
(6.)   List out the keywords.
(7.)   Wap to display addition, subtraction, multiplication of a given number
(8.)   Wap to display largest of given number
(9.)   Wap to given string is palindrome or not
(10.) Advantages of cpp
(11.)  Write the difference between a and cpp
(12.)  What is the difference between classes , structures, union
(13.) What is the difference between classes and object
(14.) Wap to find total, avg of 3 subjects using classes.
(15.) Wap to find largest of a given numer using function overloading
(16.) Write any program using structures
(17.) Wap illustrating structures
(18.) Wap to find subject marks of a student using classes
(19.) Write a cpp program to find sum of n natural numbers using classes
(20.)  What is the difference between member function and constructor
(21.) Wap to display sum of ‘n’ natural number by using parameterized constructor
(22.) Wap by using add two objects by using ‘pass by Reference’.
(23.)Write a program to display following format                                                                                                                                                                                                                 *                                                                                                                                                **                                                                                        
       ***
(24.) Wap to overload unary pre++, pre--,-post++,post—and unary –(minus).
(25.) Wap to overload binary + operator using operator overloading
(26.)  Wap to overload two complex objects using operator overloading
(27.)  Wap to overload binary –(minus) to subtract the two complext objects.
(28.)  Wap to overload binary +, binary- , *,/ on rational objects.
(29.)   Explain about OOP’S properties

No comments:

Post a Comment