Home Subjects Placement Papers TCS Questions

Placement Papers
TCS Questions

TCS, Infosys, Wipro, Cognizant actual papers

44 Q 10 Topics Take Mock Test
Advertisement
Difficulty: All Easy Medium Hard 1–10 of 44
Topics in Placement Papers
Q.1 Medium TCS Questions
In TCS security protocols, what does the principle of 'Zero Trust' architecture entail?
A Trusting all internal network traffic without verification
B Verifying every user and device regardless of network location before granting access
C Eliminating all security measures for improved user experience
D Using only perimeter-based security controls
Correct Answer:  B. Verifying every user and device regardless of network location before granting access
EXPLANATION

Zero Trust architecture assumes no implicit trust. Every access request—internal or external—must be authenticated, authorized, and encrypted. It's modern security framework addressing remote work challenges.

Test
Q.2 Medium TCS Questions
A TCS project requires processing 10 million records daily with complex business logic. The team needs to choose between batch processing and stream processing. Which statement is TRUE?
A Stream processing is always superior for all scenarios
B Batch processing provides lower latency than stream processing
C Stream processing offers lower latency but higher complexity; batch processing suits scheduled tasks
D Batch processing cannot handle real-time requirements
Correct Answer:  C. Stream processing offers lower latency but higher complexity; batch processing suits scheduled tasks
EXPLANATION

Stream processing processes data in real-time with lower latency but higher architectural complexity. Batch processing is cost-effective for scheduled, non-urgent tasks. Choice depends on requirements.

Test
Q.3 Medium TCS Questions
A TCS team is developing a microservices architecture where each service maintains its own database. Which of the following is the PRIMARY challenge they will face?
A Data consistency across distributed services
B Increased CPU utilization
C Reduced network bandwidth
D Simplified authentication mechanisms
Correct Answer:  A. Data consistency across distributed services
EXPLANATION

In microservices architecture, maintaining data consistency across independently managed databases (polyglot persistence) is a significant challenge. ACID transactions cannot span multiple databases, requiring eventual consistency patterns.

Test
Q.4 Medium TCS Questions
TCS cybersecurity team emphasizes password security. Which is the STRONGEST password practice?
A Using dictionary words with birth year
B 12-character minimum with mix of uppercase, lowercase, numbers, and special characters
C Same password across multiple systems
D Writing passwords in documentation
Correct Answer:  B. 12-character minimum with mix of uppercase, lowercase, numbers, and special characters
EXPLANATION

Strong passwords require length (12+ characters), character variety, and complexity. Reusing passwords and storing them insecurely significantly increases security risks.

Test
Q.5 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.6 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.7 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.8 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.9 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
Q.10 Medium TCS Questions
In a TCS project using Git version control, a developer needs to undo committed changes. Which command should be used?
A git reset --hard HEAD~1
B git delete commit
C git remove --force
D git undo --all
Correct Answer:  A. git reset --hard HEAD~1
EXPLANATION

git reset --hard HEAD~1 is the standard command to undo the last commit and discard changes. HEAD~1 refers to the previous commit.

Test
IGET
IGET AI
Online · Exam prep assistant
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