|
1. struct s {int x, float y}s1={24,45.0}; union u { int x, float y} u1=(union u)s1; printf("%d,%f,u1.x,u1.y); 2. What is encapsulation. 3. #define dprintf(expr) printf(#expr="%d",exp); main() {int x=7, y=3; dprintf(x/y);} 4. 1, 3, 7, 9, 19, ? 5. #define var(a,b) (a*b)/(a-b) main() { int a=20, b=10,c c=var(a+4,b-2); printf("%d",c) } 6. #define var(a,f,g,) #define ........... #define .............. ,, ,, ,, ,, main() { #if def cat printf("cat"); #else printf("tiger"); } 7. int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d,%d,%d,%d,i,j,k,l,m); 8. jobs Men Women IT 1,34,000 1,20,567 Engineer 2,45,984 1,45,000 Doctors 45,000 24,000 ,, ,, ,, Unemployed 3,45,000 4,89,000 Total .,, ,, Q1. If The percentage of women in IT increases by 10% per year. What will be percentage of women in IT after 3 years. Q2. What is the percentage of women in IT? 9. 1, 4, 27, 256, ? 10. A trader buy a chair for Rs.600 and sells it for Rs. 765 at credit of 4 months. Reckoning money worth 6%p.a., his gain is ? 11. What is difference between abstract class and interface 12. What will be the remainder if 91+92+93+94+................+99 is divided by 6? 13. What is virtual function 15. How we provide security to the class members. 16. What is the difference between Object Based Language and Object Oriented Language 17. Why C++ is not purely Object Oriented Language
|