Eduversity.bd — Learn with Us, Achieve Your Dreams

Object Oriented Programming (OOP) — MCQ প্রশ্ন

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

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

  1. Every class has at least one constructor function, even when none is declared.

    1. true
    2. false

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

  2. Can constructors be overloaded?

    1. true
    2. false

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

  3. What is the difference between struct and class in terms of Access Modifier?

    1. by default all the struct members are private while by default class members are public.
    2. by default all the struct members are protected while by default class members are private.
    3. by default all the struct members are public while by default class members are private.
    4. by default all the struct members are public while by default class members are protected.

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

  4. An abstract class can be instantiated.

    1. true
    2. false

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

  5. The default access level assigned to members of a class is

    1. private
    2. public
    3. protected
    4. needs to be assigned

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

  6. There is nothing like a virtual constructor of a class.

    1. true
    2. false

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

  7. Which of the following operators allow defining the member functions of a class outside the class?

    1. ::
    2. ?
    3. :?
    4. %

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

  8. Which type of class has only one unique value for all the objects of that same class?

    1. this
    2. friend
    3. static
    4. both a and b

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

  9. Which one of the following is not a fundamental data type in C++?

    1. float
    2. string
    3. int
    4. char

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

  10. What is a constructor?

    1. a class automatically called whenever a new object of this class is created.
    2. a class automatically called whenever a new object of this class is destroyed.
    3. a function automatically called whenever a new object of this class is created.
    4. a function automatically called whenever a new object of this class is destroyed.

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

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