9781111969752_TB_ch10 - Chapter 10 Object-Oriented...

Info icon This is a preview. Sign up to view the full content.

Chapter 10: Object-Oriented Programming TRUE/FALSE 1. Methods in object-oriented programs use sequence, selection, and looping structures and make use of arrays. ANS: T 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. ANS: F 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. ANS: T PTS: 1 REF: 411 4. Declaring a class does not create actual objects. ANS: T PTS: 1 REF: 415 5. Class diagrams are a type of Unified Modeling Language (UML) diagram. ANS: T PTS: 1 REF: 417 6. The accessor method is another name for the set method. ANS: F PTS: 1 REF: 421 7. Object-oriented programmers usually specify that their data fields will have private access. ANS: T PTS: 1 REF: 424 8. All methods require a this reference. ANS: F PTS: 1 REF: 432 9. No object is necessary with a static method. ANS: T PTS: 1 REF: 435 10. Methods in a class are static instance methods by default. MULTIPLE CHOICE 1. ____ is a style of programming that focuses on an application’s data and the methods you need to manipulate that data.
Image of page 1
2. Object-oriented programmers sometimes say an object is one ____ of a class. a. enumeration c. member b. instantiation d. reference ANS: B PTS: 1 REF: 408 3. Objects both in the real world and in object-oriented programming contain ____ and methods. a. behaviors c. help b. attributes d. primitive data types ANS: B PTS: 1 REF: 409
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern