O(2^n) represents exponential time complexity, which becomes impractical for large input sizes (n > 40).
Q.32Easy
If a project uses version control with Git, what command is used to merge branches?
Answer: B
The 'git merge' command integrates changes from one branch into another.
Q.33Easy
In recursion, what prevents infinite loops?
Answer: B
A base case is the termination condition that stops recursive calls from continuing indefinitely.
Q.34Easy
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.35Easy
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.36Easy
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.37Easy
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.38Easy
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.
Q.39Easy
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.40Easy
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.