【COM00019I】Computer Science

BSc, BEng, MEng and MMath Degree Examinations 2020–21
Department Computer Science
Title Engineering 1 (ENG1)
Time Allowed 24 Hours (NOTE: papers late by up to 30 minutes will be subject to a 5 mark
penalty; papers later than 30 minutes will receive 0 marks).
Notification of errors in the paper may be made up to one hour after the start time. If you
wish to raise a possible error it must be done through h [email protected] i with
enough time for a response to be considered and made within the first hour.
Time Recommended TWO hours
Word Limit Sentence limits are embedded in the questions.
Allocation of Marks:
Marks are shown at the start of each question.
Instructions:
Answer all questions. There are strict limits on the length of your answers; text exceeding the
limit will not be marked.
Submit your answers to the Department’s Teaching Portal as a single PDF file.
If a question is unclear, answer the question as best you can, and note the assumptions you
have made to allow you to proceed. Please inform h [email protected] i about any
suspected errors on the paper immediately after you submit.
Do not use colour: use black-on-white only, unless otherwise instructed.
Start each top-level question on a new page.
A Note on Academic Integrity
We are treating this online examination as a time-limited open assessment, and you are
therefore permitted to refer to written and online materials to aid you in your answers.
However, you must ensure that the work you submit is entirely your own, and for the whole
time the assessment is live you must not:
• communicate with departmental staff on the topic of the assessment
• communicate with other students on the topic of this assessment
• seek assistance with the assignment from the academic and/or disability support
services, such as the Writing and Language Skills Centre, Maths Skills Centre and/or
Disability Services. (The only exception to this will be for those students who have been
recommended an exam support worker in a Student Support Plan. If this applies to you,
you are advised to contact Disability Services as soon as possible to discuss the
necessary arrangements.)
• seek advice or contribution from any third party, including proofreaders, online fora,
friends, or family members.
We expect, and trust, that all our students will seek to maintain the integrity of the assessment,
and of their award, through ensuring that these instructions are strictly followed. Failure to
adhere to these requirements will be considered a breach of the Academic Misconduct
regulations, where the offences of plagiarism, breach/cheating, collusion and commissioning
are relevant: see AM1.2.1 (Note this supercedes Section 7.3 of the Guide to Assessment) .
The UML class diagram in Figure 1 depicts the architecture of a small subset of a school
management system, and has been extracted from the following description of the system.
A University course has 3-4 stages. At each stage of the course, students are
offered a selection of compulsory modules that they must take, and optional
modules they can select from. Each student can only take modules of their stage
(e.g. stage 2 students can only take modules offered as part of stage 2).

 

With reference to the class diagram in Figure 1, you must answer all of the following questions.
1     (30 marks)      UML Class Diagram Notation
Describe three errors ( not omissions) that are present in the architecture class diagram of
Figure 1, with regard to the system description above, using no more than two sentences for
each error [10 marks/error].
2     (30 marks)      Testing
Describe and justify three test cases that you would write for the select() method of the
Students class in Figure 1, stating any assumptions you have made about any underspecified
aspects of the system. Using no more than three sentences for each test case, (a) justify why it
was chosen, and (b) describe the parameters you would call the select() method with,
assertions describing the expected state of the system after calling the method, and/or any
exceptions that you would expect the method to throw when called with the provided
arguments [10 marks/test]

你可能感兴趣的:(计算机网络,学习)