TCS NQT | TCS | TCS Ninja Asked Coding Questions with Solutions

TCS National Qualifier Test :

TCS National Qualifier NQT - which is conducted by TCS' strategic unit TCS iON - is a multi-level Coding assessment to assess competence on core cognitive abilities required for entry-level jobs, industry-specific knowledge and insights, and specialization on skills required for performing the job role.Test (TCS NQT) is a multi-level assessment to assess the following competencies and skills:
  • Competence on the core cognitive processes required for entry-level jobs.
  • Industry-specific knowledge and insights.
  • Specialization on skills required to perform various job roles.

TCS Recruitment Process & Registration
TCS follows following process to hire associates as per your eligibility.

  1. TCS NQT ( 3.36 LPA )
  2. TCS Digital (7 LPA )
  3. TCS Innovator (11 LPA )

About National Qualifier Test(NQT)
TCS National Qualifier Test ( TNQT ) is conducted by TCS iON every year in end of Oct and registration process begins in Sep. TCS NQT (Ninja) is to recruit students for the 3.36 - 3.6 LPA job role. It is a 90 minutes test & comprises of 4 sections: English, Quantitative Aptitude, and Programming Concepts & Coding.

This is the eligibility criteria for the TCS iON NQT.

  • DEGREES AND BRANCHES : BE/B.Tech/ME/M.Tech/M.Sc/MCA
  • PERCENTAGE : The applicant must have minimum 60% or 6 CGPA throughout academics.
  • BACKLOGS : The applicant must not have more than 1 active backlog/arrear/ATKT while appearing for the TCS Selection process.
  • GAP / BREAK IN EDUCATION : Overall break should not exceed 24 months.
  • AGE : 18 to 28 years.
     
Online Test – TCS National Qualifier Test (NQT) :
Difficulty level is very easy and you can easily qualify for this.
coding section is little bit difficult but if you will perform well in other sections then mostly you will get selected for Interview process.

Students selected for this were called for the Interview for Ninja profile (3.36 LPA).
  1. Technical Interview : This round lasted for about 10 - 30 mins , and they asked from all possible topics they could.
  2. Managerial Interview : Mostly will be combined with TI.
  3. HR Interview : This I round will be very easy only some basics questions and will last for 5 - 10 min

IMPORTANT NOTE:

  1. There will be no negative marking.
  2. TCS NQT is adaptive this year
  3. You will not get any extra rough paper in the exam as a calculator and Rough Paper will be available on your Desktop Screen. You are not allowed to move your eyes down while giving the examination.
In this article, we will be discussing some of the TCS NQT Coding Questions asked in the previous recruitment tests.

TCS NQT Question 1 : Computer and Binary Machine

Input :
12 -> Value of N
Output : C -> Hexadecimal number
Explanation : From the inputs given above.
Decimal number 12
To convert hexadecimal equivalent, if the number range 0 to 9 the hexadecimal is also same .
After if decimal number is 10 hexadecimal is A
if decimal number is 11 hexadecimal is B
if decimal number is 12 hexadecimal is C
Hence , the output is C.
Example 1 :
Input : 2545 -> Value of N
Output : 9F1-> Hexadecimal number
Explanation : From the inputs given above.
Decimal number 12
To convert hexadecimal equivalent, if the number range 0 to 9 the hexadecimal is also same .
import java.util.*;
public class MyClass {
    public static void main(String args[]) {
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      System.out.println(Integer.toHexString(n).toUpperCase());   
    }
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

TCS NQT Question 2 Customers Waiting at a Restaurant

An 'N' number of customers are waiting at a restaurant that is recently opened. After every 'M' minutes, a new customer arrived at a restaurant. Due to the huge crowd customer have to wait for their table at the restaurant. only one customer is allowed at a time. T manager at the reception desk asks each customer yto wait for 'X' minutes to get their table . The task is to calculate the duration (in minutes ) the last customer arrived need to wait.
Example :
Input
5 Value of N
3 Value of M
10 Value of X
Output:
28
Explanation : none
  import java.util.Scanner;
  public class CustomerWating {
	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = sc.nextInt();
        int X = sc.nextInt();
        System.out.println(lastCTime(N,M,X));
	}
	private static int lastCTime(int n, int m, int x) {
		return (n-1)*x - (n-1)*m;
	}
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

TCS NQT Question 3 : Chocolate Factory

A chocolate factory is packing chocolates, into the packers. The chocolate packers here represent an array arr[] of N number of integer values . The packers to find the empty packets(0) of chocolate and push the end of the conveyor belt(array).
Example :
There are 3 empty packets in the given net. There 3 empty packets represent as 0 should be end toward the end of the array
Example 1 :
Input
7 - Value of N
[4,5,0,1,9,0,5] - Elements of arr[0] to arr[N-1], while input each is separated by new line
Output
4 5 1 9 5 0 0
import java.io.*;
import java.util.Scanner;
public class ChockletFactory {
	static void getSolution(int arr[], int n) {
		int count = 0;
		for (int i = 0; i < n; i++)
			if (arr[i] != 0)
				arr[count++] = arr[i];
		while (count < n)
			arr[count++] = 0;
	}
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] arr = new int[n];
		for (int i = 0; i < n; i++) {
			arr[i] = sc.nextInt();
		}
		getSolution(arr, n);
		for (int i = 0; i < n; i++)
			System.out.print(arr[i] + " ");
	}
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

