Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

20. In the object-oriented design of an airline passenger reservation program, suppose that airplane seat, aisle seat, and window seat have been identified as objects.

image text in transcribed
20. In the object-oriented design of an airline passenger reservation program, suppose that airplane seat," "aisle seat," and "window seat" have been identified as objects. Focusing specifically on the aisle seat object, how does it relate to the airplane seat object? A) A has-a relationship B) An is-a relationship C) An independent and equal relationship D) Both a has-a relationship and an is-a relationship E) None of these answers is correct. 21. How can an unbounded ADT be implemented as an array-based structure? A) When the array is full, a larger array is allocated and the current array elements are copied to thee new array B) When the array is full, new items simply overwrite older items in the array C) When the array is full, a second array is allocated and the structure contains both arrays D) It is not possible to implement an unbounded ADT as an array-based structure 22. Why do we use linear search instead of binary search when there are relatively few items in an array-based sorted list? A) Linear search will perform fewer iterations than binary search B) Because binary search requires more operations per iteration, it is slower than linear search in this case C) Linear search has a faster complexity class when lists are short. D) We never use linear search instead of binary search

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Options Trading QuickStart Guide The Simplified Beginners Guide To Options Trading

Authors: Clydebank Finance

2nd Edition

1945051051, 978-1945051050

Students also viewed these Databases questions

Question

True or False: P ( A | B ) + P ( A C | B ) = 1 True False

Answered: 1 week ago

Question

Explain walter's model of dividend policy.

Answered: 1 week ago