Please Select Output Main Declare X Integer Y Integer Set X 1 Set Y 2 Call Sub X Y Write X Q37119920

  • Please select the output:

main

        declare X as integer, Yas integer

                               set x=1

                               set y=2

                               call sub(x, y)

                               write x

                               write y

End program

Subprogram sub( integer Num1 as ref,Integer Mum2 as reference)

            

                                               declare x as integer

                                               set Num1 = 3

                                               set Num2 = 4

                                               set x= 5

                                               write x

end subprogram         
Please select one:      5/42, 5/34, 5/32,5/24

  • What is the output of this pseudo code

Main

         declare F asInteger

                               F = 1

                               set result = F(K)

                               write result

end program

Function F(N) as integer

         if N == 1 Then

                                          set F= 1

         else

                                          set

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.