TCS NQT Question 4 : Premier Championship Series

In a premier championship series of sports car racing initially the 1st car is head the 2nd car by X meter.After that every second the first car moves ahead by n1 meter and the second car moves ahead by n2 meters in same direction. The task is to print the number of seconds after which the 2nd car crosses the 1st car. if it is impossible to do so the n print -1.

Example 1:
3 --- value of n1
4 --- value of n2
1 --- value of X
Output
2

Example 2:
5
4
1
Output
-1
public class Main {
    public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       int n1 = sc.nextInt();
       int n2 = sc.nextInt();
       int x = sc.nextInt();
       if(n1 < n2){ 
        int second =1;
        int t1 = x + n1;
        int t2 = n2;
        while(t1 >= t2){
           second++;
           t1+=n1;
           t2+=n2;  
       }
       System.out.println(second);
       }else{
           System.out.println(-1);
       }
    }
}
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

TCS NQT Question 5 : Missing letter of the alphabets

Given a sentence Str. The task s to find the whether the given sentence contains all letters of the English alphabet (a-z or A-Z). If does not then print all missing letters of the alphabet other wise print 0.

Note
All character in the given sentence should be as case insensitive which means that 'A' and 'a' are to be treated as the same.
The output should be in alphabetic order.
The output should be contains only lowercase alphabets.
if none of the letters are missing print 0as output.

Example 1 :
Input
The four boxing wizard start over the quickly ---value of Str

Output
jmp
Example 2 :
Input
The four boxing wizard jump over the quickly --- value of str
Output
0 --- None of the letter are missing
  public class Main {
    public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       String str = sc.nextLine().toLowerCase();
       int[] arr = new int[26];
       for(int i=0; i<str.length(); i++){
           char ch = str.charAt(i);
           if(ch != ' '){
               arr[ch-97] = 1;
           }
       }
       int c =0;
       for(int i=0; i<26; i++){
           if(arr[i] == 0){
            System.out.print((char)(97+i)+"");
            c++;
           }   
       }
       if(c == 0 ){
           System.out.println(c);
       } 
    }
}
  
If you want solution of any questions, send me the question here codingsolution75 I will upload it soon.

Question 6 : Coming Soon

Comments

More Related

For Any Help Related to coding exams follow me on Instagram : codingsolution75

Popular Posts

WIPRO Latest Coding Questions with Solutions : 2023

EPAM Latest Coding Questions with Solutions 2023

MindTree Latest Coding Questions with Solutions

Fresco Play Hands-on Latest Solutions

TCS Digital Exam | DCA | Direct Capability Assessment

TCS Wings 1 All Prerequisite

Infosys | InfytTq | Infosys Certification Exam Latest Coding Questions with Solutions

RAKUTEN Latest Coding Questions with Solutions

Cognizant

TypeScript Complete Course With Completed Hands-on