Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

c++ 1. True/False: Classes and structures can both have other class objects or s

ID: 3728038 • Letter: C

Question

c++

1. True/False: Classes and structures can both have other class objects or structure variables as members.

True

False

2. In an ADT the implementation details are ________ the interface through which a program uses it.

a part of

kept separate from

used by

determined by

None of the above

3. To locate a value in an ordered array of 100 items, binary search must examine at most ________ values.

7

10

50

100

101

4. True/False: Bubble sort and selection sort can also be used with STL vectors.

True

False

5.

The linear search is adequate for searching through ________ arrays, but not through ________ ones.

small, large

int, double

ascending, descending

char, string

any regular, vector

a part of

kept separate from

used by

determined by

None of the above

3. To locate a value in an ordered array of 100 items, binary search must examine at most ________ values.

7

10

50

100

101

4. True/False: Bubble sort and selection sort can also be used with STL vectors.

True

False

5.

The linear search is adequate for searching through ________ arrays, but not through ________ ones.

small, large

int, double

ascending, descending

char, string

any regular, vector

Explanation / Answer

1. True/False: Classes and structures can both have other class objects or structure variables as members.
Answer:
True

2. In an ADT the implementation details are ________ the interface through which a program uses it.
Answer:
kept separate from

3. To locate a value in an ordered array of 100 items, binary search must examine at most ________ values.
Answer:
50

4. True/False: Bubble sort and selection sort can also be used with STL vectors.
Answer:
True

5.

The linear search is adequate for searching through ________ arrays, but not through ________ ones.
Answer:
small, large

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote