25 Questions
Which of the following is a fundamental pillar of object-oriented programming?
Encapsulation
If a member of a class has the protected modifier, what can access it?
Members of derived classes
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 assembly and by derived classes
Which of the following statements about constructors is correct?
Classes without constructors are given a public parameterless constructor by the C# compiler.
What are the two meanings of polymorphism in C#?
Both 1) and 3)
Which of the following statements about classes is correct?
Both 1) and 2)
Which of the following is a difference between traditional waterfall and agile software development methodologies?
All of the above.
Which of the following is a fundamental pillar of object-oriented programming?
Encapsulation
Which of the following is a fundamental pillar of object-oriented programming?
Inheritance
Which of the following is a fundamental pillar of object-oriented programming?
Polymorphism
___ is the use of different access restrictions on elements of a class.
Encapsulation
___ is also known as data hiding.
Encapsulation
If a member of a class has the protected modifier, ___.
Members of derived classes can access it
If a member of a class has the internal modifier ___.
Only members inside the same assembly can access it
If a member of a class is protected internal, the member is ____.
Internal
A class __ directly inherit from more than one base class. However, a class ___ have multiple levels of inheritance.
Cannot, can
If a base class method is virtual, then it ___ overridden by its derived class.
May be
If a base class method is abstract, then it ___ overridden by the derived class or remains abstract in the derived class.
Must be
Which one of these is true about polymorphism in C#?
All of the above
Which of the following statements about constructors is correct?
Both of the above
Which of the following is a difference between traditional waterfall and agile software development methodologies?
Waterfall projects use project managers for a development team while agile teams are self-organizing
Which of the following is a role in agile that represents the business users who pay for and will use the software?
Product owner
Which of the following is an event in agile software development where the team sets the sprint goal?
Sprint planning meeting
Which of the following is an event in agile software development that has the smallest time-box?
Daily scrum
Which of the following is a role in agile that refers to a servant leader?
Scrum master
Test your knowledge of object-oriented programming with this quiz! Learn about the fundamental pillars, software design techniques, and the use of classes in object-oriented programming.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free