Master Object-Oriented Programming
25 Questions
3 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following is a fundamental pillar of object-oriented programming?

  • Inheritance
  • Polymorphism
  • Encapsulation (correct)
  • Abstraction
  • If a member of a class has the protected modifier, what can access it?

  • Only members inside the same namespace
  • Members of derived classes (correct)
  • Only members inside the same class
  • Only members inside the same assembly
  • What is the difference between internal and protected internal access modifiers?

  • Internal allows access only within the same assembly, while protected internal allows access within the same class and by derived classes
  • Internal allows access only within the same namespace, while protected internal allows access within the same assembly and by derived classes
  • Internal allows access only within the same assembly, while protected internal allows access within the same assembly and by derived classes (correct)
  • Internal allows access only within the same class, while protected internal allows access within the same assembly and by derived classes
  • Which of the following statements about constructors is correct?

    <p>Classes without constructors are given a public parameterless constructor by the C# compiler.</p> Signup and view all the answers

    What are the two meanings of polymorphism in C#?

    <p>Both 1) and 3)</p> Signup and view all the answers

    Which of the following statements about classes is correct?

    <p>Both 1) and 2)</p> Signup and view all the answers

    Which of the following is a difference between traditional waterfall and agile software development methodologies?

    <p>All of the above.</p> Signup and view all the answers

    Which of the following is a fundamental pillar of object-oriented programming?

    <p>Encapsulation</p> Signup and view all the answers

    Which of the following is a fundamental pillar of object-oriented programming?

    <p>Inheritance</p> Signup and view all the answers

    Which of the following is a fundamental pillar of object-oriented programming?

    <p>Polymorphism</p> Signup and view all the answers

    ___ is the use of different access restrictions on elements of a class.

    <p>Encapsulation</p> Signup and view all the answers

    ___ is also known as data hiding.

    <p>Encapsulation</p> Signup and view all the answers

    If a member of a class has the protected modifier, ___.

    <p>Members of derived classes can access it</p> Signup and view all the answers

    If a member of a class has the internal modifier ___.

    <p>Only members inside the same assembly can access it</p> Signup and view all the answers

    If a member of a class is protected internal, the member is ____.

    <p>Internal</p> Signup and view all the answers

    A class __ directly inherit from more than one base class. However, a class ___ have multiple levels of inheritance.

    <p>Cannot, can</p> Signup and view all the answers

    If a base class method is virtual, then it ___ overridden by its derived class.

    <p>May be</p> Signup and view all the answers

    If a base class method is abstract, then it ___ overridden by the derived class or remains abstract in the derived class.

    <p>Must be</p> Signup and view all the answers

    Which one of these is true about polymorphism in C#?

    <p>All of the above</p> Signup and view all the answers

    Which of the following statements about constructors is correct?

    <p>Both of the above</p> Signup and view all the answers

    Which of the following is a difference between traditional waterfall and agile software development methodologies?

    <p>Waterfall projects use project managers for a development team while agile teams are self-organizing</p> Signup and view all the answers

    Which of the following is a role in agile that represents the business users who pay for and will use the software?

    <p>Product owner</p> Signup and view all the answers

    Which of the following is an event in agile software development where the team sets the sprint goal?

    <p>Sprint planning meeting</p> Signup and view all the answers

    Which of the following is an event in agile software development that has the smallest time-box?

    <p>Daily scrum</p> Signup and view all the answers

    Which of the following is a role in agile that refers to a servant leader?

    <p>Scrum master</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser