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. (C)</p> Signup and view all the answers

What are the two meanings of polymorphism in C#?

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

Which of the following statements about classes is correct?

<p>Both 1) and 2) (B)</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. (D)</p> Signup and view all the answers

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

<p>Encapsulation (D)</p> Signup and view all the answers

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

<p>Inheritance (A)</p> Signup and view all the answers

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

<p>Polymorphism (D)</p> Signup and view all the answers

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

<p>Encapsulation (A)</p> Signup and view all the answers

___ is also known as data hiding.

<p>Encapsulation (C)</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 (D)</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 (C)</p> Signup and view all the answers

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

<p>Internal (A)</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 (A)</p> Signup and view all the answers

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

<p>May be (B)</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 (C)</p> Signup and view all the answers

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

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

Which of the following statements about constructors is correct?

<p>Both of the above (C)</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 (C)</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 (A)</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 (C)</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 (D)</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 (B)</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser