Skip to content
VUBuddy

CS504 Quiz 3 Set 2

Software Engineering - I PDF 848 KBUpdated 23 Oct 2026
Quiz CS504 Quiz 3 Set 2 PDF 848 KB
vubuddy.com
Type
Quiz
Course
CS504 Software Engineering - I
Size
PDF 848 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 848 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 3. Download the file for all 3 pages.

Q1. In composition ____________ are called from composing objects to composed objects.

  1. Pointers
  2. Constructors
  3. Destructors
  4. Member Functions

Correct answer: Constructors

Q2. Which of the following statement is TRUE about a class's Static Member Function?

  1. It can access non-static data members.
  2. It is used to access static data members only.
  3. It can only be called by a particular object of class.
  4. It can access constant data members of the class.

Correct answer: It is used to access static data members only.

Q3. While implementing ___________ in OOP paradigm, objects can exist independently.

  1. Aggregation
  2. Inheritance
  3. Composition
  4. Polymorphism

Correct answer: Aggregation

Q4. Which of these violates encapsulation in object-oriented programming?

  1. Constructors
  2. Friend functions
  3. Destructors
  4. Virtual functions

Correct answer: Friend functions

Q5. Which keyword is used in the function header to define an overloaded operator?

  1. new
  2. overload
  3. operator
  4. function

Correct answer: operator

Q6. What is the arity of a binary operator +?

  1. 1
  2. 0
  3. 2
  4. Unlimited

Correct answer: 2

Q7. Student *ptr = new Student(“Ali”); is an example of __________.

  1. Dynamic memory allocation
  2. Destructor
  3. Static memory allocation
  4. Constructor

Correct answer: Dynamic memory allocation

Q8. Memory is allocated to non-static members only, when _______________.

  1. Object is created
  2. Class is created
  3. Object is destructed
  4. Program is compiled

Correct answer: Object is created

Q9. What does return *this; do in an overloaded assignment operator?

  1. Returns a temporary object
  2. Returns a reference to the current object
  3. Terminates the function
  4. Returns a pointer

Correct answer: Returns a reference to the current object

Q10. Which operator overload is necessary to support c3 += 0.087; in Complex?

  1. operator =(Complex&)
  2. operator +(double&, Complex&)
  3. operator +=(double&)
  4. operator +(Complex&, double&)

Correct answer: operator +(double&, Complex&)

Q11. Whole Part Structure is also called ______

  1. Association
  2. Specialization
  3. Aggregation
  4. Generalization

Correct answer: Aggregation

Q12. ___________ is concerned with decomposing a system into interacting sub-systems.

  1. Control Modeling
  2. System Structuring
  3. Modular Decomposition
  4. Work Breakdown Structure

Correct answer: System Structuring

Q13. _________________ architectural model is widely used in mainframe application.

  1. Layered Model
  2. Repository Model
  3. Client-Server Model
  4. Filter Model

Correct answer: Repository Model

Q14. ________ has become a standard notation for object oriented system modeling.

  1. C++
  2. UML
  3. OCL (object Constraint Language)
  4. Java

Correct answer: UML

Q15. Aynchronous messages :

  1. are shown by dotted line
  2. occurs in multi-threaded applications
  3. are implemented as operation call
  4. These block caller before response

Correct answer: are shown by dotted line

Q16. Performance, Security and maintainability are the types of ________ requirements.

  1. Business
  2. Functional
  3. Domain
  4. Non-Functional

Correct answer: Non-Functional

Q17. A useful technique for evaluating the overall complexity of a proposed

architecture is to look at the

component's _______ .

A. flow dependencies and sharing dependencies

B. size and cost C. number and size of components D. function points

Q18. Maintainability and Portability issues are discussed in _____________.

  1. Code View
  2. Physical View
  3. Functional View
  4. Logical View

Correct answer: Code View

Q19. Defining the services of an object means:

  1. Whome it knows?
  2. What it knows?
  3. Who knows it?
  4. What it does?

Correct answer: What it does?

Q20. Selecting Objects (in a domain) include:

  1. Only Actors
  2. Only Actors and Places
  3. Actors, Participants and Places
  4. Only Participants

Correct answer: Actors, Participants and Places

All CS504 files →
CS504 Software Engineering - I All CS504 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.