Monday, August 2, 2010

Plecement paper of 3i infotech

Solve the following and check with the answers given at the end.  
  1. IIt was calculated that 75 men could complete a piece of work in 20 days. When work was scheduled to commence, it was found necessary to send 25 men to another project. How much longer will it take to complete the work?  
  2. A student divided a number by 2/3 when he required to multiply by 3/2. Calculate the percentage of error in his result.
  3. A dishonest shopkeeper professes to sell pulses at the cost price, but he uses a false weight of 950gm. for a kg.
    His gain is …%.
  4. A software engineer has the capability of thinking 100 lines of code in five minutes and can type 100 lines of code in 10 minutes. He takes a break for five minutes after every ten minutes. How many lines of codes will he complete typing after an hour?
  5. A man was engaged on a job for 30 days on the condition that he would get a wage of Rs. 10 for the day he works, but he have to pay a fine of Rs. 2 for each day of his absence. If he gets Rs. 216 at the end, he was absent for work for ... days
  6. A contractor agreeing to finish a work in 150 days, employed 75 men each working 8 hours daily. After 90 days, only 2/7 of the work was completed. Increasing the number of men by  ________ each working now for 10 hours daily, the work can be completed in time.
  7. what is a percent of b divided by b percent of a?
     (a)             a            (b)            b            (c)            1            (d)            10            (d)            100

  8. A man bought a horse and a cart. If he sold the horse at 10 % loss and the cart at 20 % gain, he would not lose anything; but if he sold the horse at 5% loss and the cart at 5% gain, he would lose Rs. 10 in the bargain. The amount paid by him was Rs. _______ for the horse and Rs.________ for the cart

A tennis marker is trying to put together a team of four players for a tennis tournament out of seven available. males - a, b and c; females – m, n, o and p. All players are of equal ability and there must be at least two males in the team. For a team of four, all players must be able to play with each other under the following restrictions: b  should not play with m,    c  should not play with p, and a  should not play with o.


            Which of the following statements must be false?

