TCS — Interview Questions
Aptitude · Reasoning · English · CS — Corporate & Campus Interview Prep
100 Questions 10 Topics Take Test
Advertisement
Showing 81–90 of 100 questions
Q.81 Medium TCS
A circular queue has size 10. If front=3 and rear=8, how many elements are currently in the queue?
A 5
B 6
C 7
D 8
Correct Answer:  B. 6
Explanation:

In a circular queue, number of elements = (rear - front + 1) = (8 - 3 + 1) = 6 elements.

Take Test
Q.82 Medium TCS
TCS follows Agile methodology for most projects. Which practice is NOT a part of core Agile principles?
A Daily stand-up meetings
B Fixed scope with no changes once project starts
C Iterative development with regular feedback
D Continuous integration and delivery
Correct Answer:  B. Fixed scope with no changes once project starts
Explanation:

Agile embraces changing requirements even late in development. Fixed scope with no flexibility contradicts Agile's core principle of adaptability.

Take Test
Q.83 Medium TCS
In a binary tree with 7 nodes, what is the maximum possible height?
A 2
B 3
C 6
D 7
Correct Answer:  C. 6
Explanation:

Maximum height occurs in a skewed (linear) tree where height = n - 1 = 7 - 1 = 6. Minimum height would be 2 for a balanced tree.

Take Test
Q.84 Easy TCS
TCS placement papers often include questions on SQL. What does the INNER JOIN operation do?
A Returns all rows from both tables regardless of match
B Returns only matching rows from both tables based on join condition
C Returns all rows from left table and matching rows from right table
D Returns only rows from the first table
Correct Answer:  B. Returns only matching rows from both tables based on join condition
Explanation:

INNER JOIN returns only rows where there is a match in both tables based on the specified join condition, excluding non-matching rows.

Take Test
Q.85 Hard TCS
A coding problem requires finding the longest common substring of two strings. What is the optimal approach?
A Brute force checking all substrings - O(n³) time
B Dynamic Programming approach - O(n²) time and space
C Using two pointers - O(n) time
D Recursive approach without memoization
Correct Answer:  B. Dynamic Programming approach - O(n²) time and space
Explanation:

Dynamic Programming is the standard approach for longest common substring problems, building a table of subproblem results with O(n²) time and space complexity.

Take Test
Advertisement
Q.86 Easy TCS
TCS employees working on REST APIs should follow which HTTP method for retrieving data without side effects?
A POST
B GET
C PUT
D DELETE
Correct Answer:  B. GET
Explanation:

GET is the HTTP method for safe, idempotent data retrieval without modifying server state. POST creates resources, PUT updates, and DELETE removes resources.

Take Test
Q.87 Medium TCS
In a graph traversal problem with 10 nodes and 15 edges, DFS (Depth-First Search) time complexity is O(V+E). What is the complexity here?
A O(10)
B O(25)
C O(150)
D O(100)
Correct Answer:  B. O(25)
Explanation:

DFS complexity = O(V + E) = O(10 + 15) = O(25). This includes visiting each vertex once and exploring each edge once.

Take Test
Q.88 Easy TCS
A TCS developer encounters a null pointer exception in Java. What is the PRIMARY cause?
A Accessing or invoking methods on an object reference that points to null
B Using too many if-else statements
C Declaring variables without initialization
D Using loops excessively
Correct Answer:  A. Accessing or invoking methods on an object reference that points to null
Explanation:

NullPointerException occurs when trying to call methods or access properties on a null object reference, which has no actual instance allocated in memory.

Take Test
Q.89 Medium TCS
In TCS technical assessments, a question asks about polymorphism. Which is NOT a type of polymorphism in OOP?
A Compile-time (Method Overloading)
B Runtime (Method Overriding)
C Static Polymorphism
D Sequential Polymorphism
Correct Answer:  D. Sequential Polymorphism
Explanation:

The two main types of polymorphism are compile-time (static overloading) and runtime (dynamic overriding). Sequential polymorphism is not a recognized OOP concept.

Take Test
Q.90 Easy TCS
A transaction in database systems at TCS must satisfy ACID properties. What does the 'I' in ACID stand for?
A Integration
B Isolation
C Instruction
D Initialization
Correct Answer:  B. Isolation
Explanation:

ACID stands for Atomicity, Consistency, Isolation, and Durability. Isolation ensures concurrent transactions don't interfere with each other.

Take Test
IGET
iget AI
Online · Ask anything about exams
Hi! 👋 I'm your iget AI assistant.

Ask me anything about exam prep, MCQ solutions, study tips, or strategies! 🎯
UPSC strategy SSC CGL syllabus Improve aptitude NEET Biology tips