Premium Resources

We know the secret of your success

M256/P Software development with Java Undergraduate Level Course Examination 2010

$39.00

PAPER TITLE: SOFTWARE DEVELOPMENT WITH JAVA

DATE: Tuesday, 19 October 2010

 

 

PART 1

 

Question 1           

Which two of the following statements about object-oriented software development are true? (Select two options)

  1. A common practice in iterative software development is to restrict the initial development to a small subset of the requirements of the system.
  2. Javadoc is an example of a design tool.
  3. The Unified Modelling Language (UML) is a set of software development methods which have certain diagram types in common.
  4. A software development method is a particular set of development phases applied in a particular order.
  5. One duty of a project manager is to test the software as it is developed.

 

ANSWERS(Purchase full paper to get all the solution)

A. A common practice in iterative software development is to restrict the initial development to a small subset of the requirements of the system.

E. One duty of a project manager is to test the software as it is developed.

 

 


Question 2

Consider the following diagram.

Which two of the following statements relating to this diagram are true? (Select two options)

  1. The diagram is a kind of object diagram.
  2. The diagram contains six activation rectangles.
  3. From the diagram it can be deduced that the class Project (i.e. the class of project4 and project5) must have an instance variable duration.
  4. From the diagram it can be deduced that a method getLeader() should be defined in the class of the object company.
  5. A collaboration between company and leader3 is illustrated in the diagram.
  6. A collaboration between company and project5 is illustrated in the diagram.

 

 

Question 3           

Which two of the following statements relating to the requirements specification process are true? (Select two options)

  1. The following is an example of a behavioural requirement: ‘Each waiting list should be implemented using an indexed list’
  2. The following is an example of an acceptance test:

‘The software should allow a member to cancel their reservation for a book’

  1. The following is an example of a constraint that is not a behavioural requirement:

‘The hard disk requirements of the software should not exceed 500 Mb’

  1. The following is an example of a behavioural requirement:

‘A library member with more then five overdue books must not be allowed to borrow any more books’

  1. The following is an example of a constraint that is not a behavioural requirement:

‘A book for which there is a waiting list may only be borrowed by the library member at the head of the waiting list’

 

 

Question 4           

Which two of the following statements about conceptual modelling are true? (Select two options)

  1. If class P specialises a class Q then there cannot be an association between P and Q.
  2. The multiplicity of an association between classes A and B, at the B end, defines how many objects of class B may be linked to a single object of class A.
  3. An organisational unit in the system domain may be appropriately modelled by an object.
  4. A conceptual model is a precise specification of the software classes that will be required for the system.
  5. The business area is typically a part of the conceptual model.

 

 

Question 5           

Based on the information above, which three of the following statements are true? (Select three options)

  1. It is possible for a Novice object to be linked to a RidingLesson object.
  2. The association isUsedIn is derived.
  3. The multiplicity of the leads association at the Instructor end should be 1..3.
  4. The multiplicity of the leads association at the Instructor end should be 3.
  5. The multiplicity of the leads association at the RidingLesson end should be 1..3.
  6. The multiplicity of the leads association at the RidingLesson end should be 0..*.
  7. The multiplicity of the leads association at the RidingLesson end should be 0..1.

 

 

Question 6           

Based on the information above, which two of the following are invariants that would be required in addition to the class diagram, as part of the conceptual model? (Select two options)

 

  1. An Instructor object cannot be linked to more than one

RidingLesson object.

  1. If an Instructor object, anInstructor, is linked to two distinct RidingLesson objects, aRidingLesson and bRidingLesson, then the date attribute value of aRidingLesson must not be the same as the date attribute value of bRidingLesson.
  2. Each RidingLesson object must be linked to the same number of Horse objects as Pupil objects.
  3. If a RidingLesson object aRidingLesson is linked to a Pupil object aPupil, then aRidingLesson must be linked to a Horse object aHorse.

 

 

Question 7           

Which two of the following statements about object-oriented software development are true? (Select two options)

  1. Maintainability includes ensuring that no additional functionality is added to a system once it is in use.
  2. One benefit of component-based software development is that implementation errors are separate from specification errors.
  3. A component-based approach to developing software involves the software relevant to each hardware component of the system being created by a different team of developers.
  4. A copy constructor may be used to help to protect a mutable object against inappropriate state changes.
  5. Incremental software development is usually incompatible with component-based software development.

 

 

Question 8           

Which two of the following statements about the M256 approach to designing software are true? (Select two options)

  1. Each argument to a coordinating message must be a core system object.
  2. When what is required of a use case can be partitioned into separate coordinating methods, each of these methods should be developed within a separate component of the system.
  3. For a one-way association that is navigated from class A to class B, creating a link of that association involves an object of class A recording a reference to an object of class B.
  4. Every coordinating method should have a pre-condition specified for it.
  5. When creating a dynamic model for a use case it may be necessary to add an association to the structural model.

 

 

Question 9           

One message (W) and three message answers (X, Y and Z) are missing from the sequence diagram in Figure 4. Which one of the following most appropriately describes the missing message and message answers? (Select one option)

A.

message W: getDepartmentsAndLecturers(college1)

message answer X: {lecturer3}

