In acolony there are some families. Each of them have children butdifferent in numbers.Following are conditions a> no of adult>no of sons>no of daughters>no of families. b>each sister must have atleast one brother and should have at the most 1 sister. c> no of children in one family exceeds the sum of no of children in the rest families. Tell the no of families?
2 98281. A plane travels 695km with wind and 498km aginst the wind in same time.The speed of wind is 21km/hr. Find the speed of plane?
5 9520If second no is twice the first no and first no is thrice the third no.Their avg is 20.Find the greatest no?
12 35716Total 5 children,youngest 3yrs old and no 2 children hve the same age ,sum of their age is26.Find the age of eldest?
13 22332Can I get the placement for Air Inia Air Transport Ltd. exam for the post of Junior Executive Technical. Please let me know if any one knows and mail it to my id : pushpalatasudke@yahoo.com
2319The passage implies that a moral principle derived from applying Murphy's philosophy to a particular group would be applicable to another group if
2554The author suggests that the application of Murphy's philosophy to the situations of two different groups
2327Suppose an individual who firmly believes in keeping promises has promised to return a weapon to a person she knows to be extremely dangerous. According to Murphy, which of the following, if true, would WEAKEN the notion that she should return the weapon
1 4191There is a field inside that there is a rectangular grass field with dimension 12X8 meter. One horse is tied at one corner of the grass field with a rope of 10 Mtrs. Horse is not allowed to enter the grass field .How much area it will graze?
3 8344A cube is coloured red on one face,green on the opposite face,yellow on the another face and blue on a face adjecent to yellow face. The other two faces are left uncoloured. it is then cut into 125 smaller cubes of equal size. Q-1: How many Cubes are coloured blue on one faces,red or green on another face and have four uncoloured faces? Q-2: How many cubes are coloured red on one face,and have the remaining faces uncoloured?
5 34797Post New Satyam General Aptitude Interview Questions
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)
What actually happens when locking a work object in Pega?
What is bound service?
In which format data is stored in database?
When should you use the “break” in python?
How would you connect as a tier in application designer?
How do you stop a thread in java?
Explain does the web browser control share the ie cache?
How to illuminate a gorge caught? : sap bobi
How do I delete a locked file?
what is a voltage follower?
What kind of paper airplane flies the farthest?
What is Extractor in Scala? What is the difference between Constructor and Extractor in Scala? What is the use of Extractor in Scala?
What do you mean by light weight and heavy weight components?
Entry Tax is Central Income or State Income. Which Challan this tax deposited ? In Sale Tax Return which column is shown this tax