Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ code only Question 24 (1 point) Given the following array: Position: 0 1 2 3 4 5 6 7 8 9 Value 1 4

C++ code only

Question 24 (1 point)

image text in transcribed

Given the following array:

Position: 0 1 2 3 4 5 6 7 8 9
Value 1 4 9 13 17 21 32 36 40 49

What is the POSITION of the first element encountered in a binary search for the value 19? Question 24 options:

Save

Question 25 (1 point)

image text in transcribed

Given the following array:

Position: 0 1 2 3 4 5 6 7 8 9
Value 1 4 9 13 17 21 32 36 40 49

What is the POSITION of the second element encountered in a binary search for the value 19? Question 25 options:

Save

Question 26 (1 point)

image text in transcribed

Given the following array:

Position: 0 1 2 3 4 5 6 7 8 9
Value 1 4 9 13 17 21 32 36 40 49

What is the POSITION of the third element encountered in a binary search for the value 19? Question 26 options:

Save

Question 27 (1 point)

image text in transcribed

Given the following array values (as integers)

50 20 10 30 40

What will the array look like after 1 pass of insertion sort into ascending order? Question 27 options:

10 20 50 40 30

50 40 30 20 10

10 20 30 50 40

50 10 20 30 40

10 20 50 30 40

50 20 10 30 40

20 50 10 30 40

20 10 50 40 30

10 20 30 40 50

Save

Question 28 (1 point)

image text in transcribed

Given the following array values (as integers)

50 20 10 30 40

What will the array look like after 2 passes of insertion sort into ascending order? Question 28 options:

10 20 50 30 40

10 20 30 50 40

50 10 20 30 40

50 40 30 20 10

50 20 10 30 40

20 10 50 40 30

20 50 10 30 40

10 20 50 40 30

10 20 30 40 50

Save

Question 29 (1 point)

image text in transcribed

Given the following array values (as integers)

50 20 10 30 40

What will the array look like after 3 passes of insertion sort into ascending order? Question 29 options:

10 20 50 40 30

10 20 30 40 50

50 10 20 30 40

20 50 10 30 40

50 40 30 20 10

10 20 50 30 40

10 20 30 50 40

20 10 50 40 30

50 20 10 30 40

Save

Question 30 (1 point)

image text in transcribed

Given the following array values (as integers)

50 20 10 30 40

What will the array look like after 4 passes of insertion sort into ascending order? Question 30 options:

50 20 10 30 40

20 50 10 30 40

10 20 50 30 40

10 20 50 40 30

10 20 30 40 50

50 40 30 20 10

20 10 50 40 30

50 10 20 30 40

10 20 30 50 40

Save

Question 31 (1 point)

image text in transcribed

Given the following array values (as integers)

50 20 10 30 40

What will the array look like after 1 pass of selection sort into ascending order? Question 31 options:

10 20 50 30 40

50 20 10 30 40

50 40 30 20 10

10 20 30 50 40

10 20 50 40 30

20 50 10 30 40

10 20 30 40 50

20 10 50 40 30

50 10 20 30 40

Save

Question 32 (1 point)

image text in transcribed

Given the following array values (as integers)

50 20 10 30 40

What will the array look like after 2 passes of selection sort into ascending order? Question 32 options:

50 20 10 30 40

20 10 50 40 30

20 50 10 30 40

50 40 30 20 10

50 10 20 30 40

10 20 50 40 30

10 20 30 50 40

10 20 30 40 50

10 20 50 30 40

Save

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

Big Data In Just 7 Chapters

Authors: Prof Marcus Vinicius Pinto

1st Edition

B09NZ7ZX72, 979-8787954036

More Books

Students also viewed these Databases questions

Question

Fill in all the steps in going from (10.131) to (10.132).

Answered: 1 week ago