[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

2 / 25

Write an efficient program to covert decimal number into binary number

Input : NA

Output : NA

|  Bitwise Operator | | | |  Fresher

Tags:TCS

3 / 25

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

Input : NA

Output : NA

|  Basics | | | |  Fresher

4 / 25

Write a program to print prime numbers upto 10.

Input : NA

Output : NA

|  Basics | | | |  Fresher

5 / 25

Write a program to print the nth fibonacci number.

Input : NA

Output : NA

|  Basics | | | |  Experience

6 / 25

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

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:TCS

7 / 25

Write a Program to generate random numbers.

Input : NA

Output : NA

|  Basics | | | |  Fresher

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

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

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

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

+ Contribute Programming Qs.

Baig
1