A coding problem requires finding the longest common substring of two strings. What is the optimal approach?
Answer: B
Dynamic Programming is the standard approach for longest common substring problems, building a table of subproblem results with O(n²) time and space complexity.
Q.82Easy
TCS employees working on REST APIs should follow which HTTP method for retrieving data without side effects?
Answer: B
GET is the HTTP method for safe, idempotent data retrieval without modifying server state. POST creates resources, PUT updates, and DELETE removes resources.
Q.83Medium
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?
Answer: B
DFS complexity = O(V + E) = O(10 + 15) = O(25). This includes visiting each vertex once and exploring each edge once.
Q.84Easy
A TCS developer encounters a null pointer exception in Java. What is the PRIMARY cause?
Answer: A
NullPointerException occurs when trying to call methods or access properties on a null object reference, which has no actual instance allocated in memory.
Q.85Medium
In TCS technical assessments, a question asks about polymorphism. Which is NOT a type of polymorphism in OOP?
Answer: D
The two main types of polymorphism are compile-time (static overloading) and runtime (dynamic overriding). Sequential polymorphism is not a recognized OOP concept.
Advertisement
Q.86Easy
A transaction in database systems at TCS must satisfy ACID properties. What does the 'I' in ACID stand for?
Answer: B
ACID stands for Atomicity, Consistency, Isolation, and Durability. Isolation ensures concurrent transactions don't interfere with each other.
Q.87Hard
In a complex algorithm with multiple nested loops, the time complexity is O(n²m) where n and m are independent variables. If n=100 and m=50, approximately how many operations?
Answer: B
Operations = 100² × 50 = 10,000 × 50 = 500,000 operations. This represents the actual computational load for the given input sizes.
Q.88Medium
TCS cybersecurity team emphasizes password security. Which is the STRONGEST password practice?
Answer: B
Strong passwords require length (12+ characters), character variety, and complexity. Reusing passwords and storing them insecurely significantly increases security risks.
Q.89Hard
In a TCS project analyzing Big Data with MapReduce, what is the purpose of the 'Reducer' phase?
Answer: B
The Reducer phase collects intermediate key-value pairs from Mappers, groups them by key, and aggregates them to produce final results.
Q.90Medium
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?
Answer: A
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.
Q.91Easy
In the context of cloud computing, which AWS service would TCS recommend for automatically scaling web applications based on incoming traffic?
Answer: B
AWS Auto Scaling automatically adjusts the number of EC2 instances based on demand metrics like CPU utilization and network traffic, ensuring optimal resource utilization and cost-efficiency.
Q.92Medium
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?
Answer: C
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.
Q.93Easy
In TCS DevOps practices, what is the primary purpose of implementing CI/CD pipelines?
Answer: B
CI/CD pipelines automate code integration, testing, and deployment, enabling faster release cycles, early bug detection, and consistent quality without manual intervention at each stage.
Q.94Hard
A TCS developer is optimizing a Java application and notices that the garbage collector is causing frequent pause times. Which JVM parameter would BEST address this issue for low-latency requirements?
Answer: B
G1 (Garbage First) GC is designed for low-latency applications with predictable pause times. It divides the heap into regions and prioritizes regions with most garbage, minimizing full GC pauses.
Q.95Medium
In TCS security protocols, what does the principle of 'Zero Trust' architecture entail?
Answer: B
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.
Q.96Hard
A TCS project uses Docker containers across 50+ servers. Which orchestration platform would be most suitable for managing container deployment, scaling, and updates at this scale?
Answer: B
Kubernetes is the industry-standard container orchestration platform designed for managing containerized applications at scale. It provides self-healing, auto-scaling, load balancing, and rolling updates—essential for 50+ node clusters.
Q.97Easy
Infosys was founded in which year?
Answer: A
Infosys was founded on July 2, 1981, by N.R. Narayana Murthy and six others in Pune, India.
Q.98Easy
What is the headquarters of Infosys Limited?
Answer: B
Infosys headquarters is located in Bangalore (Bengaluru), Karnataka, India.
Q.99Easy
Which of the following is NOT a core service offered by Infosys?
Answer: C
Infosys is an IT services company. Petroleum refining is not part of its service portfolio.
Q.100Easy
Infosys is listed on which stock exchange?
Answer: C
Infosys is listed on both the Bombay Stock Exchange (BSE) and the National Stock Exchange (NSE) in India.