|
|
|
Composition.docx
Composition.docx
Showing 1-2 out of 2
Composition.docx-Composition 1. The use of referen...
Composition.docx-Composition 1. The use of references
Composition.docx-Composition 1. The...
Composition.docx-Composition 1. The use of references
Page 1
Composition
1. The use of references to objects of preexisting classes as members of new objects is
called
.
a) inheritance
b) composition
c) polymorphism
d) None of the above.
Answer:
b
2. Composition:
a) Is a form of software reuse.
b) Is using an object reference as a class member.
c) Is a good design practice.
d) All of the above.
Answer:
d
3. Composition is sometimes referred to as a(n)
.
Page 2
a. isa relationship
b. hasa relationship
c. havea relationship
d. onetomany relationship
Answer:
b
Garbage Collection and Destructors
1. Failure to release resources when the program is no longer using them can cause
.
a) buffer overflows
b) resource leaks
c) exceptions
d) None of the above.
Answer:
b
2. A
can be defined in a class to perform termination housekeeping on an object
before the garbage collector reclaims the object’s memory.
a) destructor
b) property
c) garbage collector
d) None of the above.
Answer:
a
Ace your assessments! Get Better Grades
Browse thousands of Study Materials & Solutions from your Favorite Schools
Florida Agricultural and ...
Florida_Agricultural_and_Mechanical_University
School:
Fundamentals_of_Programming
Course:
Introducing Study Plan
Using AI Tools to Help you understand and remember your course concepts better and faster than any other resource.
Find the best videos to learn every concept in that course from Youtube and Tiktok without searching.
Save All Relavent Videos & Materials and access anytime and anywhere
Prepare Smart and Guarantee better grades
Students also viewed documents
lab 18.docx
lab_18.docx
Course
Course
3
Module5QuizSTA2023.d...
Module5QuizSTA2023.docx.docx
Course
Course
10
Week 7 Test Math302....
Week_7_Test_Math302.docx.docx
Course
Course
30
Chapter 1 Assigment ...
Chapter_1_Assigment_Questions.docx.docx
Course
Course
5
Week 4 tests.docx.do...
Week_4_tests.docx.docx
Course
Course
23
Week 6 tests.docx.do...
Week_6_tests.docx.docx
Course
Course
106