Edit Reply

Edit

  1. Home
  • Add an Event
  • Add an Interview Experience
  • Add a Discussion
Add

anyone have infosys apti material plz send me on up57688@gmail.com

1 Thanks 1 Comment
M. Venkat Manas Chandra 3 hours ago
please send me also manaschandra19@gmail.com

when will tcs conduct off-campus drive for 2018 passed out students? What will be the pattern?

1 Thanks 3 Comments
sivaramireddy vemannagari 7 hours ago
this is for 2019 batches

write a c program to print following series test cases when input is 3 & 7 33333 32223 32123 32223 33333 n=7 7777777777777 7666666666667 7655555555567 7654444444567 7654333334567 7654322234567 7654321234566 7654322234567 7654333334567 7654444444567 7655555555567 7666666666667 7777777777777

1 Thanks 1 Comment
k kishore kumar 17 hours ago
#include

int main()
{

int n;
scanf("%d", &n);
int len = n*2 - 1;
for(int i=0;i for(int j=0;j int min = i < j ? i : j;
min = min < len-i ? min : len-i-1;
min = min < len-j-1 ? min : len-j-1;
printf("%d ", n-min);
}
printf("\n");
}
return 0;
}

how tough it would be to crack TCS ninja test Means what will be the level of the question being asked?

1 Thanks
Geetha Palanisamy 15 hours ago
To know answers for TCS Mock questions, you can attend today's webinar. Register here: https://goo.gl/5oxTZJ

can we attend infosys drive twice in 9month

2 Comments
Sagarika 17 hours ago
even I have the same doubt I went till hr round but got rejected ..I want to apply again

i went through the mock test of TCS can someone give me the code for the problem given in test today?

1 Thanks 2 Comments
PRASHANT PANDEY 2 days ago
Did you solve advance quantitative part?

Predict the output/error:
(Let the input be 10 x 0.123456 FACE)
#include "stdio.h"
int main()
{
int a;
char b;
float c;
char d[10];
printf("%d", scanf("%d %c %f %s", &a, &b, &c, &d));
printf(" %d", sizeof(0.123456));
printf(" %d", sizeof(c));
return 0;
}

  1. A 4 4 4 11%
  2. B 4 8 4 22%
  3. C Garbage Value 4 4 35%
  4. D Run time error 31%
Skip
3 Thanks 141 Attempts 6 Comments
Geetha Palanisamy 15 hours ago
Guys, the answer is Option b) 4 8 4
Solution:
1) The scanf() is a function which returns some integer value as a result. It returns the number of input items successfully matched and assigned.
So here in this program, it takes 4 inputs successfully hence it returns 4 as a result.
(i.e) printf("%d", scanf("%d %c %f %s", &a, &b, &c, &d)); --> this statement will become printf("%d", 4); ---> thus prints 4 to the output screen.
2) printf(" %d", sizeof(0.123456)); ---> Here the size of the floating value will be printed as an output. Size of any floating values will be 8 bytes by default (if it's not assigned to any float data type). Here, it prints 8 as an output.
3) printf(" %d", sizeof(c)); --> Here the variable c is declared as float, as we all know the size of float is 4 bytes. It prints 4 as an output.
Finally, the output of the given program is 4 8 4.
Zainab F 3 days ago
How did you apply?
Open in App