Coding Questions Asked in TCS
1 / 25
Input : What is your name
Output :
2 / 25
Input : NA
Output : NA
Tags:TCS
3 / 25
Input : NA
Output : NA
Tags:Wipro TCS Syntel Inc. Sapient Capgemini
4 / 25
Input : NA
Output : NA
Tags:Wipro TCS Syntel Inc.
5 / 25
Input : NA
Output : NA
Tags:Cisco TCS Syntel Inc.
6 / 25
Input : NA
Output : NA
Tags:TCS
7 / 25
Input : NA
Output : NA
Tags:TCS
8 / 25
Input : NA
Output : NA
Tags:TCS
9 / 25
If the number N is prime, then find its square root and print that value to stdout as floating point number with exactly 2 decimal precision.
If the given number N is not prime, then print the value 0.00 to stdout.
The given number N will be a positive non Zero integer and it will be passed to the program using the first command line parameter. Other than the floating point result, no other information should be printed to stdout.
Input : NA
Output : NA
Tags:TCS
Q4I highly advised to practice all the basics and standard program asked at freshers or experienced level job interview in TCS. Practice our hand-picked coding interview questions asked in TCS. You can programed the given question in any language, you can post your answer and same time you can review the other answer. It is always recommanded to write your own program first and then refer others answers. At this page we have covers all the TCS coding questions in 2020 and previously asked in their Interview round or coding rounds.
Top Kudos Contributor
Trending Programming Qs.
- Sort a list of dates in ascending order given the data format shown be...
- Write a program to reverse the string?
- Write a program to print next to the last word of a sentence.
Last Month Contributor
- Write a program to count the no. of words in the given string?
- Write a program to print next to the last word of a sentence.
- Write a program to reverse the string?
- Write a program to convert uppercase to lower case and vice versa of a...
- Given a string, say sentence=" this is crazy and fun" and a list, say ...