Provided by www.YuvaJobs.com - CDAC Technical - Other C DAC PAPER ON 15th APRIL AT CHENNAI Hi i have attended CDAC exam of 15th april 2007 and the test comprises of1. Aptitude2. c/c++3. Javaaptitude is nothing it will be very easy, jus from R.S Agarvall example1.time and work problem2.train problem3.chain rule problem4.ratiosAnd in technical side it will be from c and c++? and im hosting some of the c and c++ question which i know1.Find which one of the following is correct?a) !(p||q) !p || !qb) !!!p = !pc) p && q  || r  p && ( q || r )d)nothing2. find the output of the following program?main(){static i = 3;pringf("%d",i--)return i >0 ? main():0;}ans:a)333b)321c)111d)error in the code3.find the output of the following program?main(){charp[] = "%d\n";p[1] = ,c,c;printf(p,65);}ans:a) 0b) ac) Ad) error in the code4.which will return integer?a) int*s (  )b) ( int* ) s(  )b) int ( *s ) (  )5.find the output of the following program?char*myfunc(char*ptr){ptr +=3;return (ptr);}int main(){char*x,*y;x="HELLO";y=myfunc(x);printf("y = %s\n",y);return 0;}ans:a) HELLOb) LLOc) LOd) L6.find the output of the following program?main(){int i = _1_abc(10);printf("%d\n",--i);}{int_1_abc(int i){return(++i);}ans:a)10b)11c)9d)error7.In order  to force derived class A to redefine a function a fun, void foo( )how should A declare foo( )?inline foo()virtual voidfoo( ) = 08. which operator cant be overloaded?ans:a) &;b) [ ] ;c) :: ;d) all the above;8.If u allocate it as,    int *ptr = new int [ 25];How will u deallocate it ?ans:a)   delete *pint;b)   delete [ ] pint;c)   delete pint [25];d)   all ;9. which virtual ?a) constant;b) static function;c) return;d) none;10. How many times "hello world" will be printed?void fun(int n){int i;for (i = 0; i < = n; i ++){fun(n-i);printf("hello world");}}ans:a) infiniteb)zeroc)oned)n times Provided by www.YuvaJobs.com - CDAC Technical - Other