Raptor Flowchart Program
Use Pseudocode to answer 6 questions.
This pseudocode is created to be used in Raptor Flowchart Programming
Assume that the first element in the array has the address of 1. Answer each of the following questions based on the given pseudocode for a program as shown below,
module main( )
Declare Integer SIZE = 5
Declare Integer index = 1
Declare Integer x = 0
Declare Integer y = 0
Declare Integer num[SIZE] = 10, -13, 17, 21, 65
Set x = num[index]
While ( index <= SIZE )
IF (num[index) <= x ) Then
Set x = num[index]
End If
Set index = index + 1
End While
Set index = 1
Set y = num[index]
While ( index <= SIZE )
IF (num[index) >= y ) Then
Set y = num[index]
End If
Set index = index + 1
End While
End module
_______________________
(True/False) The data 12.5 can be assigned to the element num[2].
2. After the completion of the execution of this code, the value of the variable x is ____
3. The value of the variable index after executing the While looping structure is _____
4. The index of the last element in the array is _____
5. The element num[3] has the value of ____
6. After the completion of executing the code, the value of the variable y is ____