Tcs Coding Questions 2021 [updated] Jun 2026

If you are preparing for an upcoming assessment, let me know which you prefer or what specific topic (like Dynamic Programming or Matrix manipulation) you would like to drill down into next. Share public link

for(int i = 0; str[i] != '\0'; i++) str[i] == 'e' return 0;

#include <stdio.h> #include <string.h>

Good luck with your TCS preparation!

TCS NQT Advanced (July 2021)

Write a program to test if a given word is a keyword in a specific programming language. For the exam, a predefined set of 16 keywords was given: "break", "case", "continue", "default", "defer", "else", "for", "func", "goto", "if", "map", "range", "return", "struct", "type", "var" . If the input string matches any of these, print [string] is a keyword . Otherwise, print [string] is not a keyword . Store the keywords in a hash set for

From analyzing numerous resources and candidate experiences from 2021, several topics and question types appear repeatedly. Mastering these will give you a significant advantage. Tcs Coding Questions 2021

This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.

The coding section is usually divided into two parts based on the targeted role (Ninja or Digital/Prime): Great Learning Foundation Coding:

Palindromes, vowel/consonant count, first non-repeating character, partitioning strings. Number Theory If you are preparing for an upcoming assessment,

Dynamic Programming: Basic optimization problems and pathfinding. Conditionals: Nested logic and coordinate geometry. Solved Examples from TCS 2021 Slots 1. The Keyword "Sweet Number" (Array/Math)

If * occurs more than # , output a positive integer indicating the difference.

Easy Marks: 10

This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.