Java Programming — অংশ 2 — MCQ প্রশ্ন
অনার্স CSE/ICT — BSc প্রশ্নব্যাংক · Java Programming। এই অধ্যায়ে মোট 55টি প্রশ্ন আছে। নিচে প্রথম 10টি প্রশ্ন ও অপশন দেওয়া হলো; সঠিক উত্তর সার্ভারে যাচাই হয়।
এই অধ্যায়ে সব প্রশ্নে অনুশীলন করুন
A class is declared by use of the ________ keyword.
- object.
- class.
- instance.
- method.
উত্তর যাচাই করতে প্র্যাকটিসে যান।
The new operator dynamically allocates ________ for an object and returns a reference to it.
- classes.
- variables.
- memory.
- none of the above.
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Method overloading is one of the way that Java supports ____________.
- encapsulation.
- class.
- inheritence.
- polymorphism.
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Does a class inherit the constructors of its super class?
- Yes
- Sometimes Yes
- Always No
- Sometimes no
উত্তর যাচাই করতে প্র্যাকটিসে যান।
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 and 2.
- 1 and 3.
- 2 and 3.
- 1, 2 and 3.
উত্তর যাচাই করতে প্র্যাকটিসে যান।
finalize( ) is only called just prior to _________.
- initialization.
- runtime.
- garbage collection.
- destruction.
উত্তর যাচাই করতে প্র্যাকটিসে যান।
The data or variables, defined within a class are called _______ variables.
- object.
- class.
- instance.
- schema.
উত্তর যাচাই করতে প্র্যাকটিসে যান।
In this example class_var = new classname ( ); the class name followed by parentheses~~~specifies the _________ for the class.
- destructor.
- constructor.
- variables.
- memory.
উত্তর যাচাই করতে প্র্যাকটিসে যান।
What is meant by timeslicing or time sharing?
- Timeslicing is the method of de-allocating CPU time to individual threads in a priority schedule.
- Timeslicing is the method of allocating CPU space to individual threads in a priority schedule.
- Timeslicing is the method of allocating CPU time to individual threads in a priority schedule.
- Timeslicing is the method of de-allocating CPU space to individual threads in a priority schedule.
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which of the following statements correctly describes an interface?
- It's a concrete class.
- It's a superclass.
- It's a type of abstract class.
- It's a subclass.
উত্তর যাচাই করতে প্র্যাকটিসে যান।