You are on page 1of 2

Velammal College of Engineering and Technology

Department of Computer Science and Engineering


Zoho Prep - Puzzles Test 23.03.2019 (60 mins)

1. Allgates and Britto just became friends with Sandiago, and they want to know when her birthday is.
Sandiago gives them a list of 10 possible dates.
May 15 May 16 May 19 June 17 June 18 July 14 July 16 August 14 August 15 August 17
Sandiago then tells Allgates and Britto separately the month and the day of her birthday respectively.
Allgates: I don’t know when Sandiago’s birthday is, but I know that Britto does not know too.
Britto: At first I don’t know when Sandiago’s birthday is, but I know now.
Allgates: Then I also know when Sandiago’s birthday is.
So when is Sandiago’s birthday?

2. Queen Oyila has maids with six, seven, or eight legs. The maids with seven legs always lie, but the
maids with either six or eight legs always say the truth.
One day, 4 maids met :
The blue one says: “Altogether we have 28 legs”;
The green one says: “Altogether we have 27 legs”;
The yellow one says: “Altogether we have 26 legs”;
The red one says: “Altogether we have 25 legs”.

What is the colour of the maid that says the truth?

3. How many squares are there on a chess board?

4. I walk at 4 Kmph reaches my college 8 minutes late. If I walk at 6 Kmph, I reach 8 minutes earlier.
How far is the college from my home?

5. The cost of 4 ink bottles and 12 pens is Rs.1520. What is the cost of 10 ink bottles and 30 pens?

6. Boost does half as much work as Bournvita in three-fourth of the time. If together they take 18 days
to complete the work, how much time shall Bournvita take to do it?

7. Our college bus covers a certain distance at a speed of 8 Kmph and returned at a speed of 4 Kmph.
Find the average speed of whole journey?

8. I was having breakfast in a restaurant. A man excused himself and sat at my table. He began to eat
idlis one after the other. As soon as one plate was finished he ordered for more. After he finished the
last idli he told the waiter he that he didn’t want any more. He said to me, “That last idli I ate was the
100th idli in the last five days. Each day I ate 6 more than on the previous day. Can you tell me how
many idlis I had yesterday?”

9. Ten cards numbered 1 to 10 are placed in a box, mixed up thoroughly and then one card is drawn
randomly. If it is known that the number on the drawn card is more than 3, what is the probability
that it is an even number.

10. Jill began a business with Rs.5000/- and was joined afterwards by Jung with Rs.4000/-. If the
profits at the end of the year were divided in the ratio 3:1, Jung joined the business after?
Find the output for the below programs
1)
int main()
{
int x = y = z = 100;
x = y = z = 500;
printf("%d %d %d", a, b, c);
return 0;
}
2)
int main()
{
int x = 0;
x = printf("Hello World");
printf(" %d", x);
return 0;
}

3)
int main()
{
printf("%d", 'C' > 'A');
return 0;
}
4)
int x = 100;
void fun()
{
int x = 20;
{
int x = 10;
cout << ::x << endl;
}
}
int main()
{
fun();
return 0;
}
5)
int main()
{
float a=0.7d;
if(a<0.7)
printf("C");
else
printf("C++");
return 0;
}

You might also like