MCQ Answer

arr[::-1] does what?

arr[::-1] does what?

arr[::-1] क्या करता है?
Topic : Sequence data types in python

A. Sorts array

B. Reverses array

C. Deletes elements

D. Returns copy only




Correct Answer is :

B. Reverses array



Explanation
A slice with step -1 traverses the sequence in reverse order.

Step -1 वाली slicing sequence को reverse order में देती है।
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad