Coding Questions 2021 Free - Tcs
TCS Coding Questions 2021 – Full Practice Paper
Instructions:
- Solve the following coding problems.
- Time limit: 60 minutes (for all 6).
- Languages allowed: C, C++, Java, Python.
- Each question carries 10–15 marks.
- Focus on edge cases and time complexity.
Sample Output:
45
Time Duration: Typically 45 to 60 minutes for the coding section. Languages Allowed: C, C++, Java, Python 3.x, and Perl. Tcs Coding Questions 2021
Question 1: The "Prime Ministers" Problem (Array & Digit Sum)
Problem Statement:
An international organization defines a "Prime Minister" number as a positive integer greater than 10 that satisfies two conditions: TCS Coding Questions 2021 – Full Practice Paper