In a coding problem, you need to find the longest palindromic substring. What would be the optimal time complexity?
Answer: B
Using expand-around-center approach or dynamic programming with memoization, the optimal solution achieves O(n) time complexity.
Q.5Hard
In a circular queue, if the array size is 10 and front=7, rear=2, how many elements are present?
Answer: B
In circular queue: elements = (rear - front + size) % size = (2 - 7 + 10) % 10 = 5. But accounting properly: 7,8,9,0,1,2 = 6 elements.
Advertisement
Q.6Hard
In a graph with 5 vertices and 7 edges, what type of graph is it most likely to be?
Answer: B
With 5 vertices, maximum edges = 10. With 7 edges, it's sparse (closer to tree structure than dense).
Q.7Hard
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.8Hard
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.9Hard
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.10Hard
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.11Hard
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.12Hard
Infosys' 'Infytq' program is primarily designed for which purpose?
Answer: D
Infytq is designed to upskill students in technologies like Python, Cloud, and Java while serving as a talent pool for recruitment.
Q.13Hard
Which global certification does Infosys encourage its employees to pursue?
Answer: B
Infosys encourages employees to pursue cloud certifications like AWS, Azure, Google Cloud, and industry-recognized qualifications.
Q.14Hard
In Infosys' technical interview, a candidate is asked to find the longest palindromic substring in a given string. Which approach would be most optimal?
Answer: D
Both Expand Around Centers and Dynamic Programming offer O(n²) time complexity, which is considered optimal for this problem in interview settings.
Q.15Hard
Infosys launched which AI-powered platform for automating business processes in 2023-2024?
Answer: B
Infosys Cobalt is the company's AI-powered platform designed to accelerate digital transformation and business process automation.
Q.16Hard
A candidate in Infosys placement gets selected in both the coding round and technical round. What is the approximate probability they will be rejected in the HR round, based on historical data?
Answer: A
Historically, candidates who clear both coding and technical rounds have a high success rate in HR rounds at Infosys (>95%), as the company focuses on fit and communication at this stage.
Q.17Hard
What is the significance of Infosys' 'Equinix' partnership announced in recent years?
Answer: A
Infosys' partnership with Equinix focuses on expanding global data center infrastructure and edge computing capabilities for better service delivery.
Q.18Hard
If an Infosys candidate needs to solve a graph problem involving finding strongly connected components, which algorithm would be most appropriate?
Answer: B
Kosaraju's Algorithm is specifically designed to find strongly connected components in a directed graph in O(V+E) time.
Q.19Hard
A software team at Infosys needs to implement microservices architecture. Which challenge is MOST critical to address?
Answer: B
Microservices architecture requires careful handling of inter-service communication protocols and distributed transactions across multiple services.
Q.20Hard
In a distributed system scenario relevant to Infosys projects, what does the CAP theorem suggest?
Answer: B
The CAP theorem states that a distributed system can only guarantee two of the three properties: consistency, availability, and partition tolerance.