Skip to content
Related Articles

Related Articles

TCS NQT Coding Sheet

View Discussion
Improve Article
Save Article
Like Article
  • Difficulty Level : Easy
  • Last Updated : 25 Apr, 2022

What is TCS NQT ?

TCS NQT is National Qualifier Test conducted by Tata Consultancy Services, it is a prerequisite for all the tests. The validity of the NQT score is of two years. Candidates are eligible to apply on the TCS iON Job Listing Portal with an NQT score. NQT exams are conducted in both online and offline modes.

TCS-NQT-Coding-Sheet

What does this sheet Contains ?

This article contains TCS coding questions i.e. the coding questions that are mostly asked in TCS hiring challenges on different topics. The questions are arranged topic-wise in this sheet along with their solutions.

TCS Ninja and Digital profiles are selected on the basis of the TCS NQT test score. These two profiles differentiate the employees on the basis of coding and interview experience.

  • TCS Digital: TCS Digital hires for the Digital Technology Domain, specializing in IoT, AI, ML, Big Data, Virtual Reality, BlockChain, NLP, etc. There are three ways of landing the TCS Digital offer.
  • TCS Ninja: TCS Ninja profile is hired through TCS NQT test, based on the score you scored in NQT you will choosen as Ninja. It offers package of 3.36 to 3.60.

In the Coding section of TCS NQT, they asked questions from the below-mentioned topics:

Arrays: Here is the collection of the frequently asked interviews question on arrays in the TCS hiring test.

Articles

Practice

Non-Repeating Element

Link

Program for array rotation

Link

Equilibrium index of an array

Link

Print array after it is right rotated K times

Link

Array is a subset of another array

Link

Find all symmetric pairs from a pairs of array

Link

Counting Rock Samples

Link

Reverse an array or string

Link

Mean and median of an unsorted array

Link

Smallest and second smallest elements in an array

Link

Largest element in an array

Link

Second largest element in an array

Link

Counting frequencies of array elements

Link

Sort a K-Increasing-Decreasing Array

Link

Sum of elements in a given array

Link

Remove duplicates from the sorted array

Link

Remove duplicates from an unsorted array using Map data structure

Link

Block swap algorithm for array rotation

Link

Average of an array (Iterative and Recursive)

Link

Add an element to an Array

Link

Find duplicates in O(n) time and O(1) extra space

Link

Find maximum possible stolen value from houses

Link

Replace each element of the Array with it’s corresponding rank

Link

Sort elements by frequency

Link

Sort an array according to the order defined by another array

Link

Maximum Product Subarray

Link

String: Here is the collection of the frequently asked interviews question on strings in the TCS hiring test.

ArticlesPractice
Count vowels, consonants, digits, and special characters in a string

Link

Given String is Palindrome or not

Link

ASCII Value of a character

Link

Remove vowels from a String

Link

Remove spaces from a given string

Link

Remove character

Link

Remove all characters other than alphabets

Link

Reverse a string

Link

Sum of numbers in string

Link

Capitalize first and last character of each word

Link

Frequency of characters in a string

Link

Non Repeating Character

Link

Smallest and Largest Word in a String

Link

Strings are anagram of each other

Link

Sort string of characters

Link

Convert characters of a string to opposite case

Link

Count words in a given string

Link

Encrypt the string

Link

Remove duplicates from a given string

Link

Duplicates in the input string

Link

Lexicographically next string

Link

Remove brackets from an algebraic expression

Link

Check if a string is substring of another

Link

Reverse words in a given string

Link

Common subsequence in two strings

Link

One string contains wildcard characters

Link

Number Series: While a sequence is a list of items arranged in a sequential way following a particular relation, a series is the cumulative sum of a given sequence of terms.

ArticlesPractice
Prime Numbers

Link

Sum of arithmetic series

Link

Sum of geometric series

Link

All divisors of a natural number

Link

Replace all ‘0’ with ‘5’ in an input Integer

Link

Number is Positive, Negative, Odd, Even, Zero

Link

Harshad (Or Niven) Number

Link

Program to find GCD or HCF of two numbers

Link

LCM of two numbers

Link

Check if a number is a strong number or not

Link

Check if a given year is leap year

Link

Reverse digits of a number

Link

Program to add two fractions

Link

Sum of digits of a number

Link

Find all factors of a natural number

Link

Prime factors of a given number

Link

Kth largest factor of number N

Link

Given number is even or odd

Link

Perfect Number

Link

Palindromes in a given range

Link

Armstrong Numbers

Link

Abundant Number

Link

Sum of first n natural numbers

Link

Sum of all natural numbers in range L to R

Link

Primitive Abundant Number

Link

Count ways to reach the n’th stair

Link

Count prime numbers that can be expressed as sum of consecutive prime numbers

Link

Fibonacci numbers

Link

Check if a number is Palindrome

Link

Largest and smallest digit of a number

Link

Square Free Number

Link

Permutations to arrange N persons around a circular table

Link

Can a number be expressed as a sum of two prime numbers

Link

Area of a circle

Link

Roots of Quadratic equation

Link

Conversions: We need to write a program to convert the given number(specific number system) into an equivalent number(specific number system).

ArticlesPractice
Convert Binary to Decimal

Link

Convert binary to octal

Link

Decimal to Binary conversion

Link

Convert decimal to octal

Link

Convert Octal to binary

Link

Convert Octal to decimal

Link

Convert a given number to words

Link

Sorting Algorithm: Sorting Algorithm is used to rearrange a given array or list elements according to a comparison operator on the elements.

ArticlesPractice
Bubble Sort

Link

Selection Sort

Link

Insertion Sort

Link

Quick Sort

Link

Merge Sort

Link

Radix Sort

Link

Counting Sort

Link


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!