Course Hero Logo

software_design.pdf - Institute of Informatics &...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 5 out of 29 pages.

Institute of Informatics & Communication University ofDelhi South CampusM. Sc. Informatics 1st semester Lab Examination -2021Paper No: ITCC-101 (Software Design & Programming)NameAnkur tyagiCollege roll no20/1409Email id- [email protected]
1. a. A professor has a name, address, phone number, email address, and salary.A student has also a name, address, phone number, email address and averagemarks. A seminar has a name and a number. When a student is enrolled in aseminar, the marks for this enrollment are recorded and the current average aswell as the final mark (if there is one) can be obtained from the enrollment. Froma student, one can obtain a list of seminars he or she is enrolled in. Professorsteach seminars. Draw a class diagram for this university. Add attributes andmethods when necessary. (15)Practical 1
b. Differentiate between Class diagram and Object diagram. (5)CLASS DIAGRAMOBJECT DIAGRAM1. Class diagram is a graph of classifier elementsconnected by various static relationships. A “classdiagram may also contain interfaces, packages,relationships, and even instances, such as objectsand links.1. object diagram on the other hand is a graph ofinstances, including objects and data values. Astatic object diagram is a instance of a classdiagram. It Shows a snapshot of the detailed stateof a system at a point in time.2. A class diagram shows your classes andrelationships2. An object diagram shows the interactionbetween the objects at some point of time.3. Class diagram shows the actual classifiers andtheir relationships in a system3. Object diagram shows specific instances ofthose classifiers and the links between thoseinstances at a point of time.4. A class diagram consists of members andmethods mostly static4. object diagram shows what values those objectscontain when the program is in this state.
2. a. Write a program to sort a list of numbers using call by reference. The smallestnumber should be output first. (10)

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 29 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Winter
Professor
Tanmoy
Tags
object diagram

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture