Home Subjects Placement Papers

Placement Papers

TCS, Infosys, Wipro, Cognizant actual papers

271 Q 10 Topics Take Test
Advertisement
Difficulty: All Easy Medium Hard 231–240 of 271
Topics in Placement Papers
Q.231 Easy TCS Questions
A TCS developer encounters a null pointer exception in Java. What is the PRIMARY cause?
A Accessing or invoking methods on an object reference that points to null
B Using too many if-else statements
C Declaring variables without initialization
D Using loops excessively
Correct Answer:  A. Accessing or invoking methods on an object reference that points to null
EXPLANATION

NullPointerException occurs when trying to call methods or access properties on a null object reference, which has no actual instance allocated in memory.

Take Test
Q.232 Easy TCS Questions
TCS employees working on REST APIs should follow which HTTP method for retrieving data without side effects?
A POST
B GET
C PUT
D DELETE
Correct Answer:  B. GET
EXPLANATION

GET is the HTTP method for safe, idempotent data retrieval without modifying server state. POST creates resources, PUT updates, and DELETE removes resources.

Take Test
Q.233 Easy TCS Questions
TCS placement papers often include questions on SQL. What does the INNER JOIN operation do?
A Returns all rows from both tables regardless of match
B Returns only matching rows from both tables based on join condition
C Returns all rows from left table and matching rows from right table
D Returns only rows from the first table
Correct Answer:  B. Returns only matching rows from both tables based on join condition
EXPLANATION

INNER JOIN returns only rows where there is a match in both tables based on the specified join condition, excluding non-matching rows.

Take Test
Q.234 Easy TCS Questions
In the TCS coding assessment, candidates encounter problems requiring recursion. What is the critical factor that prevents infinite recursion?
A Using global variables
B Base case that terminates the recursion
C Calling the function multiple times
D Using loops instead
Correct Answer:  B. Base case that terminates the recursion
EXPLANATION

A base case (or termination condition) is essential in recursion to stop the function from calling itself indefinitely, preventing stack overflow errors.

Take Test
Q.235 Easy TCS Questions
In TCS recruitment process 2024-25, candidates typically face four rounds. What is the primary purpose of the technical round?
A To assess coding skills, data structures, and problem-solving abilities
B To evaluate only communication skills
C To check personality traits
D To verify educational certificates
Correct Answer:  A. To assess coding skills, data structures, and problem-solving abilities
EXPLANATION

The technical round evaluates candidates' programming proficiency, understanding of data structures, algorithms, and their ability to solve complex problems under time constraints.

Take Test
Q.236 Easy TCS Questions
TCS announced a special bonus structure in 2024. Which of the following best describes TCS's primary business focus?
A IT Services, Consulting, and Business Solutions
B Manufacturing and Heavy Industries
C Retail and E-commerce
D Banking and Financial Services only
Correct Answer:  A. IT Services, Consulting, and Business Solutions
EXPLANATION

TCS (Tata Consultancy Services) is a global IT services and consulting company with diverse business segments including IT services, consulting, and enterprise solutions.

Take Test
Q.237 Easy TCS Questions
TCS has how many employees (approximately) as of 2024-25?
A 200,000
B 400,000
C 600,000
D 800,000
Correct Answer:  C. 600,000
EXPLANATION

TCS employs over 600,000 people globally, making it one of the largest IT service providers.

Take Test
Q.238 Easy TCS Questions
In recursion, what prevents infinite loops?
A Loop counter
B Base case
C Stack overflow
D Memory limit
Correct Answer:  B. Base case
EXPLANATION

A base case is the termination condition that stops recursive calls from continuing indefinitely.

Take Test
Q.239 Easy TCS Questions
If a project uses version control with Git, what command is used to merge branches?
A git push
B git merge
C git commit
D git clone
Correct Answer:  B. git merge
EXPLANATION

The 'git merge' command integrates changes from one branch into another.

Take Test
Q.240 Easy TCS Questions
What does the time complexity O(2^n) indicate?
A Linear time
B Exponential time
C Quadratic time
D Logarithmic time
Correct Answer:  B. Exponential time
EXPLANATION

O(2^n) represents exponential time complexity, which becomes impractical for large input sizes (n > 40).

Take Test
IGET
iget AI
Online · Ask anything about exams
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