1.      b and p cannot be selected togethe
2.      c and o cannot be selected together
3.      c and n cannot be selected together.
10-12.      The following figure depicts three views of a cube. Based on this, answer questions 10-12.
              

        1
         3
        6


  1. The number on the faces adjacent to the face marked 5 are ______ 
  2. Which of the following pairs does not correctly give the numbers on the opposite faces.
     (1)            6,5            (2)            4,1            (3)            1,3            (4)            4,2
  3. Five farmers have 7, 9, 11, 13 & 14 apple trees, respectively in their orchards. Last year, each of them discovered that every tree in their own orchard bore exactly the same number of apples. Further, if the third farmer gives one apple to the first, and the fifth gives three to each of the second and the fourth, they would all have exactly the same number of apples. What were the yields per tree in the orchards of the third and fourth farmers?
  4. Five boys were climbing a hill. J was following H. R was just ahead of G. K was between G & H. They were climbing up in a column. Who was the second
     15-18 John is undecided which of the four novels to buy. He is considering a spy thriller, a Murder mystery, a Gothic romance and a science fiction novel. The books are written by Rothko, Gorky, Burchfield and Hopper, not necessary in that order, and published by Heron, Piegon, Blueja and sparrow, not necessary in that order.

    (1) The book by Rothko is published by Sparrow.
    (2) The Spy thriller is published by Heron.
    (3) The science fiction novel is by Burchfield and is not published by Blueja.
    (4)The Gothic romance is by Hopper
  5. Pigeon publishes ___________
  6. The novel by Gorky ____________
  7. John purchases books by the authors whose names come first and third in alphabetical order. He does not buy the books ______
  8. On the basis of the first paragraph and statement (2), (3) and (4) only, it is possible to deduce that
    1.      Rothko wrote the murder mystery or the spy thriller
    2.      Sparrow published the murder mystery or the spy thriller
    3.   The book by Burchfield is published by Sparrow
  9. If a light flashes every 6 seconds, how many times will it flash in ¾ of an hour?
    A. 12   B. 20          C. 24          D. 30                              (Ans. C)
  10. If point P is on line segment AB, then which of the following is always true?
    (1) AP = PB   (2) AP > PB  (3) PB > AP  (4) AB > AP  (5) AB > AP + PB
  11. All men are vertebrates. Some mammals are vertebrates. Which of the following conclusions drawn from the above statement is correct All men are mammals All mammals are men Some vertebrates are mammals.   None
  12. Which of the following statements drawn from the given statements are correct?Given:All watches sold in that shop are of high standard. Some of the HMT watches are sold in that shop.
       a)      All watches of high standard were manufactured by HMT.
       b)      Some of the HMT watches are of high standard.
       c)      None of the HMT watches is of high standard.
       d)   Some of the HMT watches of high standard are sold in that shop.
    23-27.1.      Ashland is north of East Liverpool and west of Coshocton.
               2.      Bowling green is north of Ashland and west of Fredericktown.
               3.      Dover is south and east of Ashland
               4.      East Liverpool is north of Fredericktown and east of Dover.
               5.      Fredericktown is north of Dover and west of Ashland.
               6.   Coshocton is south of Fredericktown and west of Dover
  13. Which of the towns mentioned is furthest of the north – wes
    (a) Ashland      (b) Bowling green  (c) Coshocton       (d) East Liverpool      (e) Fredericktown
  14. Which of the following must be both north and east of Fredericktown
     (a) Ashland                        (b) Coshocton                    (c) East Liverpool
     I a only             II b only      III c only      IV a & b          V a & c
  15. Which of the following towns must be situated both south and west of at least one other town?
    A.     Ashland only
    B.     Ashland and Fredericktown
    C.     Dover and Fredericktown
    D.     Dover, Coshocton and Fredericktown
    E.   Coshocton, Dover and East Liverpool
  16. Which of the following statements, if true, would make the information in the numbered statements more specific?
    (a)    Coshocton is north of Dover.
    (b)   East Liverpool is north of Dover
    (c)    Ashland is east of Bowling green.
    (d)   Coshocton is east of Fredericktown
    (e)  Bowling green is north of Fredericktown
  17. Which of the numbered statements gives information that can be deduced from one or more of the other statements
      (A) 1                (B) 2                (C) 3                (D) 4                (E) 6
  18. Eight friends Harsha, Fakis, Balaji, Eswar, Dhinesh, Chandra, Geetha, and Ahmed are sitting in a circle facing the center. Balaji is sitting between Geetha and Dhinesh. Harsha is third to the left of Balaji and second to the right of Ahmed. Chandra is sitting between Ahmed and Geetha and Balaji and Eshwar are not sitting opposite to each other. Who is third to the left of Dhinesh?
  19. If every alternative letter starting from B of the English alphabet is written in small letter, rest all are written in capital letters, how the month  “ September” be written.
    (1)     SeptEMbEr    (2)   SEpTeMBEr   (3)    SeptembeR     
    (4)     SepteMber     (5)    None of the above.
  20. The length of the side of a square is represented by x+2. The length of the side of an equilateral triangle is 2x. If the square and the equilateral triangle have equal perimeter, then the value of x is _______
  21. It takes Mr. Karthik y hours to complete typing a manuscript. After 2 hours, he was called away. What fractional part of the assignment was left incomplete?
  22. Which of the following is larger than 3/5?
     (1)½   (2)  39/50  (3)   7/25   (4)  3/10  (5)  59/100
  23. The number that does not have a reciprocal is ____________.
  24. There are 3 persons Sudhir, Arvind, and Gauri. Sudhir lent cars to Arvind and Gauri as many as they had already. After some time Arvind gave as many cars to Sudhir and Gauri as many as they have. After sometime Gauri did the same thing. At the end of this transaction each one of them had 24. Find the cars each originally had.

  25. A man bought a horse and a cart. If he sold the horse at 10 % loss and the cart at 20 % gain, he would not lose anything; but if he sold the horse at 5% loss and the cart at 5% gain, he would lose Rs. 10 in the bargain. The amount paid by him was Rs. _______ for the horse and Rs.________ for the cart
  26. Which of the numbered statements gives information that can be deduced from one or more of the other statements
      (A) 1                (B) 2                (C) 3                (D) 4                (E) 6
  27. Eight friends Harsha, Fakis, Balaji, Eswar, Dhinesh, Chandra, Geetha, and Ahmed are sitting in a circle facing the center. Balaji is sitting between Geetha and Dhinesh. Harsha is third to the left of Balaji and second to the right of Ahmed. Chandra is sitting between Ahmed and Geetha and Balaji and Eshwar are not sitting opposite to each other. Who is third to the left of Dhinesh?
  28. If every alternative letter starting from B of the English alphabet is written in small letter, rest all are written in capital letters, how the month  “ September” be written.
    (1)     SeptEMbEr    (2)   SEpTeMBEr   (3)    SeptembeR     
    (4)     SepteMber     (5)    None of the above.
  29. The length of the side of a square is represented by x+2. The length of the side of an equilateral triangle is 2x. If the square and the equilateral triangle have equal perimeter, then the value of x is _______
  30. It takes Mr. Karthik y hours to complete typing a manuscript. After 2 hours, he was called away. What fractional part of the assignment was left incomplete?
  31. Which of the following is larger than 3/5?
     (1)½   (2)  39/50  (3)   7/25   (4)  3/10  (5)  59/100
  32. The number that does not have a reciprocal is ____________.
  33. There are 3 persons Sudhir, Arvind, and Gauri. Sudhir lent cars to Arvind and Gauri as many as they had already. After some time Arvind gave as many cars to Sudhir and Gauri as many as they have. After sometime Gauri did the same thing. At the end of this transaction each one of them had 24. Find the cars each originally had.
  34. A man bought a horse and a cart. If he sold the horse at 10 % loss and the cart at 20 % gain, he would not lose anything; but if he sold the horse at 5% loss and the cart at 5% gain, he would lose Rs. 10 in the bargain. The amount paid by him was Rs. _______ for the horse and Rs.________ for the cart 

