Question 1: There is a toy train that can make 10 musical sounds. It makes 2 musical sounds after being defective. What is the probability that same musical sound would be produced 5 times consecutively? ( 1 of )
Answer: 1/2 * 1/2 * 1/2 * 1/2 * 1/2 = 1/32
32 will be the answer. (My friends got similar question with "3 times consecutively"; for that the answer would be 8)
Question 2: Peter and Paul are two friends. The sum of their ages is 35 years. Peter is twice as old as Paul was when Peter was as old as Paul is now. What is the present age of Peter?
Luckily, I had this question twice. Initially I left it because of the confusing statement but when I got the same question second time with different names of the friends (Pooja and Prasad) then I gave a little extra time and solved it.
Answer: 20 years. I simply substituted the answers in the statement to find the best fit, because the statement in the question was pretty confusing.
Question 3: The ages of two friends is in the ratio 5:6. After how many years will the ages be in the ratio 7:8?
Answer: 10 years.
Question 4: (There was a long story, I'll cut short it). There are 5 materials to make a perfume: Lilac, Balsalmic, Lemon, Woody and Mimosaic. To make a perfume that is in demand the following conditions are to be followed: Lilac and Balsalmic go together. Woody and Mimosaic go together, Woody and Balsalmic never go together. Lemon can be added with any material. (Actually they had also mentioned how much amount of one can be added with how much quantity of the other; but that's not needed for the question.) All of the following combinations are possible to make a perfume EXCEPT:
1) Balsalmic and Lilac
2) Woody and Lemon
3) Mimosaic and Woody
4) Mimosaic and Lilac
Answer: Mimosaic and Lilac. I have made the question here really easy to understand. But the actual question was in a twisted language and it was difficult to find the answer. It took me some time to get to the answer.
Question 5: A girl has to make pizza with different toppings. There are 8 different toppings. In how many ways can she make pizzas with 2 different toppings.
Answer: 8 * 7 = 56
Question 6: A triangle is made from a rope. The sides of the triangle are A cm, B cm and C cm. (I do not remember the numerical value). What will be the area of the square made from the same rope?
Question 7: What is the distance of the z-intercept from the x-intercept in the equation ax+by+cz+d=0. (I do not remember the values of a,b,c,d)
Question 8: An athlete decides to run the same distance in 1/4th less time that she usually took. By how much percent will she have to increase her average speed?
Answer: 33.33%
Question 9: A horse chases a pony 3 hours after the pony runs. Horse takes 4 hours to reach the pony. If the average speed of the horse is 35 kmph, what s the average speed of the pony? (This question was really long with loads of irrelevant statement)
These are a few questions that I could recall. I made through the aptitude round by attempting 16 questions. Next was Technical Interview Round.
Technical Interview:
Here I will discuss the technical questions that were asked to me and also the questions asked to my friends.
Question 1: Write the pointer representation of a[i][j][k].
Question 2: i = 5
i++, ++i, --i, i--, 5
What will be the output if it is printed?
Question 3: How will you insert a new node between any two nodes in a linked list? Write the code.
Question 4: How will you find a particular data in the linked list?
Question 5: What is MD5?
Question 6: What is RSA? Explain its principle.
Question 7: There is a triangle and 3 ants on each vertex of the triangle. The 3 ants start to move randomly along the edges of the triangle. What is the probability that two ants will collide?
Question 8: What is the difference between C and C++?
Question 9: What do you mean by polymorphism?
Question 10: Give an example of polymorphism with code.
Question 11: What do you mean by OOP?
Question 12: What is inheritance?
Question 13: What is a friend function?
Question 14: What is an abstract class?
Question 15: Suppose there is a number 235 such that sum of first two digits is equal to the third digit. How many such 3 digits number are possible?
Question 16: Why is the VIRTUAL keyword used in C++?
Question 17: Which keyword is written to use a variable declared in one class in the other class?
Question 18: Suppose a code is written in C and you want to use that code in C++. How can you do that?
Question 19 What do you mean by DML?
Question 20: Is there any language other than SQL where DML is used? If yes, then which?
Question 21: How many normal forms do we have?
Question 22: Here is a tic-tac-toe game which is being played by 2 people:
x o _
o _ _
x o x
Represent the blank spaces. Who played the last chance (x or o)?
Technical Questions asked to my friends:
Question 1: What is a transaction? Properties of Transaction?
Question 2: What "condition" will be written in the if statement such that both Hello World are printed when the following code is executed.
if(condition)
{
printf("Hello");
}
else
{
printf("World");
}
Question 3: What will be the output of the following code?
int i=5;
printf("%d, %d, %d", i++, i, ++i);
Which C compiler do you use? (My friend said TURBO)
What will be the output of above code in TURBO compiler? (He said same)
No! It will not be the same.
Comments
Post a Comment