Home Subjects Placement Papers TCS Questions

Placement Papers
TCS Questions

TCS, Infosys, Wipro, Cognizant actual papers

100 Q 10 Topics Take Test
Advertisement
Difficulty: All Easy Medium Hard 31–40 of 100
Topics in Placement Papers
Q.31 Medium TCS Questions
Which of the following is NOT a characteristic of NoSQL databases?
A Schema-less
B Horizontal scalability
C ACID transactions
D High availability
Correct Answer:  C. ACID transactions
EXPLANATION

NoSQL databases typically follow eventual consistency rather than strict ACID properties.

Take Test
Q.32 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.33 Medium TCS Questions
What is the primary advantage of using microservices architecture in TCS projects?
A Increased monolithic design
B Independent deployment and scalability
C Reduced code quality
D Single point of failure
Correct Answer:  B. Independent deployment and scalability
EXPLANATION

Microservices allow independent scaling, deployment, and development of different services.

Take Test
Q.34 Medium TCS Questions
A database query has time complexity O(n log n). For n=1000, approximately how many operations occur?
A 1000
B 10000
C 100000
D 1000000
Correct Answer:  B. 10000
EXPLANATION

O(n log n) with n=1000: 1000 × log₂(1000) ≈ 1000 × 10 = 10000 operations.

Take Test
Q.35 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.36 Medium TCS Questions
Which sorting algorithm is most suitable when memory is limited?
A Merge Sort
B Heap Sort
C Quick Sort
D Counting Sort
Correct Answer:  B. Heap Sort
EXPLANATION

Heap Sort uses O(1) extra space, making it ideal for memory-constrained environments.

Take Test
Q.37 Hard TCS Questions
In a circular queue, if the array size is 10 and front=7, rear=2, how many elements are present?
A 5
B 6
C 7
D 8
Correct Answer:  B. 6
EXPLANATION

In circular queue: elements = (rear - front + size) % size = (2 - 7 + 10) % 10 = 5. But accounting properly: 7,8,9,0,1,2 = 6 elements.

Take Test
Q.38 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
Q.39 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.

Take Test
Q.40 Medium TCS Questions
TCS's Digital platform focuses on which emerging technologies as of 2024-25?
A Blockchain and NFTs only
B AI/ML, Cloud, and Cybersecurity
C Only IoT
D Web 1.0 technologies
Correct Answer:  B. AI/ML, Cloud, and Cybersecurity
EXPLANATION

TCS's digital transformation strategy emphasizes AI/ML, cloud computing, and cybersecurity as core competencies.

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