# Placement Papers - CDAC

## Why CDAC Placement Papers?

Learn and practice the placement papers of CDAC and find out how much you score before you appear for your next interview and written test.

## Where can I get CDAC Placement Papers with Answers?

IndiaBIX provides you lots of fully solved CDAC Placement Papers with answers. You can easily solve all kind of placement test papers by practicing the exercises given below.

## How to solve CDAC Placement Papers?

You can easily solve all kind of questions by practicing the following exercises.

### C DAC | Technical Question Paper on C++ - 15th APRIL AT CHENNAI

Posted By : Johny Rating : +68, -22

C DAC | Technical Question Paper on C++  - 15th APRIL AT CHENNAI

CDAC exam of 15th april 2007 and the test comprises of
1. Aptitude
2. c/c++
3. Java

Aptitude is nothing it will be very easy, jus from R.S Agarvall example
1.Time and work problem
2.Train problem
3.Thain rule problem
4.Tatios

And in technical side it will be from c and c++? and im hosting some of the c      and c++ question which i know
1.Find which one of the following is correct?
a) !(p||q) !p || !q
b) !!!p = !p
c) p && q || r p && ( q || r )
d) nothing

2. find the output of the following program?
main(){static i = 3;pringf("%d",i--)return i >0 ? main():0;}
ANS
a)333
b)321
c)111
d)error in the code

3.find the output of the following program?main(){charp[] = "%d
";p[1] =    'c'c;printf(p,65);}
ANS
a) 0
b) a
c) A
d) error in the code

4.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
",y);return 0;}
ANS
a) HELLO
b) LLO
c) LO
d) L

6.find the output of the following program?main(){int i = _1_abc(10);printf("%d
",--i);}{int_1_abc(int      i){return(++i);}
ANS
a)10
b)11
c)9
d)error

7.In order to force derived class A to redefine a function a fun, void foo(      )how should A declare foo( )?inline foo()virtual voidfoo( ) = 0
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) infinite
b)zero
c)one
d)n times