Jack and Jill went up and down a hill. They started from the bottom and Jack met Jill again 20 miles from the top while returning. Jack completed the race 1 min a head of Jill. If the hill is 440 miles high and their speed while down journey is 1.5 times the up journey. How long it took for the Jack to complete the race ?
1070Mr. T has a wrong weighing pan. One arm is lengthier than other. 1 kilogram on left balances 8 melons on right, 1 kilogram on right balances 2 melons on left. If all melons are equal in weight, what is the weight of a single melon?
1 876There are 1000 junior and 800 senior students in a class. And there are 60 sibling pairs where each pair has 1 junior and 1 senior.1 student is chosen from senior and 1 from junior randomly.What is the probability that the two selected students are from a sibling pair?
824There are three trucks A, B, C. A loads 10 kg/min. B loads 13 1/3 kg/min. C unloads 5 kg/min. If three simultaneously works then what is the time taken to load 2.4 tones?
882Rahul took a part in cycling game where 1/5 ahead of him and 5/6 behind him then total number of participants?
2644There are 3 societies a,b,c. a lent tractors to b and c as many as they had. After some time b gave as many tractors to a and c as many as they have. After sometime c did the same thing. At the end of this transaction each one of them had 24. Find the tractors each originally had.
731Two people X & Y walk on the wall of a go down in opposite direction. They meet at a point on one side and then go ahead. X after walking for some time, walks in opposite direction for 15 mtrs.Then again he turns back and walks in the original direction. What distance did Y walk before they met again, if X walks 11 mtrs by the time Y walks 8 mtrs.
6831/3 rd of the contents of a container evaporated on the 1 st day. 3/4 th of the remaining contents of the container evaporated the second day. what part of the contents of the container are left at the end of the second day.
78013_46_8_180_210_75 = 64 . Use + and – in the empty places to make the equation holds good. Take m = number of + and n = number of – . Find m – n?
766500 men are arranged in an array of 10 rows and 50 columns according to their heights. Tallest among each row of all are asked to fall out. And the shortest among them is A. Similarly after resuming that to their original podsitions that the shortest among each column are asked to fall out. And the tallest among them is B . Now who is taller among A and B ?
748A car is traveling at a uniform speed. The driver sees a milestone showing a 2-digit number. After traveling for an hour the driver sees another milestone with the same digits in reverse order. After another hour the driver sees another milestone containing the same two digits. What is the average speed of the driver.
705Post New Infosys Interview Questions
How is technology significant in the field of mechanical engineering?
Explain the various authentication mechanisms in asp.net.
How many are the types of joints?
Can you explain what is the difference between zend_auth and zend_acl?
What is copy formatting in word?
What are snapshots? What are materialized views & where do we use them?
Question 5 [15] Consider the following classes, illustrating the Strategy design pattern: import java.awt.*; abstract class Text { protected TextApplet tA; protected Text(TextApplet tApplet) { tA = tApplet; } abstract public void draw(Graphics g); } class PlainText extends Text { protected PlainText(TextApplet tApplet) { super(tApplet); } public void draw(Graphics g) { g.setColor(tA.getColor()); g.setFont(new Font("Sans-serif", Font.PLAIN, 12)); g.drawString(tA.getText(), 20, 20); } } class CodeText extends Text { protected CodeText(TextApplet tApplet) { super(tApplet); } public void draw(Graphics g) { g.setColor(tA.getColor()); g.setFont(new Font("Monospaced", Font.PLAIN, 12)); g.drawString(tA.getText(), 20, 20); } } public class TextApplet extends java.applet.Applet { protected Text text; protected String textVal; protected Color color; public String getText() { return textVal; } public Color getColor() { return color; } public void init() { textVal = getParameter("text"); String textStyle = getParameter("style"); String textColor = getParameter("color"); if (textStyle == "code") text = new CodeText(this); else text = new PlainText(this); if (textColor == "red") color = Color.RED; else if (textColor == "blue") color = Color.BLUE; else color = Color.BLACK; } public void paint(Graphics g) { text.draw(g); 10 } } The Text class is more complicated than it should be (there is too much coupling between the Text and TextApplet classes). By getting rid of the reference to a TextApplet object in the Text class and setting the colour in the paint() method, one could turn the Text class into an interface and simplify the strategy classes considerably. 5.1 Rewrite the Text and PlainText classes to do what is described above. (6) 5.2 Explain the consequent changes that are necessary to the TextApplet class. (4) 5.3 Write an additional strategy class called FancyText (to go with your simplified strategy classes) to allow fancy text to be displayed for the value "fancy" provided for the style parameter. It should use the font Font ("Serif", Font.ITALIC, 12). (3) 5.4 Explain what changes are necessary to the TextApplet class for this. (2)
Why in metering Ct for ammeters ct secondary side is grounded for each Ct but not in case of CBCT (Core balance current transformer)..kindly some1 highlights the reason..is it because net flux is zero?
Difference between global and parameter variables?
What is iq bot in automation anywhere?
Did django unchained win any oscars?
What does ctrl f do?
What is the need for typescript in angular 2?
What can you use Python generator functions for?
Describe data concatenation?