Ôn thi tốt nghiệp: java + uml ( in oop (using java) subject ) Question 1



tải về 0.89 Mb.
trang7/8
Chuyển đổi dữ liệu30.08.2016
Kích0.89 Mb.
#29762
1   2   3   4   5   6   7   8

Question 394–b


UML stands for which of the following?

  1. Universal Modeling Language

  2. Unified Modeling Language

  3. Unified Modelers Language

  4. Unary Model Language

Question ­395–ade


UnderGrad class is an



  1. Subtype

  2. Superclass

  3. Parent

  4. Child

  5. Subclass

Question 396–cd

What are the strengths and weakness of Interaction Diagrams



  1. they are good at exploring concurrency and multi-thread issues

  2. they are good at precise definition of the behavior

  3. they are good at showing collaborations among objects

  4. when you want to look at the behavior of several objects within a single use case

Question 397–b

What is the difference between a sequence diagram and a collaboration diagram?



  1. helps to define the scope of the system by identifying the actor roles that interact with the system and the set of uses or functions provided to those actors.

  2. emphasizes the sequence or order of the messages. A collaboration diagram emphasizes the set of objects that collaborate together to carry out a use case.

  3. the role played by a particular person when that person interacts with the system.

Question 398–bc

What is the difference between an attribute and an association?



  1. From the conceptual perspective, there is a distinct difference.

  2. UML syntax for attribute - visibility name: type = default value

  3. From specification and implementation perspective, an attribute is owned by a type while an association allows one to navigate from one type to another

Question 399–d

What other constraint needs to be added to ensure that this reification faithfully models the original Student/Subject association?





  1. There must be no more than one Enrolment associated with a particular Student/Subject pair.

  2. None of the other answers

  3. All Enrolments for a particular Subject must be for the same Student.

  4. All Enrolments for a particular Student must be for the same Subject.

Question 400–abce

Which are valid relationships in Use Case Diagrams?



  1. include

  2. extend

  3. use

  4. extract

  5. generalization

  6. subtyping

Question 401–a

Which definition best describes the concept of polymorphism?



  1. Polymorphism is the technique by which an object reference is used to refer to any object created from a class that is related to the reference type by inheritance.

  2. Polymorphism is the technique by which an object that is used to invoke a method can actually invoke different methods, depending on the nature of the control structure.

  3. Polymorphism is the technique by which an object's parameters are used to instantiate a particular type, depending on the nature of the parameters.

  4. Polymorphism is the technique by which an object is used to invoke overridden methods at different times, depending on the nature of the application.

Question 402–a

Which is a standard object-oriented language for describing system requirements, analysis and design phase ?



  1. UML

  2. DDL

  3. OLE

  4. SQL

Question 403–c

Which of the following is a true statement?



  1. Generally, information systems are closed systems

  2. Information systems can be seen as supersystems in an organizational environment.

  3. Information systems can be seen as subsystems in larger organizational systems, taking input from, and returning output to, their organizational environments.

  4. A business system is a subsystem of an information system.

Question 404–c

Which of the following is true?



  1. Every subject may contain one or more modules.

  2. Every module has exactly one subject that contains it.

  3. Every module is part of a subject.

  4. All of the other answers

Question 405–c

Which of the following is true?





  1. Every student may be enrolled in one or more subjects.

  2. None of the other answers

  3. Every student must be enrolled in one subject.

  4. Every student must be enrolled in one or more subjects.

Question 406–a

Which of the following is true?





  1. A module content may act as the syllabus of a subject.

  2. The syllabus of a subject is the set of contents of modules that the subject contains.

  3. Every syllabus must have an associated subject.

  4. The module content of a module is the syllabus for that module's subject.

Question 407–b

Which of the following show the static structure of data and the operations that act on the data?



  1. sequence diagrams

  2. class diagrams

  3. state diagrams

  4. use cases

Question 408–c

Which of the following statements are false about composition?



  1. Composition is a kind of association used to model the whole-part relationships between things. If the multiplicity at the composite object is one that means that the part may not exist separate from the composite.

  2. Composition in the Design Model indicates that the composite software objects create the part software objects.

  3. With composition the part object may belong to only one whole usually the parts are expected to live independently.

Question 409–de

