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

311 / 410

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

312 / 410

Write a program using command line argument to input a string and print the string in reversed order..

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:TCS

313 / 410

Write a program using command line arguments to input a number and find that number is even or odd.

INPUT: 14
OUTPUT: Even

INPUT: 13
OUTPUT: Odd

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:TCS

314 / 410

Write a program using command line arguments to input two number and find the GCD/HCF of the number.

Condition:
If the entered number is less than 2 print the message and exit.

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:TCS

315 / 410

Write a program using command line arguments to input two number and find the LCM of the number.

Condition:
If the entered number is less than 2 print the message and exit.

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:TCS

316 / 410

Write a program using command line argument to input one number and print the Factorial of the number.

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:TCS

317 / 410

Write a C program using command line arguments which will take numbers as input and Find the average of the numbers.

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:TCS

318 / 410

Write a program in C using command line argument to input one number and print the square root of the number without using sqrt().

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:TCS

319 / 410

Write a program in C using command line argument to print Your Name Using Command Line Argument.

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:TCS

320 / 410

Write a program in C using command line argument to input one number and print Sum of digits of number.

Input : NA

Output : NA

|  Basics | | | |  Fresher

Tags:TCS

+ Contribute Programming Qs.

Baig
1