INFYTQ


Infytq coding questions based on students rememberence:

Q) Print the number series addition using given test cases :
1,2,2,5,3,4,8,1 
Between 5 and 8 print as it is and add remaining
    O/p: 523418
Explanation:   sum1:1+2+2+1=6  and Sum2: 5348
    Sum =6+5348
    Incase:5,2,3,4,1,8
    It is between 5 and 8 print as it is
2) print the even in sequence :
  ->   Infosys @335
   No even num present print :-1(in case of odd)
->  infosys @2648

-o/p: 8642

Q) We have to take a string as input and in that we have to find the odd digit and we have to square that one like that we have to find all the squares of odd digits in that string and generate a code with atmost length of 4
We have to take string as input and special characters won't change there position while generating output and remaining digits we have to reverse

No comments:

Post a Comment

CTS Written test results of Vijayawada, Guntur, Ongole, Godarvari Districts were out.  Tentative dates of TR and HR are 24th and 25th Nov...