Sie sind auf Seite 1von 5

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. To get free updates to mail http://groups.google.

com/group/latestoffcampus/subscribe Live updates on Facebook @ www.facebook.com/LatestOffCampus

Amdocs Technical Latest Sample Placement Paper "Correct" Answers Highlighted In Bold
1. In a selection sort of n elements, how many times is the swap function called in the complete execution of the algorithm? A) n - 1 B) n log n C) 1 D) n^2 2. What is the range of the char type? A) 0 to 216 B) 0 to 215-1 C) 0 to 215 D) 0 to 216-1 3. Suppose that a selection sort of 100 items has completed 42 iterations of the main loop. How many items are now guaranteed to be in their final spot (never to be moved again)? A) 41 B) 43 C) 42 D) 21 4. Converting of primitive types to objects can be explicitly. A) True B) False C) Both A and B D) None

5. What is the worst-case time for merge sort to sort an array of n elements? A) O(n log n) B) O(n^2) C) O(n) D) O(log n) 6. What is the worst-case time for heap sort to sort an array of n elements? A) O(log n) B) O(n^2) C) O(n log n) D) O(n) 7. What is the worst-case time for quicksort to sort an array of n elements? A) O(n log n) B) O(n^2) C) O(log n) D) O(n) 8. Casting between primitive types allows conversion of one primitive type to another. A) True B) False C) Both A and B D) None
Visit www.latestoffcampus.com for placement papers, interview tips & job updates. To get free updates to mail http://groups.google.com/group/latestoffcampus/subscribe Live updates on Facebook @ www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. To get free updates to mail http://groups.google.com/group/latestoffcampus/subscribe Live updates on Facebook @ www.facebook.com/LatestOffCampus

9. A constructor is automatically called when an object is instantiated A) true B) false C) Both A and B D) None

10. Which of the following operators are used in conjunction with this and super references? A) The new B) The dot C)Both A and B D) The instanceof operator operator operator 11. When may a constructor be called without specifying arguments? A) When the name B) When the of the constructor default differs from that of constructor is the class not called 12. An interface contains __ methods C) When there D)None are no constructors for the class

A) unimplemented B) Implemented C) Non-abstract D)Abstract 13. Each class in java can have a finalize method A) true B) false C) Both A and B D) None

14. What tags are mandatory when creating HTML to display an applet A) code, name B) code, height, C) codebase, D) name, height, width height, width width 15. Because finalize () belongs to the java.lang.Object class, it is present in all ___. A) objects B) methods C) classes D)None 16. Which of the following creates a List with 5 visible items and multiple selections enabled? A) new B) new List(true, C) new List(5, D) new List(5, List(false,5) 5) true) false) 17. When you write finalize () method for your class, you are overriding a finalize inherited from a super class.
Visit www.latestoffcampus.com for placement papers, interview tips & job updates. To get free updates to mail http://groups.google.com/group/latestoffcampus/subscribe Live updates on Facebook @ www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. To get free updates to mail http://groups.google.com/group/latestoffcampus/subscribe Live updates on Facebook @ www.facebook.com/LatestOffCampus

A) true

B) false

C) Both A and B

D) None

18. A Frames background color is set to Color.Yellow, and a Buttons background color is to Color.Blue. Suppose the Button is added to a Panel, which is added to the Frame. What background color will be used with the Panel? A) Colr.Yellow B) Color.Blue C) Color.Green D) Color.White 19. What is an example of polymorphism? A) Method B) Inner class C) Method D) Anonymous overloading overriding classes 20. Are objects referenced by variable candidates for garbage collection when the variable goes out of scope? A) yes B) no C) Both A and B D) None 21. Interfaces cant be extended. A) True B) False C) Both A and B D) None

22. Which layout should you use to organize the components of a container in a tabular form? A) GridLayout B) C) FlowLayout D) CardLayout BorederLayout 23. When two threads are waiting on each other and can't precede the program is said to be in a deadlock? A) True B) False C) Both A and B D) None 24. When using the GridBagLayout manager, each new component requires a new instance of the GridBagConstraints class. Is this statement true or false? A) true B) false C) Both A and B D) None 25. Object class is a superclass of all other classes? A) True B) False C) Both A and B D) None

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. To get free updates to mail http://groups.google.com/group/latestoffcampus/subscribe Live updates on Facebook @ www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. To get free updates to mail http://groups.google.com/group/latestoffcampus/subscribe Live updates on Facebook @ www.facebook.com/LatestOffCampus

26. Which of the following may contain a menu bar? A) A panel B) A menu C) A frame D) An applet

27. Java supports multiple inheritance? A) True B) False C) Both A and B D) None

28. Which of the following are Java keywords? (multiple) A) extends B) goto C) malloc D) FALSE

29. Final methods can be overridden. A) True B) False C) Both A and B D) None

30. What is the legal range of a byte integral type? A) (-32,768) to B) (-256) to 255 C) (-128) to 127 D) 0 to 65, 535 32,767 31. Final variables should be declared in the beginning? A) True B) False C) Both A and B D) None

32. Which of the following are correct? (multiple) A) 128 >> 1 B) 128 >>> 1 C) 128 >> 1 D) 128 >>> 1 gives -64 gives 64 gives 64 gives -64 33. Which of the following is a legal return type of a method overloading the following method: public void add (int a) {...} A) void B) Can be anything C) int D)float 34. What is the name of the interface that can be used to define a class that can execute within its own thread? A) Runnable B) Thread C) Threadable D Executable)

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. To get free updates to mail http://groups.google.com/group/latestoffcampus/subscribe Live updates on Facebook @ www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. To get free updates to mail http://groups.google.com/group/latestoffcampus/subscribe Live updates on Facebook @ www.facebook.com/LatestOffCampus

35. What is the name of the method used to schedule a thread for execution? A) init(); B) sleep(); C) start(); D) resume(); 36. Which of the following layout managers honors the preferred size of a component: (multiple) A) BorderLayout B) FlowLayout C) CardLayout D) GridLayout

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. To get free updates to mail http://groups.google.com/group/latestoffcampus/subscribe Live updates on Facebook @ www.facebook.com/LatestOffCampus

Das könnte Ihnen auch gefallen