Object Oriented Programming (OOP) — MCQ প্রশ্ন
অনার্স CSE/ICT — BSc প্রশ্নব্যাংক · Object Oriented Programming (OOP)। এই অধ্যায়ে মোট 97টি প্রশ্ন আছে। নিচে প্রথম 10টি প্রশ্ন ও অপশন দেওয়া হলো; সঠিক উত্তর সার্ভারে যাচাই হয়।
এই অধ্যায়ে সব প্রশ্নে অনুশীলন করুন
Every class has at least one constructor function, even when none is declared.
- true
- false
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Can constructors be overloaded?
- true
- false
উত্তর যাচাই করতে প্র্যাকটিসে যান।
What is the difference between struct and class in terms of Access Modifier?
- by default all the struct members are private while by default class members are public.
- by default all the struct members are protected while by default class members are private.
- by default all the struct members are public while by default class members are private.
- by default all the struct members are public while by default class members are protected.
উত্তর যাচাই করতে প্র্যাকটিসে যান।
An abstract class can be instantiated.
- true
- false
উত্তর যাচাই করতে প্র্যাকটিসে যান।
The default access level assigned to members of a class is
- private
- public
- protected
- needs to be assigned
উত্তর যাচাই করতে প্র্যাকটিসে যান।
There is nothing like a virtual constructor of a class.
- true
- false
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which of the following operators allow defining the member functions of a class outside the class?
- ::
- ?
- :?
- %
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which type of class has only one unique value for all the objects of that same class?
- this
- friend
- static
- both a and b
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which one of the following is not a fundamental data type in C++?
- float
- string
- int
- char
উত্তর যাচাই করতে প্র্যাকটিসে যান।
What is a constructor?
- a class automatically called whenever a new object of this class is created.
- a class automatically called whenever a new object of this class is destroyed.
- a function automatically called whenever a new object of this class is created.
- a function automatically called whenever a new object of this class is destroyed.
উত্তর যাচাই করতে প্র্যাকটিসে যান।