Using the knowledge in computational language in python it is possible to write a code that given array of integers perform operations on the array return the resulting array after all operations.
<h3>Writting the code:</h3>
#This is the function ReverseArrayQueries(),it takes a 1d array arr and a 2d array operations as parameters
def ReverseArrayQueries(arr,operations):
##Start a for loop,to check each 1d array of operations array
for i in range(0,len(operations)):
##Store first element of current array in p variable
p=operations[i][0]
##Store second element in q variable
q=operations[i][1]
##Start a while loop,which continues till q is greater than or equal to p
while p<=q:
##Swap pth and qth element of arr array
temp=arr[p]
arr[p]=arr[q]
arr[q]=temp
##Then,increment p by 1 and decrement q by 1
p+=1
q-=1
##At the end return arr
return arr
See more about python at brainly.com/question/13437928
#SPJ1