|
1. What is a compiler, interpreter? 2. Write a program to accept a string and display it in an output file 3. Why does the compile time and runtime error occur? 4. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object; calling of that virtual method will result in which method being called? a. Base method b. Derived method c. Error d. None of these 5. Program to sort an array of data 6. what is the full form of V.H.D.L ? 7. A function even_odd_difference() passes the array of elements.Write a program to calculate the difference of the two sums of which one sum adds the elements of odd ones and another adds the elements of even ones. 8. Write a program in 10 lines to display the below pattern 1 12 123 1234 12345 123456 1234567 12345678 123456789 9. On a diagram of a camp site drawn to a scale of 1:120, the size of the building is 36/5 inches. The actual length in feet of this building is: 10. On a rectangular lot 50 feet by 120 feet a man who walks 5 feet per second may cross diagonally from one corner to the opposite corner or walk along the perimeter of the lot. How much time in seconds does he save by walking diagonally? 11. Explain primary key & foreign key 12. A 64 pound mixture of sand and gravel is 25% sand. How many pounds of sand must be added to produce a mixture that is 40% gravel? 13. A pipe can fill a swimming pool in h hours. What part of the pool is filled in x hours? 14. What is the diff b/w String and StringBuffer class? 15. What is polymorphism?
|