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
These All Programs asked in TCS CommandLine Base Argument Coding Tests for TCS, Practice TCS C Coding Questions, TCS command line programs, TCS Coding questions, TCS Command Line arguments Programs, TCS Coding Test, TCS Questions on Coding Test, TCS Previous Papers, TCS Coding Round Questions with Solutions, TCS Programming Test Questions.
Q4I highly advised to practice all the basics programs using commnad line argument alongwith all the above programs asked in TCS previous Drives. Time limit for this section will be 20 minutes, and cadidates will get only 10 attempts(10 times) to compile their program, c programming questions for TCS, coding platform window will divided into two part, one for writing the code and other for output,c program asked in TCS, TCS programming question, TCS programming questions
Top Kudos Contributor
Trending Programming Qs.
- Given a number n, print all primes smaller than or equal to n. It is a...
- Sort a list of dates in ascending order given the data format shown be...
- Write a program to remove the vowels from the input string.
- Write a program to check whether given date is valid or not?
Last Month Contributor
- Given a number n, print all primes smaller than or equal to n. It is a...
- 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...