TCS NQT Coding Solve| 4 pm

MCQ

1. 1
2. Double linked list
3. ER+PT-*
4. 1a 2b 3d
5. A
6. Tree
7. ER
8. 120
9. c
10. 1

Question 1: Lata is an English teacher

#Correct Solution in Python 3.8

x=input()
print(len(x.split()))
print(len(x))

Question 2: Two strings

#Correct Solution in Python 3.8

x=input()
y=input()

while y in x:
    x=x.replace(y,"")
print(len(x))

Follow us

You Missed

Also Checkout