Advertisement

Udemy WW Udemy WW

Thursday 8 December 2011

Multiple choice question on java (for Technical round of Interview) - Part 1

PART-1   PART-2    PART-3


1. ___________ is the ability of an Java application to perform multiple tasks at the same time.


  1. Multiprogramming

  2. Multithreading

  3. Multiprocessing

  4. Multitasking


2. Java is designed for the distributed environment of the Internet, because it handles

_________ protocols


  1. UDP

  2. TCP/IP

  3. FTP

  4. TEL


3. Java is associated with _______ programming Language


  1. Oak

  2. Basic

  3. C

  4. Perl


4.Which of the following is a Java keyword?


  1. external

  2. implement

  3. throw

  4. Integer


5. A compiler converts the Java program into an intermediate language representation called


  1. bytecode

  2. byte

  3. byteclass

  4. bytejava


6. _____________ Operator is used to create an object.


  1. class

  2. new

  3. print

  4. main


7. Which of the following  is used to initialize the instance variable of a class.


  1. Class

  2. Public

  3. Constructor

  4. Destructor 


8. Java platform consists of JVM and a package of readymade software components this

package is known as ___________.

  1. Java API

  2. JVM API

  3. JM API

  4. API


9. Which of the following is not a Looping statement ____________


  1. FOR

  2. Switch

  3. while

  4. Do-While


10. _____________ is a multi way branch statement

  1. Switch

  2. continue

  3. break

  4. Label


11. Choose the proper operator precedence when evaluating an Expression?


1. Comparisons

2. Logical operations

3. Increment

4. Arithmetic operations


  1. 1-2-4-3

  2. 4-3-1-2

  3. 2-1-4-3

  4. 3-4-1-2


12. The ______ statement is used inside the switch to terminate a Statement sequence


  1. break

  2. Jump

  3. exit

  4. goto


13. A class that is inherited is called a ____________


  1. superclass

  2. Subclass

  3. subsetclass

  4. Relativeclass


14. An _________ determines which features of a class may be used by other classes


  1. specifier

  2. inheritance

  3. implementation

  4. Access specifier


15. Which property of Java allows the creation of hierarchical classifications?


  1. Interface

  2. Inheritance

  3. Robust

  4. Distributed


16. Which of the following is WRONG statement with respect to rules for overriding Methods?


  1. The method name and the order of arguments should be identical to that of the super class method.

  1. The return type of both the methods must be the different.

  2. The overriding method cannot be less accessible than the method it overrides.

  3. An overriding method cannot raise more exceptions than those raised by the super Class.


17. The class at the top of the exception classes hierarchy is called ____________


  1. Common

  2. Throwable.

  3. NULL

  4. Catch


18. Find the keyword which is not used to implement exception


  1. try

  2. catch

  3. finally

  4. access


19. Which of the following is not a Exceptions in Java.


  1. Arithmetic Exception

  2. Nullpointer Exception

  3. ArrayoutofBounds Exception

  4. Logical Exception


20. Which of the following Definitions hold good for Exception?


  1. Abnormal event that occurs during program execution and disrupts the normal flow of Instruction.

  1. The unexpected situations that may occur during program execution

  2. The term exception denotes an exception event.

  3. All the above

17 comments:

  1. how can i get answer for these questions my mailid r.ashargowda17@gmail.com

    ReplyDelete
  2. how can i get answer for these questions my mailid r.ashargowda17@gmail.com

    ReplyDelete
    Replies
    1. Asha choice given in bold letter is right answer

      Delete
    2. This comment has been removed by a blog administrator.

      Delete
  3. 0A995Lindsey35C0115 April 2024 at 01:56

    E72FB
    ----
    ----
    ----
    ----
    ----
    ----
    matadorbet
    ----
    ----

    ReplyDelete

Advertisement

Udemy WW