Zensar Placement Papers
1A, B and C contract a work for Rs. 550. Together A and B are supposed to do 7/11th of the work. How much does C get?
(a) Rs. 270
(b) Rs. 200
(c) Rs. 310
(d) Rs. 175
(e) None of these Ans: ( b ) Rs. 200
2What is the output of the program
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1*4/3-27%3^2+100*0.5-(4>3?1:2);
clrscr();
printf("%d",i);
getch();
}
// A. 49
// B. compile error
// c. 51
// D. 48 Ans: b
3How many meaningful English word can be formed by using the second, the fifth, the seventh and the tenth letters of the word APPROPRIATION, each only once, but in different sequence ?
(a) One
(b) Two
(c) Three
(d) None of these
(e) More than three Ans: ( a ) One
4Four of the following five are alike in a certain way and hence form a group. Which one of the following does not belong to that group?
(a) 21
(b) 35
(c) 49
(d) 63
(e) 56
Ans:( c ) 49
5one que like
main()
{
int x=5, y;
y= x*x++ * ++x ;
// print x and y
}
6calculating the no of bits required for the error detection & the error correction for the given
codeword set.
codeword a:
0000
0001
0011
1111
codeword b:
101111
.
.
.
.
110101
7one bottle is half-full of oil and another bottle with twice the capacity is one quarter full of oil. if water is added so that both the bottles are full and the contents of both are then poured into a third bottle that is empty and large enough to hold the contents of both, what fractions of the contents in the third bottle is oil?
a)1/4 b)1/3 c)3/8 d)2/3 ans:b)1/3
8Don and his wife each receive an 8 percent annual raise. if don receives a raise rs.800 and his wife receives a raise of rs. 840, what is the difference between their annual income after their raises?
a)40 b)460 c)500 d)540
ans:d)540
9An investor purchased a shares of stock at a certain price. If the stock increased in price Rs 0.25 per share and the total increase for the x shares was Rs 12.50, how many shares of stock had been purchased ?
(A)25 (B)50 (C)75 (D)100 (E)125
Ans :B)50
10A man is standing on the bridge 180 mtr long. Man observes that train passes him 8 sec. while it crosses bridge in 20 sec. find the length of the train.
Ans=120 mtr.
what is the priority level of (),++,/
11.(),/,++ 2.++.(),/ like that
ans-1
int a=1.1
float b=1.1
if (a==b)
{
printf("both are same")
}
else
{
printf("both are differnt")
}
12what will be output of the above programme?
13pqrs is a rectangle having area 50. rx=1/4sr.what is the area of pqxs?
a.37.5 b.42.5 c.12 d.3
14If m-4 is 7 more than n then m+9 is how much more than n+2
15If 10x coins are added to the no. of original coins he has (5y + 1) times more coins. Find out how many coins he had originally in terms of x and y
16Find out the Simple Interest paid for a sum of $4000 at the rate of 8% per annum for 3 months.
17.If it takes 10 technicians working 6 hours to build a server. They start woring at 11 AM and 1 technician is added per hour starting at 5 PM. At what time they will finish the server?
18A chart was there giving the speed of train after some minutes like
0 30 60 90 120 150 180
40 45 50 55 60 65 70
19Find the % increase in the speed of train?
20If it is extrapolated further what will be the speed after 5 hrs.
21If the data is for 10 bogies and for every 2 bogies added speed decreases by 5% what will be the speed after 5 hrs.
22The quadrilateral is rectangle
23The area of the quadrilateral is 36 What is a*b
6a+4b=43
3a+12b=63
24The house is big and lovely but since nobody uses it it is pretty much a white Elephant What does White Elephant mean?
25What exception can an overridden method throw in comparison with the method it is overriding?
26What does parseQueryString return?
27Anonymous classes – Can they have constructors?
28 What is wrong with this
abstract class MyClass
{
transient a,
synchronized b.
}
29How can an inner class access the members of outer class?
Find the output:
String a=”abc”;
String b=”abc”;
If(a==b)
System.out.println(“1”);
Else
System.out.println(“2”);
If a.equals(b)
System.out.println(“3”);
Else
System.out.println(“4”);
30Find the output Code showing Call by reference and call by value was given Array was used.
31Some For stmts was given Mark all valid once
byte b=1
While(++b > 0);
System.out.println(b);
35Write a minimal C++ program .
(a) Talk about yourself
(b) What are your strengths.
(c) Where do you think you have to improve.
(d) Where do you see yourself after 5 years
32)main()
{ int i=2; int a=4; if((i+=3)>a)
{ printf( \" TRUE \"); }
33). if(fp = fopen(\"dfas\",\"r\") == NULL),what is the value of fp
a. NULL
b. 0
c. 1
d. 0 or 1
34). #define sqr(x) x*x, what is value of j if j = 2 * sqr(3 + 4)
3. #define FILENAME(extension) test_##extension, how will it print FILENAME(back)
a. test_back
b. test_#back
c. test_##back
d. ??
35) char *p = \"hello world\"
p[0] = \'H\', what will be printf(\"%s\", p);
a. Hello world
b. hello world
c. H
d. compile error
36) int fun(),how do u define pointer to this function ??
37)what is ment by int (* xyz)[13]
38)what is true from
a. base call ferernece is compatible with child class
b. child class reference is compatible with base class
c. no reference to class
d. ??
39) class b class a
{ friend class b }
then what is ture
else
{ printf(\"FALSE \}
What is the output of the program ..
Ans ) TRUE , coz i+=3 becomes incremented and i becomes 5 . So i is greater than a
40)What is an OS ?
41)What is a Data Structure ?
Ans : It is a an abstract data type where some operations can be defined and performed on the
data. It makes the task of a programmer easy coz it has all the set of data and operations at a
particular place
42)What is OOP.
43)What is Object Oriented Analysis nad design.
44)how do u communicate between object and class.