When is an object subject to garbage collection?

An object is subject to garbage collection when it becomes unreachable to the program in which it is used.

What method must be implemented by all threads?

All tasks must implement the run() method, whether they are a subclass of Thread or implement the Runnable interface.

What methods are used to get and set the text label displayed by a Button object?

getLabel() and setLabel() 

Which Component subclass is used for drawing and painting?

Canvas

To what value is a variable of the boolean type automatically initialized?

The default value of the boolean type is false.

Can try statements be nested?

Try statements may be tested.

What is the difference between the prefix and postfix forms of the ++ operator?

The prefix form performs the increment operation and returns the value of the increment operation. The postfix form returns the current value all of the expression and then performs the increment operation on that value.

What is the purpose of a statement block?

A statement block is used to organize a sequence of statements as a single statement group.

What is a Java package and how is it used?

A Java package is a naming context for classes and interfaces. A package is used to create a separate name space for groups of classes and interfaces. Packages are also used to organize related classes and interfaces into a single API unit and to control accessibility to these classes and interfaces.

What modifiers may be used with a top-level class?

A top-level class may be public, abstract, or final.

What are the Object and Class classes used for?

The Object class is the highest-level class in the Java class hierarchy. The Class class is used to represent the classes and interfaces that are loaded by a Java program.

How does a try statement determine which catch clause should be used to handle an exception?

When an exception is thrown within the body of a try statement, the catch clauses of the try statement are examined in the order in which they appear. The first catch clause that is capable of handling the exception is executed. The remaining catch clauses are ignored.

Can an unreachable object become reachable again?

An unreachable object may become reachable again. This can happen when the object's finalize() method is invoked and the object performs an operation which causes it to become accessible to reachable objects

Which arithmetic operations can result in the throwing of an ArithmeticException?

Integer / and % can result in the throwing of an ArithmeticException.

What are three ways in which a thread can enter the waiting state?

A thread can enter the waiting state by invoking its sleep() method, by blocking on I/O, by unsuccessfully attempting to acquire an object's lock, or by invoking an object's wait() method. It can also enter the waiting state by invoking its (deprecated) suspend() method.