message answer Y: {lecturer4, lecturer5}

message answer Z: {lecturer6, lecturer7}

 

B.

message W: getLecturers(department1, department2, department3)

message answer X: {lecturer3}

message answer Y: {lecturer4, lecturer5}

message answer Z: {lecturer6, lecturer7}

 

C.

message W: getDepartmentsAndLecturers()

message answer X: lecturer3

message answer Y: {lecturer4, lecturer5}

message answer Z: {lecturer6, lecturer7}

 

D.

message W: getDepartmentsAndLecturers()

message answer X: {lecturer3}

message answer Y: {lecturer4, lecturer5}

message answer Z: {lecturer6, lecturer7}

 

E.

message W: getDepartmentsAndLecturers()

message answer X: (department1, {lecturer3})

message answer Y: (department2, {lecturer4, lecturer5})

message answer Z: (department3, {lecturer6, lecturer7})

 

 

Question 10         

Which two of the following statements could be a correct identification of the walkthrough steps indicated by the notes A, B and C in the sequence diagram? (Select two options)

 

  1. A is Step 1; B is Step 3; C is Step 4
  2. A is Step 1; B is Step 3; C is Step 5
  3. A is Step 1; B is Step 2; C is Step 4
  4. A is Step 1; B is Step 2; C is Step 3
  5. A is Step 2; B is Step 3; C is Step 4

 

Question 11         

On the basis of the above information, which two of the following statements are true? (Select two options)

  1. A method whose specification begins as follows is appropriate for the protocol of Department:

Lecturer getLecturers()

  1. A method whose specification begins as follows is appropriate for the protocol of Department:

Collection getLecturers()

  1. A method whose specification begins as follows is appropriate for the protocol of College:

Collection getLecturers()

  1. The walk-through requires the navigation of hasColleges from

CollegeCoord to College.

  1. Step 3 of the walk-through can be achieved by the navigation of worksIn from Department to Lecturer.
  2. Step 3 of the walk-through can be achieved by the navigation of worksIn from Lecturer to Department.

 

Question 12         

Which two of the following statements about designing software are true? (Select two options)

  1. When comparing two different designs, the one involving the sending of the smaller number of messages is normally considered better.
  2. An object which initiates a cascade of messages is termed an information expert.
  3. If the class A has a method which receives as an argument an object of a class B, then the classes A and B are coupled.
  4. The terms alternative scenario and invalid scenario have different meanings.
  5. A design for a valid scenario should set out what should happen when any pre-condition is not met.

 

 

Question 13   

Which two of the following statements about detailed design and implementation are true? (Select two options)

  1. Where an object of one class needs to record links with several objects of another class, this should be specified in the implementation model using a collection interface rather than a collection class.
  2. Every utility class should have an equals() method specified for it, overriding the equals() method inherited from Object.
  3. The role of an enumerated type in an implementation model is solely in specifying the types of attributes.
  4. Appropriate use of inheritance normally involves specification of forwarding methods.
  5. A compareTo() method should be specified for each class whose objects have a natural ordering that is to be used when storing them in sorted collections.

 

 

Question 14         

Which two of the following statements about implementation and testing are true? (Select two options)

  1. A boundary is a point at which the software’s behaviour is unpredictable.
  2. A use case-driven approach to implementation minimises the need for integration testing.
  3. The fixture for a particular test specifies both the data to be used during the test and the expected result of the test.
  4. Several unit tests may be needed to test one method.
  5. An assertion is a test statement which checks that the expected result is the same as the actual result.

 

 

 

Question 15

Which two of the following statements about the M256 approach to implementing software in Java are true? (Recall that in M256 the first code iteration is the first stage in implementing a core system.) (Select two options)

  1. In the first code iteration any method which is common to the designs for all use cases should be implemented.
  2. Derived attributes should be not be implemented in the first code iteration.
  3. In the first code iteration a getter method for each attribute should normally be implemented.
  4. Implementing the methods required for a particular use case is always based on a single scenario.
  5. For each use case the methods that need to be implemented are those corresponding to the messages shown in the design for that use case.

 

 

Question 16

Which three of the following statements about user interfaces and their design are true? (Select three options)

  1. The most appropriate set of design principles to apply do not generally depend on the particular user interface metaphor being applied.
  2. Text areas are always used for output, not input.
  3. For a widget to have good affordance it must be clear in advance what the effects of operating it will be.
  4. With direct manipulation, complex outcomes typically require a series of incremental, reversible steps.
  5. For all users, a graphical user interface is easier to use than a command-line interface.
  6. Learnt affordance takes into account the effect of a user’s background on their use of a widget.

 

 

 

 

Question 17         

Which two of the following statements about user interfaces and their design are true? (Select two options)

  1. The Sketchpad system was an early example of a Java application.
  2. As part of the development of the Xerox Star, activities that users typically found hard were compare

 

 

 

 

 

Purchase full paper by adding to cart

 

 

 

 

 

 

 

 

 

 

 

 

 

Last updated: Sep 02, 2021 12:29 PM

Can't find a resource? Get in touch

AcademicianHelp

Your one-stop website for academic resources, tutoring, writing, editing, study abroad application, cv writing & proofreading needs.

Get Quote
TOP