On this page, you can find Infosys Pseudo-code Questions and Answers for the year 2023. Algorithm code in C, C++, or any other language is typically represented as pseudo-code. There will be a total of 5 questions in the Pseudo Code round, and we will have ten minutes to respond and it’s mandatory, You can’t skip this. The paper’s difficulty ranges from moderate to high pseudo-Code is the same as an algorithm expressed in coding style; however, pseudo-code is not a machine-readable code. Visit our Infosys Dashboard for additional details on the Infosys Examination.
Infosys Pseudo-Code Topics Detailed Infosys Pseudo-Code Paper Pattern
No. of questions in test
Suggested Avg. Time
Question 1: Which of these changes should make in the given code snippet to print “a” exactly 59 times?
int i,x = 59;
for(i = 0; i< x; i--)
Replace i by n in for all expressions in the loop
Replace ‘<‘ by ‘*’ in loop’s second expression.
Put ‘_’ before i in for loop’s second expression.
Replace x=59 by x = 60
Question 2: What will be the output of the given pseudo code, if n =10?
Initialize i to 5
while i<n, do:
Increase sun by i
increment end whe
Question 3: Consider the given problem statement
Problem Statement: Find the closest pair of points in an array of distinct points
Assume that you solve this problem by comparing all pairs of points. What will be the complexity of this approach?
O( N log N)
Cannot be determined
What will be the number of *** printed by the given pseudo code when input is 25?
Write "Please enter a number"
Repeat while input>0
If (star 0 and star<= 10)
else if (star >10 and star<= 20)
else if (star>20 and star<= 30)
Question 5: Predict the output of the given pseudo code
i = 0
while n%10!= 0
n = n+3
n = n + i;