What operation does the following pseudo code performs Declare an array of…
PYQ Infosys Hiring Test 2025PYQ Hexaware Hiring Assessment 2024PYQ Accenture Hiring Assessment 2024PYQ CoCubes 2025
What operation does the following pseudo code performs
Declare an array of string type variable called word
Declare a loopcounter
Store a string in the array word
for loopcounter = (length of the word) – 1 to 0
loopcounter = loopcounter – 1
print arrayword[loopcounter]
endfor
Algorithm end
- A.
It accepts a string
- B.
Prints string in the reverse order
- C.
Prints string in the same order
- D.
None of the above
Attempted by 323 students.
Sign up free to check your answer
Sign up freeLoading lesson…