Can an abstract class be final?

An abstract class may not be declared as final.

What is the ResourceBundle class?

The ResourceBundle class is used to store locale-specific resources that can be loaded by a program to tailor the program's appearance to the particular locale in which it is being run.

What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

The exception propagates up to the next higher level try-catch statement (if any) or results in the program's termination.

What is numeric promotion?

Numeric promotion is the conversion of a smaller numeric type to a larger numeric type, so that integer and floating-point operations may take place. In numerical promotion, byte, char, and short values are converted to int values. The int values are also converted to long values, if necessary. The long and float values are converted to double values, as required.

What is the difference between a Scrollbar and a ScrollPane?

A Scrollbar is a Component, but not a Container. A ScrollPane is a Container. A ScrollPane handles its own events and performs its own scrolling.

What is the difference between a public and a non-public class?

A public class may be accessed outside of its package. A non-public class may not be accessed outside of its package

Which package is always imported by default?

The java.lang package is always imported by default.

What interface must an object implement before it can be written to a stream as an object?

An object must implement the Serializable or Externalizable interface before it can be written to a stream as an object.

How are this and super used?

this is used to refer to the current object instance. super is used to refer to the variables and methods of the superclass of the current object instance.

What is the purpose of garbage collection?

The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources may be reclaimed and reused.

What is a compilation unit?

A compilation unit is a Java source code file.

What interface is extended by AWT event listeners?

All AWT event listeners extend the java.util.EventListener interface.

What restrictions are placed on method overriding?

Overridden methods must have the same name, argument list, and return type. The overriding method may not limit the access of the method it overrides. The overriding method may not throw any exceptions that may not be thrown by the overridden method.

How can a dead thread be restarted?

A dead thread cannot be restarted.

What happens if an exception is not caught?

An uncaught exception results in the uncaughtException() method of the thread's ThreadGroup being invoked, which eventually results in the termination of the program in which it is thrown.

What is a layout manager?

A layout manager is an object that is used to organize components in a container

What are E and PI?

E is the base of the natural logarithm and PI is mathematical value pi.

Are true and false keywords?

The values true and false are not keywords.

What is a void return type?

A void return type indicates that a method does not return a value.

What is the purpose of the enableEvents() method?

The enableEvents() method is used to enable an event for a particular object. Normally, an event is enabled when a listener is added to an object for a particular event. The enableEvents() method is used by objects that handle events by overriding their event-dispatch methods.

What is the difference between the File and RandomAccessFile classes?

The File class encapsulates the files and directories of the local file system. The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file.

What happens when you add a double value to a String?

The result is a String object.

What is your platform's default character encoding?

If you are running Java on English Windows platforms, it is probably Cp1252. If you are running Java on English Solaris platforms, it is most likely 8859_1.

What is the difference between the JDK 1.02 event model and the event-delegation model introduced with JDK 1.1?

The JDK 1.02 event model uses an event inheritance or bubbling approach. In this model, components are required to handle their own events. If they do not handle a particular event, the event is inherited by (or bubbled up to) the component's container. The container then either handles the event or it is bubbled up to its container and so on, until the highest-level container has been tried. In the event-delegation model, specific objects are designated as event handlers for GUI components. These objects implement event-listener interfaces. The event-delegation model is more efficient than the event-inheritance model because it eliminates the processing required to support the bubbling of unhandled events.

How is it possible for two String objects with identical values not to be equal under the == operator?

The == operator compares two objects to determine if they are the same object in memory. It is possible for two String objects to have the same value, but located indifferent areas of memory.

Why are the methods of the Math class static?

So they can be invoked as if they are a mathematical code library.

What Checkbox method allows you to tell if a Checkbox is checked?

getState()

What state is a thread in when it is executing?

An executing thread is in the running state.

What are the legal operands of the instanceof operator?

The left operand is an object reference or null value and the right operand is a class, interface, or array type.

How are the elements of a GridLayout organized?

The elements of a GridBad layout are of equal size and are laid out using the squares of a grid.

What an I/O filter?

An I/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.