Placement Papers - ECIL

Electronics Corporation of India Limited
ECIL Interview Experience - TRIVANDRUM, JUNE 10, 2012
Posted by :
Professor sahab
(2)
ECIL 10 JUNE 2012 COMPUTER SCIENCE PAPER:
THERE WAS 50 QUESTION.

1) Bitstuffing is used.
A. Data compression.
B. Data hiding.
C. Synchronisation between sender and receiver.
D. Encryption.
Ans: Not sure C.

2) If a variable is a pointer to a structure, then which of the following operators is used to access data members of the structure through the pointer variable?
A. .   B. &   C. *  D. >.
Answer: D.

3) How to declare the function outside the class.
Ans: by:: (resolution).

4) Rectifier does?
Ans: Converts AC to DC.

5) Range of long double?
6) On question was from for loop.
7) One question was from a call by reference.

8) We want to round off x, a float, to an int value, The correct way to do this is.
A. Why = (int) (x + 0. 5)     B. Why = int (x + 0. 5).
C. Why = (int) x + 0. 5      D. Why = (int) ( (int) x + 0. 5).
Ans: A.

9) In a balanced binary tree the difference between the subtree child node can not be greater that.
A. 1.   B. 2  C. 0   D: None of these.
Ans: 1.

10) Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1?
A. Rem = 3.14 % 2.1
B. Rem = modf (3.14, 2.1)
C. Rem = fmod (3.14, 2.1)
D. Remainder cannot be obtained in floating point division.
Ans: C.
Explanation: fmod (x, y) - Calculates x modulo y, the remainder of x/y.
This function is the same as the modulus operator. But fmod () performs floating point divisions.

11) In the goback-n-arq protocol if 10 requests sent the the acknowledgement will be.
A. 10  B. 5   C. N   D. ALL
Ans: A (10).

12) The hamming distance between 100 and 001 is.
Ans: 2.

13) In which primitive data type can be used as an object.
Ans: Wrapper class.

14) Which of the following range is a valid long double?
A. 3. 4E-4932 to 1. 1E+4932    B. 3. 4E-4932 to 3. 4E+4932.
C. 1. 1E-4932 to 1. 1E+4932    D. 1. 7E-4932 to 1. 7E+4932.
Ans: A.

15) One wuestion from hit ratio.

16) Can you combine the following two statements into one?
Char *p;. P = (char*) malloc (100);.
A. Char p = *malloc (100);.
B. Char *p = (char) malloc (100);.
C. Char *p = (char*) malloc (100);.
D. Char *p = (char *) (malloc*) (100);.
Ans: C.

17) Which bitwise operator is suitable for turning off a particular bit in a number?
A. && operator   B. & operator.
C. || operator    D. ! operator.
Ans: B.

18) What does the following declaration mean? Int (*ptr) [10];.
A. Ptr is array of pointers to 10 integers.
B. Ptr is a pointer to an array of 10 integers.
C. Ptr is an array of 10 integers.
D. Ptr is a pointer to an array.
Ans: B.

19) One question from the pointer.
20) 3 questions from cable and signalling.
21) One question from non-linear function.
22) Which is used to count the number of rows in database query result: count (an aggregate function).

23) Which is not a role of the transport layer.
Ans: Data routing.

24) Size of the address field of ipv4 and ipv6,
Ans: Not sure.

25) Bipartite graph?
Ans: Without an odd cycle (not sure).

26) What is not there in full associative caching?
Ans: Not sure (cache coldness).

27) One question from the subnet.