Object-Oriented Programming Concepts and Applications

An assignment explaining object-oriented programming principles with practical applications.

Ethan Wilson
Contributor
4.1
55
7 months ago
Preview (4 of 11 Pages)
100%
Purchase to unlock

Page 1

Object-Oriented Programming Concepts and Applications - Page 1 preview image

Loading page ...

Object-Oriented Programming Concepts and ApplicationsQuestion 1.1. (TCO 1) Which of the following statements is/are true? (Points : 5)A. The implementation of a class should be hidden, as best practice.B. The state of an object is defined as the attributes and behaviors of that object.C. Striving for the fullest possible interface of a class, incorporating possible future class needs, is thegoal when designing a class.D. An interface of a class defines what messages an object can respond to.All are trueNone are trueOnly A and D are trueQuestion 2.2. (TCO 2) Which of the following components of a class definition can be overloaded? (Points: 5)Any objectConstructorStatic data membersAll of the aboveNone of the aboveQuestion 3.3. (TCO 5) Which of the following method pairs are not examples of method overloading?(Points : 5)public void dance()public int dance(int x)public int walk(int x, int y)public void walk(int x, int y, int z)public int jump(int x, int y)public void jump(int y, int x)All of the aboveNone of the aboveQuestion 4.4. (TCO 1) Which of the following statements is/are true? (Points : 5)You can create sub-classes and sub-objects.By using the keyword class in your program, memory is allocated for the object being defined.In object-oriented programming we design the program as a set of cooperating methods.None of the aboveQuestion 5.5. (TCO 1) Which of the following would be the most appropriate choice for a method in aComputer class? (Points : 5)monitorSizerebootprocessorTypekeyboard

Page 2

Page 3

Page 4

Preview Mode

This document has 11 pages. Sign in to access the full document!

Study Now!

XY-Copilot AI
Unlimited Access
Secure Payment
Instant Access
24/7 Support
Document Chat

Document Details

Related Documents

View all