What is the primary advantage of using microservices architecture in TCS projects?
Answer: B
Microservices allow independent scaling, deployment, and development of different services.
Q.65Easy
In recursion, what prevents infinite loops?
Answer: B
A base case is the termination condition that stops recursive calls from continuing indefinitely.
Advertisement
Q.66Medium
Which of the following is NOT a characteristic of NoSQL databases?
Answer: C
NoSQL databases typically follow eventual consistency rather than strict ACID properties.
Q.67Medium
If you have an array [3,1,4,1,5,9,2,6], what is the median?
Answer: A
Sorted: [1,1,2,3,4,5,6,9]. Median of 8 elements = (3+4)/2 = 3.5
Q.68Easy
TCS has how many employees (approximately) as of 2024-25?
Answer: C
TCS employs over 600,000 people globally, making it one of the largest IT service providers.
Q.69Hard
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.70Easy
TCS announced a special bonus structure in 2024. Which of the following best describes TCS's primary business focus?
Answer: A
TCS (Tata Consultancy Services) is a global IT services and consulting company with diverse business segments including IT services, consulting, and enterprise solutions.
Q.71Easy
In TCS recruitment process 2024-25, candidates typically face four rounds. What is the primary purpose of the technical round?
Answer: A
The technical round evaluates candidates' programming proficiency, understanding of data structures, algorithms, and their ability to solve complex problems under time constraints.
Q.72Medium
A software engineer at TCS needs to optimize a search operation in a large database containing 1 million records. Which data structure would be most efficient?
Answer: B
For searching in large datasets, Binary Search Trees provide O(log n) complexity and Hash Tables provide O(1) average case, both significantly better than linear search in unsorted structures.
Q.73Easy
In the TCS coding assessment, candidates encounter problems requiring recursion. What is the critical factor that prevents infinite recursion?
Answer: B
A base case (or termination condition) is essential in recursion to stop the function from calling itself indefinitely, preventing stack overflow errors.
Q.74Medium
TCS developers working on cloud-based projects often use microservices architecture. What is a PRIMARY advantage of this approach?
Answer: B
Microservices architecture allows individual components to scale independently, improves fault isolation, enables easier updates, and promotes team autonomy in development.
Q.75Medium
An array [7, 3, 9, 1, 4, 2, 8] needs to be sorted. If memory is extremely limited, which sorting algorithm should be preferred?
Answer: C
Heap Sort is an in-place sorting algorithm requiring only O(1) extra space, making it optimal for memory-constrained environments despite having O(n log n) time complexity.
Q.76Medium
In a TCS project using Git version control, a developer needs to undo committed changes. Which command should be used?
Answer: A
git reset --hard HEAD~1 is the standard command to undo the last commit and discard changes. HEAD~1 refers to the previous commit.
Q.77Medium
A circular queue has size 10. If front=3 and rear=8, how many elements are currently in the queue?
Answer: B
In a circular queue, number of elements = (rear - front + 1) = (8 - 3 + 1) = 6 elements.
Q.78Medium
TCS follows Agile methodology for most projects. Which practice is NOT a part of core Agile principles?
Answer: B
Agile embraces changing requirements even late in development. Fixed scope with no flexibility contradicts Agile's core principle of adaptability.
Q.79Medium
In a binary tree with 7 nodes, what is the maximum possible height?
Answer: C
Maximum height occurs in a skewed (linear) tree where height = n - 1 = 7 - 1 = 6. Minimum height would be 2 for a balanced tree.
Q.80Easy
TCS placement papers often include questions on SQL. What does the INNER JOIN operation do?
Answer: B
INNER JOIN returns only rows where there is a match in both tables based on the specified join condition, excluding non-matching rows.