logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • An algorithm written once which can be used in many places is called


  • Options
  • A. Block
  • B. Function
  • C. Datatype
  • D. None

  • Correct Answer
  • Function 

    Explanation

    Function is an algorithm which can be used any where in the program when required


  • Technology problems


    Search Results


    • 1. What are the 3main tasks of JVM?
    • Discuss
    • 2. By whom will the unallocated memory that is no longer needed will be cleared in java?

    • Options
    • A. Java Virtual Machine
    • B. Garebage collector
    • C. Both A and B
    • D. None
    • Discuss
    • 3. Keeping the actoins and attributes together under a single unit is called

    • Options
    • A. Encapsulation
    • B. Information Hiding
    • C. Polymorphism
    • D. Inheritance
    • Discuss
    • 4. How many of the following will follow JavaBean Listener naming rules? addListener addMouseListener deleteMouseListener removeMouseListener registerMouseListener

    • Options
    • A. 1
    • B. 2
    • C. 3
    • D. 4
    • Discuss
    • 5. Which king class properly represents the relationship "King has a best friend who is a Soldier"?

    • Options
    • A. class King extends Soldier { }
    • B. class King implements Soldier { }
    • C. class King { private BestFriend Soldier; }
    • D. class King { private Soldier bestFriend; }
    • Discuss
    • 6. Client code having direct access to internal data is called

    • Options
    • A. Encapsulation
    • B. DataHiding
    • C. Polymorphism
    • D. DataAbstraction
    • Discuss
    • 7. There is one default constructor in every class.

    • Options
    • A. The above statement is true
    • B. The above statement is false
    • C. Both true and false
    • D. None
    • Discuss
    • 8. Which of the following is not the other name of attriibute?

    • Options
    • A. Data member
    • B. Instance variable
    • C. instance
    • D. Data filed
    • Discuss
    • 9. In a single virtual machine, the Java programming language passes arguments by

    • Options
    • A. Refference
    • B. Value
    • C. Both A and B
    • D. None
    • Discuss
    • 10. Which key word is to be used to tell the JVM to skip the variable while performing the serialization process of the object containing it?

    • Options
    • A. Transcient
    • B. Volatile
    • C. Static
    • D. Final
    • Discuss


    Comments

    There are no comments.

Enter a new Comment