# Tag Archives: TCS-coding-questions

## Nth Term of a Fibonacci Series of Primes formed by concatenating pairs of Primes in a given range

Given two integers X and Y, the task is to perform the following operations: Find all prime numbers in the range [X, Y]. Generate all… Read More »

## Print the first N terms of the series 6, 28, 66, 120, 190, 276, …

Given a number N, the task is to print the first N terms of the series 6, 28, 66, 120, 190, 276, and so on.Examples:  … Read More »

## TCS CodeVita July 2019

Programming test (Python) Suppose on dd-mm-yyyy an eclipse occurred. Now, we are interested to calculate the date when next eclipse occurs. (Didn’t solve) Input: Input:… Read More »

## TCS Codevita Interview Experience 2019

Round 1(TR): Hello, My name is Ashim, I was called for interview on 30th of july 2019 and I will share my experience with you… Read More »

## TCS NQT Coding Questions & How Coding Task Evaluated in TCS NQT

How to solve the Coding Section in TCS NQT 2020? What is TCS NQT 2020? “https://www.conduiraonline.com/index.php/detail/2278-tcs-nqt-2020-registration-exam-date-exam-pattern-eligibility”-TCS NQT 2020 is the exam conducted by TCS for… Read More »

## TCS Coding Practice Question | Check Armstrong Number

Given a number, the task is to check if this number is Armstrong or not using Command Line Arguments. A positive integer of n digits… Read More »

## TCS Coding Practice Question | Check Odd or Even

Given a number, the task is to check if this number is Odd or Even using Command Line Arguments. A number is called even if… Read More »

## TCS Coding Practice Question | Fibonacci Series

Given a number ‘n’, the task is to print the Fibonacci series using Command Line Arguments. The Fibonacci numbers are the numbers in the following… Read More »

## TCS Coding Practice Question | Factorial of a Number

Given a number, the task is to find the Factorial of this number using Command Line Arguments. Factorial of a non-negative integer is the multiplication… Read More »

## TCS Coding Practice Question | Average of 2 Numbers

Given two numbers, the task is to find the average of two numbers using Command Line Arguments. Examples: Input: n1 = 10, n2 = 20… Read More »

## TCS Coding Practice Question | HCF or GCD of 2 Numbers

Given two numbers, the task is to find the HCF of two numbers using Command Line Arguments. GCD (Greatest Common Divisor) or HCF (Highest Common… Read More »

## TCS Coding Practice Question | LCM of 2 Numbers

Given two numbers, the task is to find the LCM of two numbers using Command Line Arguments. LCM (Least Common Multiple) of two numbers is… Read More »

## TCS Coding Practice Question | Swap two Numbers

Given two numbers, the task is to swap the two numbers using Command Line Arguments. Examples: Input: n1 = 10, n2 = 20 Output: 20… Read More »

## TCS Coding Practice Question | Concatenate 2 Strings

Given two Strings, the task is to concatenate the two Strings using Command Line Arguments. Examples: Input: str1 = “hello”, str2 = “world” Output: helloworld… Read More »

## TCS Coding Practice Question | Greatest of 3 Numbers

Given three numbers, the task is to find the greatest of three numbers using Command Line Arguments. Examples: Input: A = 2, B = 8,… Read More »