📌Tech Mahindra Interview Experience
1) Asked my I'd card
2) Self intro
3) mentioned basics of Java
So he asked basics
4) Data types
5) Inheritance
6) Polymorphism
7) Exception
8) Are u willing to relocate
9) Are u comfortable with any
shifts
10) Are u interested in learning new
language
Telegram - @Coding_human
1) Asked my I'd card
2) Self intro
3) mentioned basics of Java
So he asked basics
4) Data types
5) Inheritance
6) Polymorphism
7) Exception
8) Are u willing to relocate
9) Are u comfortable with any
shifts
10) Are u interested in learning new
language
Telegram - @Coding_human
DCA java answer's
1. BC
D
2. {0,2,6,8}
3. public void addCrossMappings (CorsRegistry registry)
4. Failed
5. Display all the computer parts in ascending orders...
6. Larger Number: 25
7. There will be two errors....
8. A
9. 02
03
04
@Coding_human
10. -32767
11. 01
02
12. 5
D
1
4
13. Only i and ii
14. IT
Technical
15. Error
16. 25 days
telegram:- @Coding_human
https://t.me/Coding_human
1. BC
D
2. {0,2,6,8}
3. public void addCrossMappings (CorsRegistry registry)
4. Failed
5. Display all the computer parts in ascending orders...
6. Larger Number: 25
7. There will be two errors....
8. A
9. 02
03
04
@Coding_human
10. -32767
11. 01
02
12. 5
D
1
4
13. Only i and ii
14. IT
Technical
15. Error
16. 25 days
telegram:- @Coding_human
https://t.me/Coding_human
n=int(input())
arr=[]
count=0
for x in range(n):
temp=list(map(int,input().split("/")))https://t.me/Coding_human
arr.append(temp)
if temp[1] in [1,3,5,7,8,10,12]:
count+=1
if count!=0:
print(count)
else:
for x in arr:
if x[2]%2==0:
count+=1
print(count)
DOB lucky draw code Python
Telegram - @Coding_human
https://t.me/Coding_human
arr=[]
count=0
for x in range(n):
temp=list(map(int,input().split("/")))https://t.me/Coding_human
arr.append(temp)
if temp[1] in [1,3,5,7,8,10,12]:
count+=1
if count!=0:
print(count)
else:
for x in arr:
if x[2]%2==0:
count+=1
print(count)
DOB lucky draw code Python
Telegram - @Coding_human
https://t.me/Coding_human
Amazon ,Flipkart loot deals (must check)
You will save your money definitely.
https://t.me/DMAD_Discussion
You will save your money definitely.
https://t.me/DMAD_Discussion
public class Main
{
public static void main(String[] args) {
int [] students = {4,9,5,3,2,10};
int counter;
for(int i=0; i<6; i++){
counter = 0;
for(int j=0; j<i; j++){
if (students[j] > students[i]){
counter += 1;
}
}
System.out.print(counter+" ");
}
}
}
University everywhere code in java
Telegram:-https://t.me/Coding_human
{
public static void main(String[] args) {
int [] students = {4,9,5,3,2,10};
int counter;
for(int i=0; i<6; i++){
counter = 0;
for(int j=0; j<i; j++){
if (students[j] > students[i]){
counter += 1;
}
}
System.out.print(counter+" ");
}
}
}
University everywhere code in java
Telegram:-https://t.me/Coding_human
Harold and his homework
Python 3
https://t.me/Coding_human
https://t.me/Coding_human
https://t.me/Coding_human
Python 3
https://t.me/Coding_human
https://t.me/Coding_human
https://t.me/Coding_human
def solve(input1):
res=""
for i in input1:
if(i.isupper()):
res+="_"+i.lower()
else:
res+=i
print(res)
Modify Variable Names
Python 3✅
Telegram:-https://t.me/Coding_human
res=""
for i in input1:
if(i.isupper()):
res+="_"+i.lower()
else:
res+=i
print(res)
Modify Variable Names
Python 3✅
Telegram:-https://t.me/Coding_human
def change(input1):
# WRITE FROM BELOW
s=input1
if '_' in s:
t = s.split('_')
res = t[0]
for i in range(1,len(t)):
res+=t[i][0].upper()+t[i][1:]
return res
else:
res = [s[0]]
for c in s[1:]:
if c in ('ABCDEFGHIJKLMNOPQRSTUVWXYZ'):
res.append('_')
res.append(c.lower())
else:
res.append(c)
return ''.join(res)
# NO NEED TO WRITE INPUT AND PRINT COMMANDS
# lANGUAGE PYTHON3
s=input()
print(change(s))
Modify Variable Code
TG : https://t.me/Coding_human
# WRITE FROM BELOW
s=input1
if '_' in s:
t = s.split('_')
res = t[0]
for i in range(1,len(t)):
res+=t[i][0].upper()+t[i][1:]
return res
else:
res = [s[0]]
for c in s[1:]:
if c in ('ABCDEFGHIJKLMNOPQRSTUVWXYZ'):
res.append('_')
res.append(c.lower())
else:
res.append(c)
return ''.join(res)
# NO NEED TO WRITE INPUT AND PRINT COMMANDS
# lANGUAGE PYTHON3
s=input()
print(change(s))
Modify Variable Code
TG : https://t.me/Coding_human
⚡ How Much SALARY Do You Expect?
✅ As a fresher, My 1st priority is to gain knowledge enhance my skills to be more productive for the company & also I need to become financially independent.
✅ So, I will accept what you offered as per the company norms which will fulfill my economical needs.
Telegram - https://t.me/Coding_human
✅ As a fresher, My 1st priority is to gain knowledge enhance my skills to be more productive for the company & also I need to become financially independent.
✅ So, I will accept what you offered as per the company norms which will fulfill my economical needs.
Telegram - https://t.me/Coding_human
1)240
2)78
3)
5- mother in law
7- 27 may Thursday cooking
9- only conclusion 2 3 and 4 follows
10-Both A and R are true and R is the correct explanation of A
Telegram - https://t.me/Coding_human
2)78
3)
5- mother in law
7- 27 may Thursday cooking
9- only conclusion 2 3 and 4 follows
10-Both A and R are true and R is the correct explanation of A
Telegram - https://t.me/Coding_human
Some codes are already in the channel/group, you can search the code by their names.
Please open Telegram to view this post
VIEW IN TELEGRAM
Platinum airways code
Telegram : https://t.me/Coding_human
https://t.me/Coding_human
https://t.me/Coding_human
Telegram : https://t.me/Coding_human
https://t.me/Coding_human
https://t.me/Coding_human
⚡What are your strengths and weaknesses?
✅ My strength is I am self-motivated, I can adjust myself to any environment, I don't wait for the deadline, I finish my work before the deadline.
✅ My weakness is I just can't keep any work pending. I wanted to complete my work on time, otherwisw it Disturbs my routine also.
Telegram - https://t.me/Coding_human
✅ My strength is I am self-motivated, I can adjust myself to any environment, I don't wait for the deadline, I finish my work before the deadline.
✅ My weakness is I just can't keep any work pending. I wanted to complete my work on time, otherwisw it Disturbs my routine also.
Telegram - https://t.me/Coding_human
⚡What is the difference between confidence and over confidence?
I can do it because I am well prepared, this is confidence & I can do it easily and I don't need to prepare, this is overconfidence.
Telegram - https://t.me/Coding_human
I can do it because I am well prepared, this is confidence & I can do it easily and I don't need to prepare, this is overconfidence.
Telegram - https://t.me/Coding_human
def countPalin(str):
count = 0
# splitting each word as spaces as
# delimiter and storing it into a list
listOfWords = str.split(" ")
# Iterating every element from list
# and checking if it is a palindrome.
for elements in listOfWords:
if (checkPalin(elements)):
# if the word is a palindrome
# increment the count.
count += 1
print (count)
# Driver code
countPalin("Madam Arora teaches malayalam")
countPalin("Nitin speaks malayalam")
Python
Palindrome count
Telegram - https://t.me/Coding_human
count = 0
# splitting each word as spaces as
# delimiter and storing it into a list
listOfWords = str.split(" ")
# Iterating every element from list
# and checking if it is a palindrome.
for elements in listOfWords:
if (checkPalin(elements)):
# if the word is a palindrome
# increment the count.
count += 1
print (count)
# Driver code
countPalin("Madam Arora teaches malayalam")
countPalin("Nitin speaks malayalam")
Python
Palindrome count
Telegram - https://t.me/Coding_human
n=input()
m=input()
if m in n:
print("yes")
else:
print("No")
Python
String within String Code
Telegram https://t.me/Coding_human
m=input()
if m in n:
print("yes")
else:
print("No")
Python
String within String Code
Telegram https://t.me/Coding_human
n = int(input())
A = int(input())
A1 = []
A2= []
A3= []
ans = 0
https://t.me/Coding_human
for i in range(n):
A1.append(int(input()))
for j in range(n):
A2.append(int(input()))
for k in range(n):
A2.append([p[k], b[k]])
a.sort()
for z in a:
if a[0] > N:
break
N += a[1]
ans += 1
print(ans)
Try this code for this question... Python 3
Telegram:-https://t.me/Coding_human
https://t.me/infosys_sp_dsp_all_code
A = int(input())
A1 = []
A2= []
A3= []
ans = 0
https://t.me/Coding_human
for i in range(n):
A1.append(int(input()))
for j in range(n):
A2.append(int(input()))
for k in range(n):
A2.append([p[k], b[k]])
a.sort()
for z in a:
if a[0] > N:
break
N += a[1]
ans += 1
print(ans)
Try this code for this question... Python 3
Telegram:-https://t.me/Coding_human
https://t.me/infosys_sp_dsp_all_code