Home Subjects Placement Papers TCS Questions

Placement Papers
TCS Questions

TCS, Infosys, Wipro, Cognizant actual papers

100 Q 10 Topics Take Test
Advertisement
Difficulty: All Easy Medium Hard 11–20 of 100
Topics in Placement Papers
Q.11 Easy TCS Questions
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.

Test
Q.12 Medium TCS Questions
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.

Test
Q.13 Easy TCS Questions
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.

Test
Q.14 Medium TCS Questions
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.

Test
Q.15 Easy TCS Questions
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.

Test
Q.16 Hard TCS Questions
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.

Test
Q.17 Easy TCS Questions
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.

Test
Q.18 Medium TCS Questions
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.

Test
Q.19 Medium TCS Questions
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.

Test
Q.20 Medium TCS Questions
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.

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