TCS National Qualifier Test 2021 | TCS NQT Coding Questions | TCS NQT Programming Questions | TCS NQT Questions and Answers

TCS Walk-in Drive 2023
TCS Walk-in Drive 2023

TCS National Qualifier Test 2021 | TCS NQT Coding Questions | TCS NQT Programming Questions | TCS NQT Questions and Answers | TCS NQT Mock Test 2021

TCS National Qualifier Test 2021: TCS is an Indian multinational information technology (IT) services, business solutions, and consulting company headquartered in Mumbai, Maharashtra. TCS operates in 44 countries and has 199 branches across the world. It is a subsidiary of the Tata Group and is listed on the Bombay Stock Exchange and the National Stock Exchange of India. Its main function is to provide IT services. The details about TCS Career Recruitment eligibility and application process are mentioned below

Company Name: Tata Consultancy Services

Company Website: TCS

Wikipedia: TCS Wiki

Position: Multiple Position

Degree Needed: B.E/B.Tech/M.E/M.Tech/M.Sc/MCA

Passout Batch: 2018/2019/2020/2021

Job Location: Across India

Experience Level: 0 – 3 Years

TCS NQT Salary: 3.5 – 6.5 LPA

Last Date To Apply: 10th Feb 2021

TCS NQT 2021 Date: 18th and 19th February 2021

Jobs By Location And Passout Year:

PuneHyderabad Delhi
MumbaiCoimbatore Noida
BangaloreChennai Off Campus
NagpurGurgaon Walk In
2015 Batch2018 Batch2021 Batch
2016 Batch2019 Batch2022 Batch
2017 Batch2020 Batch2023 Batch

If you still have not Registered to TCQ NQT check this TCS NQT 2021

Take TCS NQT 2021 Mock/Practice Exam Online: Click here

TCS NQT 2021 Exam Pattern of TCS Recruitment 2021 for freshers:

Test SectionDuration (in minutes)No of Questions
Verbal Ability3024
Reasoning Ability5030
Numerical Ability4026
Programming Logic1510

TCS NQT Programming Questions

1. Write a program to swap two numbers without using a temporary variable.

void swap(int &i, int &j)

2. Tell how to check whether a linked list is circular.

Create two pointers, each set to the start of the list. Update each as follows:
while (pointer1) {
pointer1 = pointer1->next;
pointer2 = pointer2->next; if (pointer2) pointer2=pointer2->next;
if (pointer1 == pointer2) {
print (“circular\n”);

3. What are the 4 basics of OOP? 

Abstraction, Inheritance, Encapsulation, and Polymorphism.

4. What is a command line argument?

Getting the arguments from command prompt in c is known as command line arguments. In c main function has three arguments. They are:

Argument counter
Argument vector
Environment vector

5. Advantages of a macro over a function?

Macro gets to see the Compilation environment, so it can expand #defines. It is expanded by the pre-processor.

6. What are the advantages of inheritance?

It permits code reusability. Reusability saves time in program development. It encourages the reuse of proven and debugged high-quality software, thus reducing problem after a system becomes functional.

7. Can you list out the areas in which data structures are applied extensively?

Compiler Design,
Operating System,
Database Management System,
Statistical analysis package,
Numerical Analysis,

8. What is data structure?

A data structure is a way of organizing data that considers not only the items stored, but also their relationship to each other. Advance knowledge about the relationship between data items allows designing of efficient algorithms for the manipulation of data.

9. What are the differences between structures and arrays?

Arrays are a group of similar data types but Structures can be group of different data types.

10. What is function overloading?

Function overloading is a feature of C++ that allows us to create multiple functions with the same name, so long as they have different parameters.Consider the following function:
   int Add(int nX, int nY)
      return nX + nY;

11. What is wrong with this statement? 

An ampersand ‘&’ symbol must be placed before the variable name whatnumber. Placing & means whatever integer value is entered by the user is stored at the address of the variable name. This is a common mistake for programmers, often leading to logical errors.

12. What will be the output of the program?

int X=40;
int main()
    int X=20;
    printf(“%d\n”, X);
    return 0;

D.No Output

13. What will be the output of the program ?
int main()
    int a[5] = {5, 1, 15, 20, 25};
    int i, j, m;
    i = ++a[1];
    j = a[1]++;
    m = a[i++];
    printf(“%d, %d, %d”, i, j, m);
    return 0;

A.2, 1, 15             
B.1, 2, 5
C.3, 2, 15             
D.2, 3, 20

14. What should the program below print?

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void myfunc(char** param){
int main(){
char* string = (char*)malloc(64);
strcpy(string, “hello_World”);
printf(“%s\n”, string);
// ignore memory leak for sake of quiz
return 0;

1. hello_World
2. ello_World
3. lo_World
4. llo_World

15. What is the output of this C code?

#include <stdio.h>
void main()
int k = 5;
int *p = &k;
int **m = &p;
printf(“%d%d%d\n”, k, *p, **p);

a) 5 5 5
b) 5 5 junk
c) 5 junk junk
d) Compile time error

TCS NQT Syllabus, Coding Papers, Aptitude Questions: Click here

For TCS NQT 2021 Interview Questions, English and Programming Set 1: Click here

For TCS NQT 2021 Interview Questions, English and Programming Set 1: Click here

For TCS NQT 2021 Interview Questions, English and Programming Set 2: Click here

TCS NQT Programming Questions | TCS Coding Questions 2021 Set 3: Click here

TCS NQT 2020 Coding Questions With Answers | TCS NQT Programming Logic Questions Set 4: Click here

TCS NQT Interview Questions for Technical Round: Click here

HR Interview Questions of TCS NQT: Click here

How To Write Resume For Getting Shortlisted In TCS NQT: Click here

Join Telegram Group of Daily Jobs Updates for 2010-2023 Batch: Click Here

If You Want To Get More Daily Such Jobs Updates, Career Advice Then Join the Telegram Group From Above Link Also Press Red Bell Icon At The Left Side of Page To Subscribe our Updates.

TCS Registration 2021 HackQuest Season 5 Campus Challenge: Click here

Accenture Hiring Freshers of Package 4.5 LPA Across India: Click here

Why You’re Not Getting Response From Recruiter?: Click here

Top 5 High Salary Jobs in India IT Sector 2021: Click here

Whats is the Difference Between CV and Resume?: Click here

How To Get a Job Easily: Professional Advice For Job Seekers: Click here

A Leadership Guide For How To Win Hearts and Minds: Click here

How To Improve Communication Skills with 12 Strategy: Click here

Career Tips for Freshers: Top 7 Hacks To Land Your Target JobClick here

Which Graphics Processor is Best for Gaming 2021?: Click here

Feel Like Demotivated? Check Out our Motivation For You: Click here

Top 5 Best Mobile Tracking App in 2021 For Mobile & PC: Click here

5 Proven Tips For How To Look Beautiful and Attractive: Click here

Home Workouts During The Lockdown For Fitness Freaks: Click here

What is Big Data Analytics? Does it Require Coding?: Click here