...
Question 10422 – Programming
April 14, 2024
Question 3553 – UGC NET CS 2016 Aug- paper-2
April 14, 2024
Question 10422 – Programming
April 14, 2024
Question 3553 – UGC NET CS 2016 Aug- paper-2
April 14, 2024

Question 10439 – Programming

The following Pascal program segments finds the largest number in a two-dimensional integer array A[0…n-1,0…n-1] using a single loop. Fill up the boxes to complete the program and write against in your answer book. Assume that max is a variable to store the largest value and i,j are the indices to the array.

 begin
     max:= , i:=0,j:=0;
     while  do
           begin
           if A[i,j]>max then max:=A[i,j]
           if  then j:=j+1
           else begin
                 j:=0;
                 i:= 
           end
     end
 end.

Correct Answer: A

A
Theory Explanation.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!