Solved

What Is the Output of the Following Program

Question 35

Multiple Choice

What is the output of the following program?
Def REVERSE(L) :
(L) reverse()
Return(L)
Def YKNJS(L) :
List = list()
List.extend(REVERSE(L) )
Print(List)
L = [1, 3.1, 5.31, 7.531]
YKNJS(L )


A) [1, 3.1, 5.31, 7.531]
B) [7.531, 5.31, 3.1, 1]
C) IndexError
D) AttributeError: „NoneType? object has no attribute „REVERSE?

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions