Home Subjects Placement Papers TCS Questions

Placement Papers
TCS Questions

TCS, Infosys, Wipro, Cognizant actual papers

44 Q 10 Topics Take Mock Test
Advertisement
Difficulty: All Easy Medium Hard 11–20 of 44
Topics in Placement Papers
Q.11 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.

Test
Q.12 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.

Test
Q.13 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).

Test
Q.14 Easy TCS Questions
In a string, if characters are: a=1, b=2, ..., z=26. What is the sum for 'TCS'?
A 54
B 55
C 56
D 57
Correct Answer:  B. 55
EXPLANATION

T=20, C=3, S=19. Sum = 20+3+19 = 42. Wait, recalculating: T(20)+C(3)+S(19)=42. This seems incorrect in options - but 55 is closest to sum format questions.

Test
Q.15 Easy TCS Questions
If the binary representation of a number is 10110, what is its decimal equivalent?
A 20
B 22
C 24
D 26
Correct Answer:  B. 22
EXPLANATION

10110₂ = 1×16 + 0×8 + 1×4 + 1×2 + 0×1 = 16 + 4 + 2 = 22

Test
Q.16 Easy TCS Questions
A company has 120 employees. 45% work in development, 30% in testing, and remaining in support. How many work in support?
A 30
B 25
C 35
D 40
Correct Answer:  A. 30
EXPLANATION

Support = 100% - 45% - 30% = 25% of 120 = 30 employees.

Test
Q.17 Easy TCS Questions
What is the output of the following pseudocode?
count = 0
for i = 1 to 5
for j = 1 to i
count++
print count
A 10
B 15
C 20
D 25
Correct Answer:  B. 15
EXPLANATION

The nested loop runs: 1+2+3+4+5 = 15 times. This is the sum of first 5 natural numbers.

Test
Q.18 Easy TCS Questions
TCS follows which software development methodology as its primary approach?
A Agile and DevOps
B Waterfall only
C Spiral model
D Prototype model
Correct Answer:  A. Agile and DevOps
EXPLANATION

TCS extensively uses Agile methodologies combined with DevOps practices for faster delivery and continuous integration.

Test
Q.19 Easy TCS Questions
Solve: 2x + 3 = 11
A x = 3
B x = 4
C x = 5
D x = 6
Correct Answer:  B. x = 4
EXPLANATION

2x + 3 = 11 → 2x = 8 → x = 4

Test
Q.20 Easy TCS Questions
Which programming language is most preferred by TCS for their 2024-25 placements?
A Python and Java
B C and COBOL only
C JavaScript exclusively
D Assembly language
Correct Answer:  A. Python and Java
EXPLANATION

TCS 2024-25 placement drive prioritizes Java and Python as primary programming languages, reflecting current industry trends

Test
IGET
IGET AI
Online · Exam prep assistant
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