Anda di halaman 1dari 6

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail https://groups.google.

com/group/latestoffcampusLive updates on Facebook @ https://www.facebook.com/LatestOffCampus

TITLE: Ness Technologies Sample Technical Placement Paper Level1 (Bolded option is your answer) 1. Which class does not override the equals() and hashCode() methods, inheriting them directly from class Object? A B C D java.lang.Stri java.lang.Double java.lang.StringB java.lang.Ch ng uffer aracter 2. Which collection class allows you to grow or shrink its size and provides indexed access to its elements, but whose methods are not synchronized? A B C java.util.List D java.util.Has java.util.LinkedHa java.util.ArrayLis hSet shSet t 3. You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provides that capability? A B java.util.Set C java.util.List D java.util.Map java.util.Collectio n 4. Which interface does java.util.Hashtable implement? A B Java.util.List C D Java.util.Ma Java.util.HashTab Java.util.Collectio p le n 5. Which interface provides the capability to store objects using a keyvalue pair? A B Java.util.Set Java.util.Ma p C Java.util.List D Java.util.Collectio n

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail https://groups.google.com/group/latestoffcampusLive updates on Facebook @ https://www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail https://groups.google.com/group/latestoffcampusLive updates on Facebook @ https://www.facebook.com/LatestOffCampus

6. Which is valid declaration of a float? A float f = 1F; B float f = 1.0; C float f = "1"; D float f = 1.0d;

7. What is the numerical range of char? A 0 to 32767 B 0 to 65535 C -256 to 255 D -32768 to 32767

8. Which of the following would compile without error? A int a = B int b = C int c = D int d = Math.abs(- Math.abs(5.0); Math.abs(5.5F); Math.abs(5L); 5); 9. What is the name of the method used to start a thread execution? A init(); B start(); C run(); D resume();

10. Which two of the following methods are defined in class Thread? 1.start() 2.wait() 3.notify() 4.run() 5.terminate() A 1 and 4 B 2 and 3 C 3 and 4 D 2 and 4 11. Which of the following will directly stop the execution of a Thread?

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail https://groups.google.com/group/latestoffcampusLive updates on Facebook @ https://www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail https://groups.google.com/group/latestoffcampusLive updates on Facebook @ https://www.facebook.com/LatestOffCampus

A wait()

D exits synchronized code 12. Which method must be defined by a class implementing the java.lang.Runnable interface? A void run() B public void run() C public void start() D void run(int priority)

B notify()

C notifyall()

13. Which will contain the body of the thread? A run(); B start(); C stop(); D main();

14. Which of the following will not directly cause a thread to stop? A notify() B wait() C InputStream access D sleep()

15. Which class or interface defines the wait(), notify(),and notifyAll() methods? A Object B Thread C Runnable D Class

16. Who invented the Middle level language c? A Dennis M. B Niklaus Writh Ritchie C Seymour Papert D Donald Kunth

17. Which of the following is not real number? A 16.23 B -16.23 C 40 D 40.52

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail https://groups.google.com/group/latestoffcampusLive updates on Facebook @ https://www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail https://groups.google.com/group/latestoffcampusLive updates on Facebook @ https://www.facebook.com/LatestOffCampus

18. Which of the following instructions have only one operand? A Multiply B Add C Shift D Subtract

19. C was developed in the year? A 1971 B 1981 C 1972 D 1982

20. C is a __________ language? A High Level B Low level C Middle level D Machine level

21. C programming language was developed by? A Dennis Ritchie B Bill Gates C Peter Nortor D Charles Babbage

22. Integers, namely and decimal are types of? A Real constants B Integer constants C String constants D Single quotes

23. String constants is a sequence of characters enclosed in? A Single quotes B Floating C Double quotes D None of these

24. In C language reading data from keyboard?

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail https://groups.google.com/group/latestoffcampusLive updates on Facebook @ https://www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail https://groups.google.com/group/latestoffcampusLive updates on Facebook @ https://www.facebook.com/LatestOffCampus

A Printf

B Scanf

C Int

D Main()

25. In a C language && is a? A Relational operator B Logical operator C Arithmetic operators D None of these

26. _________ statement is used control the flow of execution? A If statement B Switch statement C Goto statement D All of these

27. Which of the following are scalar data types? A Float B Union C Array D Pointer

28. Which of the following are tokens in C? A Keywords B Variable C Constants D All of above

29. Which symbol is used as a statement terminator in C? A Semicolon B Hash C Tilde D Exlamation Mark

30. The maximum length of a variable in C? A8 B 16 C 32 D 64

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail https://groups.google.com/group/latestoffcampusLive updates on Facebook @ https://www.facebook.com/LatestOffCampus

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail https://groups.google.com/group/latestoffcampusLive updates on Facebook @ https://www.facebook.com/LatestOffCampus

31. What will be the maximum size of a float variable in c? A 1 byte B 2 bytes C 4 bytes D 8 bytes

32. Which of the following is a key word is used for a storage class? A Printf B External C Auto D Scanf

33. In the C language a represents? A A digit B An integer C A character D A word

34. The number of relation operators in the C language is? A Four 35. A link is? A A compiler B A loader C An assembler D An analyzing tool in C B Six C Three D Seven

36. The continue command cannot be used with? A For B Switch C Do D While

Visit www.latestoffcampus.com for placement papers, interview tips & job updates. Toget freeupdates tomail https://groups.google.com/group/latestoffcampusLive updates on Facebook @ https://www.facebook.com/LatestOffCampus

Anda mungkin juga menyukai