Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

# Programming Questions and Answers

301 / 410

Write a Program to find the maximum element in an array of 10 elements.

Input : NA

Output : NA

|  Array | | | |  Fresher

Tags:Virtusa

302 / 410

Write a program to find minimum and maximum of an array?

Input : NA

Output : NA

|  Array | | | |  Fresher

Tags:Virtusa

303 / 410

Reverse a string without using any in-built string functions?

Input : NA

Output : NA

|  Array | | | |  Fresher

Tags:Virtusa

304 / 410

Write a program to find the average of 10 numbers?

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:Virtusa

305 / 410

Write a program to print alternate even numbers(2,6,10,14,18....).

Input : NA

Output : NA

|  Basics | | | |  Fresher

306 / 410

Write a program for string reverse without using the reverse function.

Input : NA

Output : NA

|  Strings | | | |  Fresher

Tags:No Tags on this question yet!

307 / 410

Write a program using sizeof and strlen.

Input : NA

Output : NA

|  Basics | | | |  Fresher

308 / 410

Get an IP address in char * and store it in uint32 variable and display with '.' symbol.

Input : NA

Output : NA

|  Array | | | |  Experience

Tags:Cisco

309 / 410

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

310 / 410

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

+ Contribute Programming Qs.

Baig
1