Showing 61–70 of 100 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.
In a string, if characters are: a=1, b=2, ..., z=26. What is the sum for 'TCS'?
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.
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).
In a circular queue, if the array size is 10 and front=7, rear=2, how many elements are present?
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.
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.
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.
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
Explanation:
O(n log n) with n=1000: 1000 × log₂(1000) ≈ 1000 × 10 = 10000 operations.
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.
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.
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.