Consider the following function for insertion_sort

def insertion_sort(list3):

n = len(list3)

for i in _______ : # [statement-1]

temp = ________ : # [ statement-2]

j = i - 1

while j>= 0 and : # [statement-3]

list3 [j+1] = list3 [j]

j = _______ # [statement-4]

_______ = temp # [statement-5]

Given the following options for the statements.

A. temp

B. list3[i]

C. list3 [j+1]

D. range(n)

E. j-1

Choose the correct sequence of statement.

1
D→BEAC
2
DBAEC
3
BDAEC
4
BADEC

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation