HOLIDAY HOMEWORK - Winter Vacation 2015-16 XI CS
Q1. Find the output of the code given below : #include<iostream.h> void main( ) { int x = 3; switch(x) { case 1 : cout<< “One”; break; case 2 : cout<< “Two”; break; case 3 : cout<< “Three” case 4 : cout<< “Four”; case 5: cout<< “Five”; break; } } Q2. Find error in following code : #include<isotream.h> void main() { int a = 10; int b = 10; int c = 20; switch ( a ) { case b: cout<<”Hurray B”; break; case c: cout<<”Hurray C”; break; default: cout<<”Wrong code”; break; } } Q3. Write a program to find the roots of a quadratic equation. Q4. What do you mean by literals? What are the different kind of literals. Q5. Write the header file for the given function abs(), isdigit(), sqrt(), setw() Q6. Expand the following: i)CPU ii) ROM iii)MICR Q7. Write a program to find either given no is prime or not. Q8. Define the terms Polymorphism & Inheritance. Q9. Distinguish between...