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 21–30 of 44
Topics in Placement Papers
Q.21 Medium TCS Questions
Which data structure is most efficient for implementing a priority queue in competitive programming?
A Array
B Linked List
C Heap
D Binary Search Tree
Correct Answer:  C. Heap
EXPLANATION

Heaps provide O(log n) insertion and deletion, making them optimal for priority queues compared to other structures.

Test
Q.22 Medium TCS Questions
A number is 5 more than another number. If their sum is 25, find the larger number.
A 10
B 12
C 15
D 18
Correct Answer:  C. 15
EXPLANATION

Let smaller number = x. Larger = x+5. Sum: x + (x+5) = 25 → 2x = 20 → x = 10. Larger = 15

Test
Q.23 Medium TCS Questions
What is the probability of getting a sum of 7 when two dice are rolled?
A 1/6
B 1/8
C 1/12
D 1/18
Correct Answer:  A. 1/6
EXPLANATION

Favorable outcomes: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) = 6. Total outcomes = 36. Probability = 6/36 = 1/6

Test
Q.24 Medium TCS Questions
If 3 men can complete a task in 8 days, how many men are needed to complete it in 6 days?
A 3
B 4
C 5
D 6
Correct Answer:  B. 4
EXPLANATION

Total work = 3 × 8 = 24 man-days. Men needed = 24/6 = 4

Test
Q.25 Medium TCS Questions
What is the equation of a line passing through (2,3) with slope 4?
A y = 4x - 5
B y = 4x + 3
C y = 4x - 3
D y = 2x + 4
Correct Answer:  A. y = 4x - 5
EXPLANATION

Using y - y₁ = m(x - x₁): y - 3 = 4(x - 2) → y = 4x - 5

Test
Q.26 Medium TCS Questions
Two numbers are in the ratio 3:4. If their sum is 140, what is the larger number?
A 60
B 70
C 80
D 90
Correct Answer:  C. 80
EXPLANATION

Let numbers be 3x and 4x. Sum = 7x = 140, so x = 20. Larger number = 4×20 = 80

Test
Q.27 Medium TCS Questions
If the ratio of A:B:C is 2:3:5 and their sum is 100, what is the value of C?
A 20
B 30
C 50
D 60
Correct Answer:  C. 50
EXPLANATION

Let A=2x, B=3x, C=5x. Sum = 10x = 100, so x=10. Therefore C = 5×10 = 50

Test
Q.28 Medium TCS Questions
A boat covers 15 km upstream and 25 km downstream in 5 hours. What is the speed of the boat in still water if the river current is 2 km/h?
A 6 km/h
B 8 km/h
C 10 km/h
D 12 km/h
Correct Answer:  B. 8 km/h
EXPLANATION

Let boat speed = b. Upstream speed = b-2, Downstream speed = b+2. 15/(b-2) + 25/(b+2) = 5. Solving gives b = 8 km/h

Test
Q.29 Medium TCS Questions
What is the compound interest on Rs. 1000 at 10% per annum for 2 years?
A Rs. 200
B Rs. 210
C Rs. 220
D Rs. 225
Correct Answer:  B. Rs. 210
EXPLANATION

CI = P(1+r/100)^n - P = 1000(1.1)² - 1000 = 1210 - 1000 = Rs. 210

Test
Q.30 Medium TCS Questions
What is the value of (256)^(1/4)?
A 2
B 4
C 8
D 16
Correct Answer:  B. 4
EXPLANATION

(256)^(1/4) = fourth root of 256 = 4 (since 4⁴ = 256).

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