Which of the following statement are false about sequence diagrams?



  1. Object deletion, indicated by a large X, must be self-delegation (cleaning up your own mess)

  2. Sequence Diagrams can also capture concurrent activities.

  3. Asynchronous message must create a new thread, create a new object and communicate with a thread that is already running

  4. Asynchronous message blocks the caller until it is completed.

  5. Activations should not be used for concurrent activities

  6. Asynchronous message is represented by "half-arrow";

Question 410–d

Which of the following statements is false?



  1. In multiple classification, an object may be described by several types that are not necessarily connected by inheritance.

  2. Classification refers to the relationship between an object and its type.

  3. Static classification does not allow objects to change type. e.g.

  4. Person <-- (Sex {complete}) Female, Male.

  5. Multiple classification is similar to multiple inheritance.

  6. Dynamic classification allows objects to change type within the subtyping structure. e.g. Person <-- (Job <>) Manager, Engineer, Salesman.

Question 411–ad

Which of the following statements is true about the inheritance chart shown in picture?



  1. Class A is the ancestor of classes F and D.

  2. Class A is the parent of classes B, E, and F.

  3. Class A is the parent of class D.

  4. Class C is the child of class D.

  5. Class D is an ancestor of class F.

Question 412–a

Which ONE of the following is the MOST correct?





  1. name is an attribute of the class Borrower

  2. name is an attribute of getName

  3. setName is an attribute of the class Borrower

  4. membershipNum is a method of the class Borrower

Question 413–b

Which statements are not correct about Objects?



  1. An Object is an instance of a class

  2. Objects do not permit encapsulation

  3. Objects can access both instance and static data

  4. All classes extend the Object class

Question 414–b

Which statements are true about associations in Class Diagrams?



  1. It is good practice to name every association and most data modelers prefer to name association using a "verb"

  2. Most object modelers prefer to assign role name using a "noun" to association

  3. If there is no name on the role, the implied name is the name of target class

Question 415–cf

Which statements are true about Class Diagrams?



  1. Within the specification perspective, associations represent methods.

  2. Naming role is optional. If missing, it is named after the source class

  3. From specification perspective, association lines with arrows indicate navigability. The source class has responsibility of 'knowing' the target class but not the other way round.

  4. Multiplicities are normally 0, 1, *. It does not support for a range number e.g. 2-4

  5. From the conceptual perspective, associations have no arrow heads meaning that they are non-directional

  6. From the conceptual perspective, associations represent conceptual relationships between classes

Question 416–c

Why are A through G underlined?





  1. They are all instances, not objects

  2. They are all classes, not objects

  3. They are all objects or instances, not classes.

  4. They are all objects , not instances




Каталог: 2011
2011 -> HƯỚng dẫn viết tiểu luậN, kiểm tra tính đIỂm quá trình môn luật môi trưỜNG
2011 -> Dat viet recovery cứu dữ liệu-hdd services-laptop Nơi duy nhất cứu dữ liệu trên các ổ cứng Server tại Việt Nam ĐC: 1a nguyễn Lâm F3, Q. Bình Thạnh, Tphcm
2011 -> Ubnd tỉnh thừa thiên huế SỞ giáo dục và ĐÀo tạO
2011 -> SỞ TƯ pháp số: 2692 /stp-bttp v/v một số nội dung liên quan đến việc chuyển giao CỘng hòa xã HỘi chủ nghĩa việt nam
2011 -> QUỐc hội nghị quyết số: 24/2008/QH12 CỘng hoà XÃ HỘi chủ nghĩa việt nam
2011 -> NĐ-cp cộng hòa xã HỘi chủ nghĩa việt nam độc lập – Tự do – Hạnh phúc
2011 -> BỘ NỘi vụ CỘng hoà XÃ HỘi chủ nghĩa việt nam
2011 -> Nghị quyết số 49-nq/tw ngàY 02 tháng 6 NĂM 2005 CỦa bộ chính trị VỀ chiến lưỢc cải cách tư pháP ĐẾn năM 2020
2011 -> Ủy ban nhân dân tỉnh bà RỊa vũng tàU
2011 -> Ủy ban nhân dân cộng hòa xã HỘi chủ nghĩa việt nam thành phố HỒ chí minh độc lập Tự do Hạnh phúc

tải về 0.89 Mb.

Chia sẻ với bạn bè của bạn:
1   2   3   4   5   6   7   8




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương