TCS Exam Answers Live Refresh in Every 2mins 2pm Slot Answers
Aptitude :-
1) 0.07
3) 40 years
4) 5%
5) 5759.5
6) 30, 70
7) 10731
8) 40
9) 17
10) 68
11) 12.5%
12) BX
13) 200
14) 535 kms
15) 5:4
16) 26
17) 4.2
18) 19.74
19) 494
20) 25
--------------------------------------------------------------------
Verbal :-
1) Fearless Manager
2) Opportunity
3) Since we had already reached
4) Capture your heart
5) 1342
6) ABDEC
7) Convivial
8) Parents
9) Bullies are blank (2)A.apathy B
10) From within
11) Strike it rich
12) Do not create or live by
13) DBCEA
14) QS
15) Nascent
16) Continuous
17) SP
18) ECADB
19) It's hands They didn't Care
20) The narrator
21) The narrator belonged
22)
23) Nature
24)
25) Is it is
--------------------------------------------------------------------
Reasoning Answers :-
1) EJP
2) figure C
3) Neither
4) Both statements
5) Mothers Mother
6)
7) 747
8) 15.72
9) 5
10) 5:4
11) YTWEKN
12)
13)
14) B
15)
--------------------------------------------------------------------
1) No
2) 116
3) Chithi
4) Vani
5) age of younger brother
6) SBN
7) Only 2 & 3
8) Neither
9) None
10) Bishesh
--------------------------------------------------------------------
Coding :-
Alice C language :-
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
int arr[n];
for(int i=0;i<n;i++)
{
scanf("%d",&arr[i]);
}
int count=0;
int num=arr[0];
for(int i=1;i<n;i++)
{
if(num!=arr[i])
count++;
}
printf("%d",count);
}
Alice Python Code :-
Mike Code :-
n=int(input())
a=[int(input()) for i in range(n)]
d={}
for i in a:
if i not in d:
d[i]=1
else:
d[i]+=1
v=list(d.values())
k=list(d.keys())
for i in range(len(v)):
if v[i]>1:
print(k[i])
break
else:
print(-1)
break
a=[int(input()) for i in range(n)]
d={}
for i in a:
if i not in d:
d[i]=1
else:
d[i]+=1
v=list(d.values())
k=list(d.keys())
for i in range(len(v)):
if v[i]>1:
print(k[i])
break
else:
print(-1)
break
0 Comments