9781111969752_TB_ch10 - Chapter 10 Object-Oriented Programming TRUE\/FALSE 1 Methods in object-oriented programs use sequence selection and looping

9781111969752_TB_ch10 - Chapter 10 Object-Oriented...

This preview shows page 1 - 3 out of 8 pages.

Chapter 10: Object-Oriented Programming TRUE/FALSE 1.Methods in object-oriented programs use sequence, selection, and looping structures and make use of arrays. PTS: 1 REF: 408 2.In addition to their attributes, class objects have methods associated with them; every object that is an instance of a class possesses different methods. PTS: 1 REF: 411 3.Within any object-oriented program, you continuously make requests to objects’ methods, often including arguments as part of those requests. PTS: 1 REF: 411 4.Declaring a class does not create actual objects. PTS: 1 REF: 415 5.Class diagrams are a type of Unified Modeling Language (UML) diagram. PTS: 1 REF: 417 6.The accessor method is another name for the set method. PTS: 1 REF: 421 7.Object-oriented programmers usually specify that their data fields will have private access. PTS: 1 REF: 424 8.All methods require a thisreference. PTS: 1 REF: 432 9.No object is necessary with a static method. PTS: 1 REF: 435 10.Methods in a class are static instance methods by default. PTS: 1 REF: 435 MULTIPLE CHOICE 1. ____ is a style of programming that focuses on an application’s data and the methods you need to manipulate that data.
PTS: 1 REF: 408 2.Object-oriented programmers sometimes say an object is one ____ of a class. PTS: 1 REF: 408 3.Objects both in the real world and in object-oriented programming contain ____ and methods. a.behaviorsc.helpb.attributesd.primitive data typesANS: B PTS: 1 REF: 409 4.____ are the characteristics that define an object as part of a class. PTS: 1 REF: 409 5.When you think in an object-oriented manner, every object is a member of a ____. PTS: 1 REF: 410 6.Object-oriented programmers also use the term ____ when describing inheritance. PTS: 1 REF: 410 7.The concept of a class is useful because of its ____. a.reusabilityc.abstract natureb.mapping to realityd.portabilityANS: A PTS: 1 REF: 410 8.Object attributes are often called ____ to help distinguish them from other variables you might use. PTS: 1 REF: 411

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture