Previous Years Solved Sample Placement Papers
- In the following code, what is 'P'?
typedef char *charp; const charp P;
(A) P is a constant
(B) P is a character constant
(C) P is a character type
(D) None of the above
Ans: A
- What will be the output of the following C#.NET code snippet?
byte b1 = 0xF7; byte b2 = 0xAB; byte temp; temp = (byte)(b1 & b2); Console.Write(temp + " "); temp = (byte)(b1 ^ b2); Console.WriteLine(temp);
(A) 163 92
(B) 92 163
(C) 192 63
(D) 0 1
Ans: A
- Suppose a Generic class called SortObjects is to be made capable of sorting objects of any type (Integer, Single, Byte, etc.). Which of the following programming constructs should be used to implement the comparison function?
(A) Namespace
(B) Interface
(C) Encapsulation
(D) Delegate
(E) Attribute
Ans: D
- If an XML document does not have a DTD, then by definition it is:
(A) Not-type-valid
(B) Type-valid
(C) An HTML document
(D) None of the above
Ans: A
- In 1978, a kg of paper was sold at Rs. 25/-. If the paper rate increases at 1.5% more than the inflation rate (6.5% a year), what will be the cost of a kg of paper after 2 years?
(A) 29.12
(B) 29.72
(C) 30.12
(D) 32.65
(E) None of these
Ans: C
- A, B, and C have some marbles. A gives B and C the same number of marbles each as they already have. Then, B does the same, and finally, C repeats the action. At the end, A, B, and C have an equal number of marbles.
(i) If x, y, z are the initial numbers of marbles with A, B, and C, what is the number of marbles B has at the end?
(A) 2(x - y - z)
(B) 4(x - y - z)
(C) 2(3y - x - z)
(D) x + y - z
Ans: C
(ii) If the total number of marbles is 72, what is the number of marbles A had initially?
(A) 20
(B) 30
(C) 32
(D) 39
Ans: D
- In a class, except 18, all are above 50 years. 15 are below 50 years of age. How many people are there?
(A) 30
(B) 33
(C) 36
(D) None of these
Ans: D
- A square plate is cut at four corners to form an open box. If this box holds 128 ml of oil, what is the size of the side of the plate?
(A) 17
(B) 14
(C) 13
(D) None of these
Ans: (Answer pending)