Sunday, 30 November 2014

Placement Papers :: CDAC

APTITUDE (20 Questions)

1. Questions on coding & decoding

2. Question on series (the questions were not striking at glance)

3. There were questions like, an expression is given 4+5*9/3*27=9(say), which two signs should be interchanged so that the expression evaluates to be 13(say).

4. Problem on mixture, like a shopkeeper earns a profit of 10% on selling a product 'C' at Rs 22/kg. C is mixture of A&B. if A's cost is Rs14/kg, then find B's.

5. There are two numbers. If the bigger one is multiplied by 3 then divided b the smaller one the reminder "ient comes out to be r1&q1. if the smaller one is first is multiplied by 5&then divided by bigger one the remainder "ient are r2,q2. find the bigger number.

The numerical values of r1,q1,r2&q2 were given.

**** BOOK:- R.S.AGGARWAL

C LANGUAGE (40 Questions)

1. Good quality questions that tests theory of “c”.

2. Good number of problems that involves pointers & strings.

3. few questions on function calling, conditional operators, hierarchy of logical AND & logical OR.

The quality of questions was extremely good.

**** BOOK:- EXPLORING 'C'

DIGITAL ELECTRONICS (40 Questions)

1. Extremely good questions on coding, the term  “excess code” appeared a number of times, there was also good question on basic term radix. e.g which coding is best suitable for complement operation.

2. What is the minimum no. NAND gates that are required to implement a given Boolean expression?

3. Treatment of logic gates wih high or low enable inputs, there was a term “floating point “ that appeared in context with o/p of logic gates..

4. Simple questions from combinational & sequential circuits.

5. performance parameters of various digital logic families (all sorts of TTL, ECL, IIL, MOS, CMOS).

6. Few basic questions from microprocessor that involves the topics interrupt, interrupt handling, addressing modes.

....................................


I have attended CDAC exam on 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.chain rule problem
4.ratios

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

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

No comments:

Post a Comment