If you are a fresher aiming for an IT job in India, the TCS National Qualifier Test (NQT) is probably the single most important exam on your calendar. One test, taken at a TCS iON centre, decides whether you get called for a Ninja, Digital or Prime interview — and the difference between those three is roughly ₹3.4 LPA vs ₹7 LPA vs ₹9+ LPA for a UG fresher.
Most “TCS NQT guides” online are either a copy-pasted syllabus table or a sales page for a mock-test series. This post is different. I’ve gone through the official TCS careers page, the TCS iON NQT product page, and recent 2026 candidate interview experiences, and turned all of it into one practical, code-first roadmap:
- What the test actually looks like (and which numbers are official vs. “reported by candidates”)
- Every section broken down topic-by-topic, with solved examples and shortcuts
- iON-style coding templates in C++, Java and Python that read input correctly on the first try
- Real 2026 coding questions with tested solutions
- The full interview process — Technical, Managerial, HR — with a question bank
- A 30-day study plan, an exam-day checklist, and the mistakes that silently kill selections
Bookmark it. It’s long on purpose.
TCS NQT in 60 seconds
| Item | Details |
|---|---|
| Full name | TCS National Qualifier Test (NQT) |
| Conducted by | TCS, through its assessment arm TCS iON |
| Mode | In-centre only, at TCS iON authorised centres |
| Duration | 190 minutes (Foundation 75 + Advanced 115) |
| Sections | Numerical, Verbal, Reasoning, Advanced Quant & Reasoning, Advanced Coding |
| Negative marking | None |
| Outcome | Shortlist for Ninja, Digital or Prime interview |
| Who it’s for | B.E./B.Tech/M.E./M.Tech/MCA/M.Sc/M.S. graduates (batch-specific) |
| Score validity (TCS iON NQT) | 2 years |
Key rule from TCS: “Advanced section” is mandatory if you want a Digital or Prime offer. Skip it and the best you can hope for is Ninja.
Two ways to take NQT: free hiring drive vs. paid TCS iON NQT
This confuses almost everyone, so let’s settle it first. There are two different products that both get called “TCS NQT”:
| TCS All India NQT Hiring (off-campus drive) | TCS iON NQT – IT (paid scorecard test) | |
|---|---|---|
| Purpose | Direct hiring into TCS (Prime / Digital / Ninja) | A skills scorecard you can use to apply to TCS and other companies |
| Where you register | TCS NextStep portal, category “IT” → Apply For Drive | TCS iON website (buy the “NQT – IT” product) |
| Cost | Free | ₹999 (listed down from ₹1,598, inclusive of taxes) at the time of writing |
| How often | Announced per hiring cycle (the 2026-batch drive opened registrations on 18 Feb 2026, with tests from 10 Mar 2026) | Every 2–4 weeks |
| Pattern | 190-min Integrated Test (Foundation + Advanced) | Same Foundation + Advanced, plus a 30-min psychometric test (81 questions, 220 min total) |
| Eligibility | Strict: specific batches + degrees, 60% throughout, etc. | Wider: pre-final/final-year students of any degree, and freshers with up to 2 years’ experience |
| Result | Interview shortlist | Scorecard valid 2 years; you can retake and only your best score is published |
Upcoming TCS iON NQT dates (from the TCS iON page as of 30 Nov 2026): 25 December 2026 (last date to apply: 14 December 2026), then 25 January 2027 and 19 February 2027.
Which one should you take?
- If you’re in the eligible batch and the free All India drive is open → register for the free drive first. It is the most direct route to a TCS offer.
- If the free drive is closed, you missed it, or you want a score to show other companies → the paid iON NQT is a reasonable backup, since it’s held every few weeks and you can improve your score.
- If your college has an on-campus TCS drive, that usually runs through your TPO and uses the same Integrated Test Pattern.
Scam alert (straight from TCS): TCS never asks candidates to deposit money for a job offer, never sends hiring mail from Gmail/Yahoo/Rediff/Hotmail, and doesn’t use external agencies to make offers. Test communication comes from TCS iON. The only legit fee is the optional iON NQT product you buy yourself on tcsion.com.
Eligibility criteria (official)
These are from the official TCS All India NQT Hiring page for the batch of 2024, 2025 and 2026. Expect the same structure (with updated batch years) for the next drive.
| Criterion | Requirement |
|---|---|
| Qualification | B.Tech / B.E. / M.Tech / M.E. / MCA / M.Sc / M.S. in any specialisation, from AICTE/UGC-recognised institutions |
| Academic aggregate | Minimum 60% (or equivalent CGPA) in 10th, 12th, Diploma (if any), Graduation, and PG (if any) — all subjects included |
| Degree class | Must clear engineering in First Class within the course duration |
| Backlogs | No pending backlog at the time of the TCS selection process |
| Extended education | Not allowed — must finish in the stipulated duration |
| Gap in education | Must be declared; total gap ≤ 24 months till highest qualification |
| Course type | Full-time only (NIOS for 10th/12th is accepted if UG/PG is full-time) |
| Work experience | Up to 2 years |
| Age | 18 to 28 years |
CGPA → percentage: TCS asks you to use Percentage = CGPA × 10 (e.g., 7.2 CGPA → 72%) while filling the form.
Some prep sites still say “1 active backlog allowed.” The official 2026 TCS page says no pending backlog is permitted during the selection process. Go with the official rule.
TCS re-checks eligibility at every stage — test, interview, document verification and joining. A mismatch between what you declared and your marksheets can get your candidature cancelled even after an offer. Fill the form carefully.
Ninja vs Digital vs Prime: roles and salary
Salary (official, 2026 drive)
| Offer | Experience | CTC – UG | CTC – PG |
|---|---|---|---|
| Prime | 0–1 year | ₹9.09 – 9.30 LPA | ₹11.59 – 11.80 LPA |
| Prime | 1–2 years | ₹9.45 – 9.66 LPA | ₹12.05 – 12.26 LPA |
| Digital | 0–1 year | ₹7.09 – 7.30 LPA | ₹7.39 – 7.60 LPA |
| Digital | 1–2 years | ₹7.50 – 7.72 LPA | ₹7.82 – 8.04 LPA |
| Ninja | Fresher | Minimum ₹3.4 LPA | Minimum ₹3.6 LPA |
Actual compensation depends on relevant work experience and job location. Internship experience is not counted for salary fitment.
Nature of work (as TCS describes it)
- Prime — complex projects with advanced technologies and algorithms, exploring emerging tech for industry use, integrating system design with automation and strong security practices.
- Digital — solution development and integration, internal initiatives on modern tech, new product development, building frameworks and tools.
- Ninja — application development and maintenance, systems engineering improvements, with a path into next-gen tech.
Translation for your prep: the Foundation section gets you into the game (Ninja). The Advanced Quant + Advanced Coding performance is what moves you to Digital or Prime. If you’re serious about ₹7 LPA+, coding is not optional.
Exam pattern 2026–27
Official structure
| Part | Section | Duration |
|---|---|---|
| Part A – Foundation (75 min) | Numerical Ability | 25 min |
| Verbal Ability | 25 min | |
| Reasoning Ability | 25 min | |
| Part B – Advanced (115 min) | Advanced Quantitative & Reasoning Ability | 25 min |
| Advanced Coding | 90 min | |
| Total | 190 min |
TCS officially publishes the durations above. Question counts are not on the TCS careers page, but the TCS iON NQT page lists 65 questions for Foundation and 16 for Advanced, which matches what candidates report:
| Section | Questions (typical) | Time | Time per question |
|---|---|---|---|
| Numerical Ability | 20 | 25 min | ~75 s |
| Verbal Ability | 25 | 25 min | ~60 s |
| Reasoning Ability | 20 | 25 min | ~75 s |
| Advanced Quant & Reasoning | ~14–15 | 25 min | ~100 s |
| Advanced Coding | 2 problems | 90 min | ~45 min each |
(Some sites say 15 advanced aptitude questions; the iON page’s “16 Advanced questions” implies 14 + 2 coding. Either way, plan for ~100 seconds per question.)
Rules that change how you should practise
- No negative marking. Never leave an MCQ blank. If you’re stuck at 60 seconds, eliminate and guess.
- Sectional timers. Each section locks when its time is up. You can’t borrow time from Verbal for Numerical.
- No going back (widely reported in 2025–26). Candidates and prep sites report that once you click Next, you can’t return to a question. Practise in linear mode: answer, commit, move.
- On-screen calculator, no physical calculator. Rough sheets are provided at the centre.
- Same paper for everyone. CS and non-CS branches take the identical 190-minute test. The skill you choose during registration does not change the test — it’s used later in the interview.
- Tab switching = termination. It’s a proctored in-centre test; don’t touch anything outside the exam window.
How the test decides your band
TCS says only this, officially: “Based on the test performance, candidates will qualify for Prime, Digital or Ninja interviews.” TCS doesn’t publish cut-offs.
What candidates consistently report:
- Foundation performance → baseline shortlisting (Ninja).
- Advanced Quant & Reasoning + partial coding → Digital.
- Strong coding (at least one fully correct solution, ideally both) + good Advanced aptitude → Prime.
- Getting a Prime interview does not guarantee Prime. Interviewers can (and do) offer Digital or Ninja based on interview depth. One 2026 candidate who was shortlisted for Prime was finally selected for Digital.
So your target should be:
| Goal | Foundation | Advanced Quant | Coding |
|---|---|---|---|
| Ninja | Strong (75%+) | Attempt all | Attempt both |
| Digital | Very strong | ~60%+ | At least 1 fully correct |
| Prime | Very strong | ~75%+ | Both correct, or 1 full + 1 mostly passing |
These are my practical targets based on candidate reports, not official cut-offs.
Section 1 — Numerical Ability
20 questions · 25 minutes · Class 10–12 level maths
This is where most students lose marks — not because it’s hard, but because it’s timed. 75 seconds per question means you need formulas on autopilot.
Topic list and priority
| Priority | Topics |
|---|---|
| Very high | Time & Work, Pipes & Cisterns, Percentages, Profit & Loss, Time–Speed–Distance (trains, boats), Ratio & Proportion, Averages, Data Interpretation |
| High | Number System (divisibility, unit digit, remainders), LCM & HCF, Simple & Compound Interest, Mixtures & Alligation, Ages, Probability, Permutations & Combinations |
| Medium | Clocks & Calendars, Mensuration (area, perimeter, volume), Series & Progressions (AP/GP), Mean/Median/Mode, Equations, Geometry basics |
Must-know formulas (put these on a single sheet)
- Percentage change for constant expenditure: if price rises by r%, consumption must fall by
r / (100 + r) × 100%. - Successive change:
a + b + ab/100(use negative values for decreases). - Profit/Loss:
SP = CP × (100 + P%) / 100; with discount,MP × (1 − d/100) = SP. - Time & Work (LCM method): take total work = LCM of days; each person’s per-day work = total ÷ their days.
- Speed:
km/h → m/smultiply by5/18. Train crossing a pole:length / speed. Crossing a platform:(train + platform) / speed. - Relative speed: opposite direction → add; same direction → subtract.
- Boats: downstream
u + v, upstreamu − v. - CI:
A = P(1 + r/100)^n. For 2 years, CI − SI =P(r/100)². - Alligation:
(dearer − mean) : (mean − cheaper)= cheaper : dearer quantity. - Clock angle:
|30H − 5.5M|degrees. - Unit digit cycles: 2 → (2,4,8,6), 3 → (3,9,7,1), 7 → (7,9,3,1), 8 → (8,4,2,6); 0,1,5,6 always repeat; 4 and 9 cycle in 2.
- Probability:
favourable / total; two dice = 36 outcomes, one card = 52.
Solved examples (TCS-style)
1. Time & Work. A finishes a job in 12 days, B in 18 days. Together?
LCM(12, 18) = 36 units. A = 3 units/day, B = 2 units/day → 5 units/day. 36 ÷ 5 = 7.2 days. (≈ 20 seconds with LCM method.)
2. Successive discounts. A shop gives 20% then 10% off. Net discount?
−20 − 10 + (−20 × −10)/100 = −30 + 2 = 28%.
3. Trains. A 150 m train at 54 km/h crosses a pole in?
54 × 5/18 = 15 m/s → 150 ÷ 15 = 10 s.
4. Clocks. Angle between the hands at 3:40?
|30 × 3 − 5.5 × 40| = |90 − 220| = 130°.
5. Probability. Two dice are rolled. P(sum = 8)?
(2,6), (3,5), (4,4), (5,3), (6,2) → 5/36.
6. Unit digit. Unit digit of 7⁹⁵?
Cycle of 7 is 4 long (7, 9, 3, 1). 95 mod 4 = 3 → 3.
7. Constant expenditure. Petrol price goes up 25%. By how much must consumption fall to keep spending the same?
25 / 125 × 100 = 20%.
Strategy
- First pass rule: if you can’t see the method in 15 seconds, guess smartly (eliminate 1–2 options) and move on — remember, you may not be able to come back.
- Use options. Many TCS questions are faster to solve by plugging options back in.
- Use the on-screen calculator only for ugly arithmetic, not as a crutch. Practise with a mouse-driven calculator; it’s slower than you think.
- DI questions: read the question before the chart — you’ll only need 2–3 numbers.
Section 2 — Verbal Ability
25 questions · 25 minutes · ~60 seconds each
The fastest section to improve in 2–3 weeks, and the one engineers neglect most.
What’s asked
| Topic | Typical share | What to practise |
|---|---|---|
| Reading Comprehension | Highest (often 2 passages) | Skim structure first, then read questions, then scan for answers |
| Sentence Completion / Fill in the blanks | High | Grammar + collocations (“comply with“, “capable of“) |
| Error Spotting / Sentence Correction | High | Subject–verb agreement, tenses, articles, prepositions, parallelism |
| Para Jumbles / Sentence Ordering | Medium | Find the opening sentence, then look for pronoun & connector links |
| Synonyms, Antonyms, Idioms & Phrases | Medium | 10 words a day from a fixed list |
| Sentence Building / Word Completion | Medium | Context clues, prefixes & suffixes |
Grammar rules that catch 80% of error-spotting questions
- Subject–verb agreement: “Each of the students has“, “Neither the manager nor the employees were“ (verb agrees with the nearer subject).
- Tense consistency: “He said that he would come”, not “will”.
- Articles: “an honest man”, “a university”, “the Ganga”.
- Prepositions: “married to“, “prefer X to Y”, “senior to“, “discuss the issue” (no about).
- Comparatives: “more better” ❌, “superior to“ not “superior than”.
- Parallelism: “She likes reading, writing and to swim“ ❌ → “swimming”.
- Pronoun case: “between you and me“.
RC technique (works in 60 s/question)
- Read the first and last line of each paragraph — that’s the passage map.
- Read the question stem, not the options.
- Jump to the relevant paragraph and read it fully.
- Eliminate options that are too extreme (“always”, “never”) or true but not stated.
Para jumble trick
- The opening sentence usually introduces a noun and does not start with “However”, “This”, “He”, “Therefore”.
- Pronouns and connectors (it, they, this idea, moreover, as a result) tell you what came before.
- Find one mandatory pair (A must come right before C), then eliminate options.
Section 3 — Reasoning Ability
20 questions · 25 minutes · Easy to medium
This is the most “trainable” section. Patterns repeat a lot.
Topic list
| Priority | Topics |
|---|---|
| Very high | Seating Arrangement (linear & circular), Number & Letter Series, Coding–Decoding, Blood Relations, Direction Sense |
| High | Syllogisms, Statement & Conclusion/Assumption, Data Sufficiency, Puzzles (floor, scheduling) |
| Medium | Visual/Non-verbal reasoning (cube folding, paper cutting, mirror images, figure series), Odd one out, Analogies, Word patterns |
Solved examples
1. Number series. 2, 6, 12, 20, 30, ?
Differences: 4, 6, 8, 10 → next 12 → 42 (or simply n(n+1)).
2. Coding–decoding. If CAT → DBU, then DOG → ?
Each letter +1 → EPH.
3. Blood relation. Pointing to a man, Riya says: “He is the son of my grandfather’s only son.” Who is he?
Grandfather’s only son = Riya’s father. His son = Riya’s brother.
4. Direction sense. Walk 10 m north, turn right and walk 5 m, turn right and walk 10 m, turn left and walk 5 m. Distance from start?
Track it on axes: (0,10) → (5,10) → (5,0) → (10,0). 10 m east of start.
5. Syllogism. All pens are books. Some books are bags. Conclusion: Some pens are bags?
Not necessarily — the “some books” that are bags may not be pens. Does not follow. (Always draw Venn diagrams with the “worst case” that breaks the conclusion.)
Strategy
- Seating arrangement: draw the base diagram immediately. Fix the definite clues first (“A sits at an extreme end”), then the relative ones. For circular arrangements, check if people face the centre (left/right flip).
- Series: check differences → second differences → multiply/divide patterns → squares/cubes ± k → alternating series. Most TCS series fall in the first three.
- Data sufficiency: you don’t need the answer, only whether it’s determinable. Don’t solve fully.
Section 4 — Advanced Quantitative & Reasoning
~14–15 questions · 25 minutes · Hard
This section is the gatekeeper for Digital and Prime. Same topics as Foundation, but multi-step, with heavier calculation and trickier logic.
What appears
- Advanced arithmetic: multi-condition Time & Work, mixtures with replacement, compound interest variations, P&C with restrictions, probability with conditional events.
- Number theory: remainders (e.g.,
2^100 mod 7), divisibility, digit-sum problems, number of factors. - Advanced DI: multiple linked charts/tables, percentage-of-percentage calculations.
- Advanced reasoning: complex puzzles, critical reasoning (strengthen/weaken arguments), logical inference.
- Pseudo-code / output prediction (reported increasingly in recent cycles): bitwise operators, loops, recursion.
Pseudo-code: the free marks most people miss
TCS-style pseudo-code uses operators like & (AND), | (OR), ^ (XOR), >> and <<. Learn binary conversion cold.
Example 1 — Loop tracing
Integer a = 5, b = 3, c = 0
for (i = 1 to 4)
if (i mod 2 == 0)
c = c + a
else
c = c - b
end if
a = a - 1
end for
Print c
Trace it in a table:
| i | branch | c | a (after) |
|---|---|---|---|
| 1 | odd → c − 3 | −3 | 4 |
| 2 | even → c + 4 | 1 | 3 |
| 3 | odd → c − 3 | −2 | 2 |
| 4 | even → c + 2 | 0 | 1 |
Output: 0
Example 2 — Bitwise
Print (12 & 10) + (12 ^ 10)
12 =
1100, 10 =101012 & 10=1000= 8,12 ^ 10=0110= 6 → 14
Quick bitwise facts:
x >> 1= x ÷ 2 (integer),x << 1= x × 2 →25 >> 2= 6,3 << 2= 12x & 1= 1 if x is oddx ^ x= 0,x ^ 0= x(a & b) + (a | b)=a + bn & (n − 1)removes the lowest set bit (= 0 when n is a power of 2)
Remainder trick (very common)
Find 2¹⁰⁰ mod 7.
2³ = 8 ≡ 1 (mod 7). 100 = 3 × 33 + 1 → 2¹⁰⁰ = (2³)³³ × 2 ≡ 1 × 2 = 2.
Hunt for the power that gives remainder 1 (or −1), then reduce.
Strategy
- Budget ~100 seconds per question; if a question needs 3+ minutes, guess and move on.
- Pseudo-code questions are the fastest to verify — trace with a table, not in your head.
- Practise this section last in your prep cycle, after Foundation is solid. Advanced = Foundation + speed + one more step.
Section 5 — Advanced Coding
2 problems · 90 minutes · Partial marks for test cases passed
This is the section that decides Prime vs. Digital vs. Ninja more than anything else. The good news: TCS NQT coding problems are mostly easy-to-medium DSA — arrays, strings, math, sorting, hashing, basic greedy/DP. You don’t need competitive-programming wizardry. You need clean, correct code that handles every edge case in a bare-bones editor.
Languages
C, C++, Java and Python are the safe choices (Python is now widely reported as supported). Pick the one you’re fastest and least error-prone in — not the one that “looks impressive”.
- C++ → fastest execution, STL saves time (
sort,unordered_map,vector). - Python → shortest code, fewest syntax bugs; watch out for performance on huge inputs.
- Java → fine, but verbose; use fast I/O.
The iON editor reality check
The test editor is minimal: no autocomplete, no AI, no “Run with custom input” luxuries you’re used to on LeetCode. Candidates also report that the input format varies — usually standard input (stdin), occasionally space-separated on one line, sometimes with the count missing.
Two habits will save you:
- Read input token-by-token, not line-by-line. Token-based reading doesn’t care whether numbers are on one line or ten.
- Print exactly what’s asked — no “Enter the number:” prompts, no extra spaces or labels. Hidden test cases compare output strictly.
Copy-ready input templates
C++
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
if (!(cin >> n)) return 0; // guard against empty input
vector<long long> a(n);
for (auto &x : a) cin >> x;
// solve here
return 0;
}
Java (class must usually be named Main — check the problem statement)
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StreamTokenizer st = new StreamTokenizer(br);
st.nextToken(); int n = (int) st.nval;
int[] a = new int[n];
for (int i = 0; i < n; i++) { st.nextToken(); a[i] = (int) st.nval; }
// solve here
}
}
StreamTokenizerparses numbers asdouble. That’s fine for normal int ranges; if values can exceed ~10¹⁵ or you’re reading strings, useBufferedReader+split()instead.
Python
import sys
def main():
data = sys.stdin.read().split() # every token, regardless of line breaks
if not data:
return
n = int(data[0])
arr = list(map(int, data[1:1 + n]))
# solve here
if __name__ == "__main__":
main()
Real 2026 NQT coding questions (with tested solutions)
These two were reported by a candidate in a July 2026 NQT who was shortlisted for Prime. They’re a perfect picture of the difficulty level.
Problem 1 — Indices of all peak elements
Given an array of integers, print the indices of all elements that are strictly greater than both neighbours. The first and last elements are never peaks. Input:
[5, 10, 7, 8, 6, 9, 3]→ Output:1 3 5
Approach: single pass from index 1 to n−2. O(n) time, O(1) extra space.
Edge cases the hidden tests will check: n < 3 (no peaks possible), equal neighbours ([1, 3, 3, 1] → 3 is not strictly greater), negative numbers, no peaks at all (print what the problem says — often -1).
import sys
def peak_indices(arr):
return [i for i in range(1, len(arr) - 1)
if arr[i] > arr[i - 1] and arr[i] > arr[i + 1]]
def main():
data = sys.stdin.read().split()
if not data:
return
n = int(data[0])
arr = list(map(int, data[1:1 + n]))
res = peak_indices(arr)
print(" ".join(map(str, res)) if res else -1)
if __name__ == "__main__":
main()
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;
if (!(cin >> n)) return 0;
vector<long long> a(n);
for (auto &x : a) cin >> x;
vector<int> peaks;
for (int i = 1; i + 1 < n; ++i)
if (a[i] > a[i - 1] && a[i] > a[i + 1])
peaks.push_back(i);
if (peaks.empty()) { cout << -1 << '\n'; return 0; }
for (size_t i = 0; i < peaks.size(); ++i)
cout << peaks[i] << (i + 1 < peaks.size() ? ' ' : '\n');
return 0;
}
Input:
7
5 10 7 8 6 9 3
Output:
1 3 5
Problem 2 — Merge two sorted arrays (no built-in sort)
Given two arrays sorted in ascending order, merge them into one sorted array without using built-in methods.
[1, 3, 5, 7]+[2, 4, 6, 8]→1 2 3 4 5 6 7 8
Approach: classic two-pointer merge (the “merge” step of merge sort). O(n + m) time.
Edge cases: one array empty, duplicates across arrays, all elements of one array smaller than the other.
import sys
def merge_sorted(a, b):
i = j = 0
out = []
while i < len(a) and j < len(b):
if a[i] <= b[j]:
out.append(a[i]); i += 1
else:
out.append(b[j]); j += 1
out.extend(a[i:]) # leftovers from a
out.extend(b[j:]) # leftovers from b
return out
def main():
data = list(map(int, sys.stdin.read().split()))
n = data[0]; a = data[1:1 + n]
m = data[1 + n]; b = data[2 + n:2 + n + m]
print(*merge_sorted(a, b))
if __name__ == "__main__":
main()
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StreamTokenizer st = new StreamTokenizer(br);
st.nextToken(); int n = (int) st.nval;
int[] a = new int[n];
for (int i = 0; i < n; i++) { st.nextToken(); a[i] = (int) st.nval; }
st.nextToken(); int m = (int) st.nval;
int[] b = new int[m];
for (int i = 0; i < m; i++) { st.nextToken(); b[i] = (int) st.nval; }
int[] out = new int[n + m];
int i = 0, j = 0, k = 0;
while (i < n && j < m) out[k++] = (a[i] <= b[j]) ? a[i++] : b[j++];
while (i < n) out[k++] = a[i++];
while (j < m) out[k++] = b[j++];
StringBuilder sb = new StringBuilder();
for (int x = 0; x < out.length; x++) {
if (x > 0) sb.append(' ');
sb.append(out[x]);
}
System.out.println(sb);
}
}
Bonus — Maximum subarray sum (Kadane’s algorithm)
A pattern that shows up in many forms (max profit, max sum segment, best streak). Learn it once, recognise it everywhere.
import sys
def max_subarray(arr):
best = cur = arr[0]
for x in arr[1:]:
cur = max(x, cur + x) # extend the window or restart at x
best = max(best, cur)
return best
data = list(map(int, sys.stdin.read().split()))
print(max_subarray(data[1:1 + data[0]]))
Input: 9 -2 1 -3 4 -1 2 1 -5 4 → Output: 6 (subarray 4 -1 2 1)
Input: 3 -5 -2 -9 → Output: -2 (all negative: don't return 0!)
That second test case is exactly the kind of hidden case that drops you from “all passed” to “partially passed”.
The NQT coding syllabus — what to actually practise
| Level | Topics | Example problems |
|---|---|---|
| Must | Arrays, strings, loops, math | Reverse, rotate, second largest, frequency count, palindrome, anagram, prime/sieve, GCD/LCM, digit sum, Armstrong, leap year, base conversion |
| Must | Sorting & searching | Bubble/selection/insertion logic, binary search, sort by custom key, merge two sorted arrays, kth smallest |
| Must | Hashing | Two-sum, first non-repeating character, duplicates, subarray with given sum (prefix sums) |
| Should | Two pointers & sliding window | Pair sum in sorted array, longest substring without repeats, max sum of k consecutive elements |
| Should | Greedy | Minimum coins, activity selection, jump game |
| Should | Stack / queue | Balanced brackets, next greater element |
| Prime-level | Basic DP | Kadane, climbing stairs, house robber, LCS, 0/1 knapsack, coin change |
| Prime-level | Recursion & matrices | Spiral traversal, rotate matrix, permutations, subsets |
How many problems? A focused 120–150 problems across these topics (mostly easy, ~40 medium) is enough for most candidates. If you want structure, work through the DSA and LeetCode sections on this blog, or the 100 Days LeetCode Challenge series.
90-minute coding game plan
| Time | What to do |
|---|---|
| 0–5 min | Read both problems. Start with the easier one. |
| 5–10 min | Write the input/output format and 3 edge cases on rough paper before coding. |
| 10–35 min | Solve problem 1. Test with the sample and your edge cases. Submit. |
| 35–80 min | Solve problem 2. If the optimal approach isn’t clicking by minute 55, write the brute force — partial test cases are still marks. |
| 80–90 min | Re-check output formatting, integer overflow (long long / long), empty input. |
Rule of thumb: a brute force that passes 6/10 test cases beats an elegant solution that doesn’t compile.
The interview: Technical, Managerial, HR
Clearing NQT gets you an interview invite tagged Ninja, Digital or Prime. The interview is typically:
- Technical Round (TR)
- Managerial Round (MR)
- HR Round
In many 2026 drives, TR and MR happened together in one panel, followed by HR — and candidates report total panel time of around 40–45 minutes. Interviews may be in person or virtual depending on the drive. Remember: the final band is decided after the interview, not just by the test.
Technical Round — what they ask
The TR is anchored on three things: your resume, the skill you chose at registration, and CS fundamentals. One 2026 candidate summed it up perfectly: every question later in the interview connected back to something they’d said in “tell me about yourself”.
Programming language (the one on your resume)
- Difference between C, C++, Java and Python (compiled vs interpreted, memory management, typing)
- OOP: the 4 pillars with real examples, overloading vs overriding, abstract class vs interface, constructors,
static,final, access modifiers - Call by value vs call by reference, pointers vs references,
mallocvscallocvsnew - Exception handling, garbage collection in Java, Python lists vs tuples vs dicts
Write code on paper / screen (easy, but under pressure)
- Reverse a string / number, palindrome, Fibonacci, factorial (recursive & iterative), prime check
- Swap two numbers without a temp variable
- Pattern printing — diamond, pyramid, Floyd’s triangle (a diamond pattern was asked in a 2026 Prime interview!)
def diamond(n):
for i in range(1, n + 1): # upper half (including middle row)
print(" " * (n - i) + "*" * (2 * i - 1))
for i in range(n - 1, 0, -1): # lower half
print(" " * (n - i) + "*" * (2 * i - 1))
diamond(4)
*
***
*****
*******
*****
***
*
DBMS & SQL (almost guaranteed)
- Primary key vs unique key vs foreign key, normalisation (1NF → 3NF/BCNF), ACID, indexing
DELETEvsTRUNCATEvsDROP,WHEREvsHAVING, types ofJOIN- Write a query live. Two classics:
-- Students who borrowed a book whose title starts with 'B'
-- (asked in a 2026 TCS Prime interview)
SELECT DISTINCT s.name
FROM students s
JOIN issues i ON i.student_id = s.student_id
JOIN books b ON b.book_id = i.book_id
WHERE b.title LIKE 'B%';
-- Second-highest salary
SELECT MAX(salary)
FROM employees
WHERE salary < (SELECT MAX(salary) FROM employees);
Operating Systems & Networks (basics)
- Process vs thread, deadlock and its 4 conditions, paging vs segmentation, scheduling algorithms
- OSI vs TCP/IP model, TCP vs UDP, HTTP vs HTTPS, what happens when you type a URL, DNS, IP vs MAC
SDLC & modern tech
- SDLC phases, Agile vs Waterfall, Git basics
- Cloud basics (IaaS/PaaS/SaaS), and — very common in 2026 — AI questions: “What is an LLM?”, “Generative AI vs Agentic AI?”, “Current trends in AI?”. If AI/ML is on your resume, expect to go deep.
Your project (the most important 10 minutes)
Prepare every project in this order — it’s the structure interviewers follow:
Problem → Solution → Tech stack (and why) → Your exact contribution → Challenges → Result → What you’d improve
Be ready for: “Why this database and not X?”, “How would it scale to 1 lakh users?”, “How did you secure user data?”, “What was the hardest bug?”
Prime/Digital interviews go deeper: expect follow-ups, a live coding or SQL problem, time/space complexity discussion, and questions on whatever “advanced” skill you selected.
Managerial Round — what they test
Judgement, ownership, and whether a client would trust you.
- “A production bug appears on Friday night and the release is Monday. What do you do?” → acknowledge, reproduce, assess impact, inform your lead early, fix or roll back, document.
- “Your teammate isn’t contributing. How do you handle it?” → private conversation first, understand the blocker, help, escalate only if needed.
- “You’re assigned a technology you’ve never used.” → show a learning plan, not panic.
- “Are you comfortable with night shifts / relocation / any technology?” → be honest but flexible; TCS is a services company.
- “Explain [concept] to a non-technical client.” → simple analogy, no jargon.
- “Tell me about a time you led a team / failed / handled pressure.” → answer with STAR (Situation, Task, Action, Result).
HR Round — common questions
- Tell me about yourself (60–90 seconds; education → skills → project highlight → why TCS)
- Why TCS? What do you know about TCS? (read the latest annual report highlights, services, and recent AI initiatives)
- Strengths and weaknesses (a real weakness + what you’re doing about it)
- Preferred locations? Willing to relocate? (saying “anywhere” helps)
- Rate your programming and communication skills out of 10 (be honest; justify it)
- Higher studies plans? Other offers?
- Any gap in education? (have documents and a clear answer)
- Do you have any questions for us? (always ask one — about training, tech stack or growth)
HR also verifies documents. Keep originals of 10th, 12th, diploma (if any), all semester marksheets, degree/provisional certificate, government ID, and experience letters (if any) ready.
Registration: step by step
For the free TCS All India NQT Hiring drive
From the official TCS process:
- Log in to the TCS NextStep portal.
- New user: click Register Now, choose category “IT” (not “BPS”), fill details.
Existing user: log in with your CT/DT reference ID. - Click “Apply For Drive” — this is mandatory. Without it, you’re not in the drive.
- Select the skill you want to be evaluated on in the interview.
- Choose in-centre test mode and 3 preferred test centres.
- Choose 3 preferred job cities.
- Check Track Your Application — status should say “Applied for Drive”. You won’t get a separate confirmation email.
Gotchas from the official FAQ:
- Registered under BPS by mistake? Mail
tcsbps.support@tcs.comto delete it, then re-register under IT. - Don’t see Apply For Drive? Log out and back in; check your qualification and year of passing.
- 3 wrong OTPs lock your account for 4 hours. Use a desktop/laptop with Chrome.
- Test details come from TCS iON (
careers.tcshub@mail.digialm.com). - The detailed application form (with photo) is filled after results. Photo: JPG/JPEG, ≤ 200 KB, formal attire, white background, face, shoulders and both ears visible, no selfies.
- Helpdesk:
ilp.support@tcs.com· toll-free 1800 209 3111.
For the paid TCS iON NQT – IT
- Go to the TCS iON National Qualifier Test page → NQT – IT.
- Create/log in to your TCS iON account, purchase, and pick an exam date and centre before the application deadline.
- You get 1 practice test + 30+ hours of preparatory material in your dashboard — use the practice test, it’s the closest thing to the real interface.
- After the result, apply to jobs on the TCS iON Job Listing Portal.
30-day preparation plan
Assumes 3–4 hours/day and that you know at least one programming language. If you’re starting coding from zero, stretch this to 8 weeks by doubling Week 1 and Week 2.
Daily split
| Block | Time | Focus |
|---|---|---|
| Morning | 60–75 min | Quant (theory + 25 timed questions) |
| Afternoon | 45 min | Verbal (1 RC + 15 grammar/vocab) or Reasoning (20 timed questions), alternate days |
| Evening | 90 min | Coding (2–3 problems in your exam language, typed in a plain editor) |
| Night | 15 min | Revise formula sheet + error log |
Week by week
Week 1 — Foundations
- Quant: Percentages, Profit & Loss, Ratio, Averages, Number System, LCM/HCF
- Reasoning: Series, Coding–Decoding, Direction Sense, Blood Relations
- Verbal: Grammar rules (subject–verb, tenses, articles, prepositions), 10 words/day
- Coding: arrays & strings basics — 15 easy problems; set up your I/O template and memorise it
Week 2 — Core speed topics
- Quant: Time & Work, Pipes, TSD, Trains, Boats, SI/CI, Mixtures
- Reasoning: Seating arrangement (linear + circular), Syllogisms, Statement–Conclusion
- Verbal: RC daily, error spotting, sentence completion
- Coding: sorting, searching, hashing, two pointers — 15 problems
- Sunday: Full Foundation mock (75 min) + 2-hour analysis
Week 3 — Advanced level
- Quant: P&C, Probability, Clocks & Calendars, Mensuration, DI sets, remainders
- Reasoning: Puzzles, Data Sufficiency, visual reasoning (cubes, paper folding)
- Advanced: Pseudo-code & bitwise — 30 questions; advanced aptitude sets
- Coding: sliding window, stack, greedy, Kadane, basic DP — 12–15 problems (mix of easy + medium)
- Sunday: Full 190-minute mock
Week 4 — Mocks + interview prep
- Alternate days: full 190-minute mock → next day, analysis + fix weak topics
- Coding: 2 timed problems in 90 minutes, 4 times this week, in a plain editor without autocomplete
- Interview: OOP, DBMS/SQL, OS, CN notes; prepare your project story; practise “tell me about yourself” out loud
- Last 2 days: no new topics. Only formula sheet, error log, and sleep.
The error log (do this — it’s the highest-ROI habit)
After every mock, write down every wrong or slow question:
| Q | Topic | Why wrong (concept / calculation / misread / time) | Fix |
|---|---|---|---|
| 14 | Boats | Used u+v for upstream | Revise downstream/upstream |
| 7 | RC | Picked “true but not stated” | Stick to passage text only |
Re-read this log every night. Most score jumps come from not repeating the same 10 mistakes.
Exam-day strategy and checklist
Before you leave
- [ ] Admit card / hall ticket (printed) — check reporting time on it
- [ ] Original government photo ID exactly as instructed on the admit card
- [ ] Reach early; don’t carry phones, smartwatches, calculators, bags (keep them outside or don’t bring them)
- [ ] Light meal and water — it’s a 190-minute sitting
Inside the exam
- Never leave an MCQ blank — no negative marking.
- Watch the sectional timer; aim to have the last 1–2 minutes for any remaining guesses.
- Commit and move. If navigation back isn’t allowed, there’s no “I’ll come back later”.
- Use rough sheets properly — number your work by question so you don’t mix calculations.
- In coding: read input format twice, compile early, test edge cases, and don’t print prompts.
- If something technical goes wrong (system freeze, mouse issue), raise your hand immediately and inform the invigilator.
Common mistakes that cost selections
- Registering under “BPS” instead of “IT”, or forgetting “Apply For Drive”.
- Ignoring Verbal because “I’m an engineer” — it’s 25 questions; that’s the biggest section by count.
- Practising coding only on LeetCode with autocomplete and function templates — then freezing at a blank
main()that must read stdin. - Printing extra text (“Output is: 5”) — fails hidden test cases.
- Integer overflow — using
intwhere sums exceed 2³¹. Uselong long(C++) /long(Java). - Not handling edge cases — empty array, single element, all negatives, duplicates.
- Skipping the Advanced section — automatically caps you at Ninja.
- Writing things on the resume you can’t defend — every keyword is a potential question.
- Mismatched details — marks/CGPA/gaps in the form not matching marksheets → disqualification at any stage.
- Falling for “pay to get placed in TCS” scams.
Best resources
Official
- TCS All India NQT Hiring page (tcs.com → Careers → India) — eligibility, dates, FAQs
- TCS NextStep portal — registration
- TCS iON NQT page — paid test, practice test, sample test
Aptitude & reasoning
- Quantitative Aptitude for Competitive Examinations — R.S. Aggarwal (pick topics, don’t read cover-to-cover)
- A Modern Approach to Verbal & Non-Verbal Reasoning — R.S. Aggarwal
- IndiaBix, PrepInsta, GeeksforGeeks aptitude sections for topic-wise practice
Verbal
- Word Power Made Easy — Norman Lewis
- One editorial or long-form article daily for RC practice
Coding
- DSA, LeetCode and C++ sections on nileshblog.tech
- LeetCode / GeeksforGeeks / HackerRank — filter by Easy & Medium, arrays/strings/hashing first
- Previous TCS NQT questions on GeeksforGeeks and PrepInsta
Interview
- GeeksforGeeks TCS interview experiences (read 10 recent ones — patterns repeat)
- Got a doubt? Ask in the nileshblog.tech forum
FAQs
Is TCS NQT hard? Foundation is moderate (school-level maths, but tight on time). Advanced aptitude and coding are where it gets competitive. With 4 weeks of focused, timed practice, Foundation is very clearable; Prime needs strong coding.
Is there negative marking in TCS NQT? No. Attempt every question.
What’s the total duration? 190 minutes: Foundation 75 (25 × 3) + Advanced 115 (25 aptitude + 90 coding). The paid iON NQT – IT adds a 30-minute psychometric test (220 minutes total).
Can non-CS students (Mechanical, Civil, ECE, EEE) take TCS NQT? Yes — the eligible degrees include B.E./B.Tech in any specialisation. The test is the same for everyone, so non-CS students should start coding prep early.
Is TCS NQT free? The TCS All India NQT Hiring drive (via NextStep) is free. The TCS iON NQT – IT product is paid (₹999 at the time of writing).
How long is the NQT score valid? TCS iON NQT scorecards are valid for 2 years, and if you retake, only your best score is published.
How many backlogs are allowed? Per the official 2026 TCS page: no pending backlog at the time of the selection process.
What’s the age limit? 18 to 28 years.
Do I need to clear the Advanced section for Digital or Prime? Yes. TCS states the Advanced section is mandatory if you aspire to a Digital or Prime offer.
If I get a Prime interview, will I definitely get Prime? No. Based on the interview, you can be offered Prime, Digital or Ninja.
Does the skill I select at registration change my test? No. Everyone takes the standard Integrated Test. The chosen skill is used predominantly during the interview.
Can I take TCS NQT if I already have a TCS offer? Not for the off-campus drive — TCS says candidates already holding an offer aren’t eligible; TCS announces separate upgrade opportunities.
Which language is best for the coding section? The one you’re fastest and most accurate in. C++ and Python are popular for speed of writing; Java is fine with fast I/O.
Final word
TCS NQT is not about being a genius. It’s about being fast on fundamentals, careful on edge cases, and honest in the interview. Do timed practice every day, keep an error log, write code in a plain editor, and know your resume inside out.
If this guide helped you, share it with your placement group — and drop your questions or your NQT experience in the forum. I read every one.
All the best. Go get that Prime offer.
Dates, fees and salaries are as published on official TCS / TCS iON pages on 30 November 2026. TCS updates these every hiring cycle — always confirm on the official pages before registering.