CS FundamentalsHardGATE CS
A UML class diagram says each Course has 1..3 Instructors and each Instructor teaches 0..4 Courses (many-to-many). Which configuration is VALID?
- A. A course with no instructor yet
- B. An instructor teaching 5 courses
- C. Two instructors sharing three courses, one instructor teaching no course
- D. A course with 4 instructors
Correct answer: C. Two instructors sharing three courses, one instructor teaching no course
The multiplicity next to Instructor (1..3) bounds the instructors per course and the one next to Course (0..4) bounds courses per instructor. Option C keeps every course at 1–2 instructors and every instructor at 0–3 courses; the others break a bound.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A company split its monolith into 12 microservices, but every release still needs all 12 deployed together in a fixed order, and several…
- A gRPC API's Protocol Buffers message had field 'int32 discount = 4', which was deleted last year. A developer now adds 'string coupon =…
- For monitoring, which pairing of method and what it tracks is correct?
- A service receives 2000 requests per second; each request holds a worker thread for 150 ms on average. It runs on 4 identical instances…
- A request flows client → A → B → C → D. Services A, B and C each make up to 3 attempts (1 + 2 retries) when their downstream call fails. D…
- A web API's documentation says nothing about the order of items in a JSON list, which happened to be sorted by id. After an internal…