Beruflich Dokumente
Kultur Dokumente
http://www.jbigdeal.com/2011/04/cdac-question-paper-2010-with-ans...
Home
All Papers
TET-PGT-TGT
Recruitment 2012
IBPS 2012
What's New?
Terms of us
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[] = %dn; p[1] = cc; 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 = %sn,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(%dn,i); } { int_1_abc(int i) { return(++i);
1 of 3
8/3/2012 3:20 PM
http://www.jbigdeal.com/2011/04/cdac-question-paper-2010-with-ans...
} 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( )? http://www.ChetanaS.org inline foo() virtual voidfoo( ) = 0 8. 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)infinite b)zero c)one d)n times
Similar Pages..
C-DAC Aptitude Papers C-DAC Interview Questions C-DAC Question-Answers
Click Here to Submit Your Comment
Other Pages..
C-DAC Interview Question Paper with answers pdf Previous year old paper solved
CDAC INTERVIEW PATTERN ON 4th AUGUST AT PUNECDAC has no test paper,they directly take the ...
2 of 3
8/3/2012 3:20 PM
http://www.jbigdeal.com/2011/04/cdac-question-paper-2010-with-ans...
3 of 3
8/3/2012 3:20 PM