[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

# Coding Questions Asked in TCS

1 / 25

Write a program to print next to the last word of a sentence.

Input : What is your name

Output :

|  Basics | | | |  Experience
Please Login to view the answer

2 / 25

Write an efficient program to covert decimal number into binary number

Input : NA

Output : NA

|  Bitwise Operator | | | |  Fresher
Please Login to view the answer

Tags:TCS

3 / 25

Write code for swapping two variables without using 3rd variable.

Input : NA

Output : NA

|  Basics | | | |  Fresher
Please Login to view the answer

4 / 25

Write a program to print prime numbers upto 10.

Input : NA

Output : NA

|  Basics | | | |  Fresher
Please Login to view the answer

5 / 25

Write a program to print the nth fibonacci number.

Input : NA

Output : NA

|  Basics | | | |  Experience
Please Login to view the answer

6 / 25

Write a program to print odd number in descending order from 1-10.

Input : NA

Output : NA

|  Basics | | | |  Fresher
Please Login to view the answer

Tags:TCS

7 / 25

Write a Program to generate random numbers.

Input : NA

Output : NA

|  Basics | | | |  Fresher
Please Login to view the answer

Tags:TCS

8 / 25

Write a program using command line argument to input a word and check whether it is palindrome or not.

Input : NA

Output : NA

|  Basics | | | |  Fresher
Please Login to view the answer

Tags:TCS

9 / 25

Write a C program which will check whether a given number N is prime or not.

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

|  Basics | | | |  Fresher
Please Login to view the answer

Tags:TCS

10 / 25

Write a program using command line argument to input two number and Calculate the Sum of numbers.

Input : NA

Output : NA

|  Basics | | | |  Fresher
Please Login to view the answer

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.

+ Contribute Programming Qs.

Baig
1