Eduversity.bd — Learn with Us, Achieve Your Dreams

Java Programming — অংশ 2 — MCQ প্রশ্ন

অনার্স CSE/ICT — BSc প্রশ্নব্যাংক · Java Programming। এই অধ্যায়ে মোট 55টি প্রশ্ন আছে। নিচে প্রথম 10টি প্রশ্ন ও অপশন দেওয়া হলো; সঠিক উত্তর সার্ভারে যাচাই হয়।

এই অধ্যায়ে সব প্রশ্নে অনুশীলন করুন

  1. A class is declared by use of the ________ keyword.

    1. object.
    2. class.
    3. instance.
    4. method.

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  2. The new operator dynamically allocates ________ for an object and returns a reference to it.

    1. classes.
    2. variables.
    3. memory.
    4. none of the above.

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  3. Method overloading is one of the way that Java supports ____________.

    1. encapsulation.
    2. class.
    3. inheritence.
    4. polymorphism.

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  4. Does a class inherit the constructors of its super class?

    1. Yes
    2. Sometimes Yes
    3. Always No
    4. Sometimes no

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  5. Methods declared as static have several restrictions:~~~1) They can only call other static methods.~~~2) They must only access static data.~~~3) They cannot refer to this or super in any way~~~Which of these are true?

    1. 1 and 2.
    2. 1 and 3.
    3. 2 and 3.
    4. 1, 2 and 3.

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  6. finalize( ) is only called just prior to _________.

    1. initialization.
    2. runtime.
    3. garbage collection.
    4. destruction.

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  7. The data or variables, defined within a class are called _______ variables.

    1. object.
    2. class.
    3. instance.
    4. schema.

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  8. In this example class_var = new classname ( ); the class name followed by parentheses~~~specifies the _________ for the class.

    1. destructor.
    2. constructor.
    3. variables.
    4. memory.

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  9. What is meant by timeslicing or time sharing?

    1. Timeslicing is the method of de-allocating CPU time to individual threads in a priority schedule.
    2. Timeslicing is the method of allocating CPU space to individual threads in a priority schedule.
    3. Timeslicing is the method of allocating CPU time to individual threads in a priority schedule.
    4. Timeslicing is the method of de-allocating CPU space to individual threads in a priority schedule.

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  10. Which of the following statements correctly describes an interface?

    1. It's a concrete class.
    2. It's a superclass.
    3. It's a type of abstract class.
    4. It's a subclass.

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

← আগের অধ্যায়পরের অধ্যায় →