250+ Coding Interview Questions Asked in Service-Based Companies (with Company Tags & Links)
- Reverse a string – Asked in: Infosys
-
Check if a string is a palindrome – Asked in: Capgemini
-
Find the factorial of a number – Asked in: Wipro
-
Find the largest number in an array – Asked in: TCS
-
Find the smallest number in an array – Asked in: Cognizant
-
Calculate the sum of array elements – Asked in: Infosys
-
Count even and odd numbers in an array – Asked in: Accenture
-
Count vowels and consonants in a string – Asked in: IBM
-
Swap two numbers – Asked in: TCS
-
Print Fibonacci series – Asked in: Infosys
-
Check if a number is prime – Asked in: Wipro
-
Find GCD of two numbers – Asked in: TCS
-
Find LCM of two numbers – Asked in: Infosys
-
Check Armstrong number – Asked in: Capgemini
-
Check Perfect number – Asked in: Cognizant
-
Reverse a number – Asked in: IBM
-
Count digits in a number – Asked in: Accenture
-
Print prime numbers in a range – Asked in: TCS
-
Print multiplication table – Asked in: Infosys
-
Find power of a number – Asked in: Wipro
-
Convert binary to decimal – Asked in: Capgemini
-
Convert decimal to binary – Asked in: Cognizant
-
Remove duplicates from an array – Asked in: Infosys
-
Find frequency of elements in an array – Asked in: Accenture
-
Sort array using bubble sort – Asked in: TCS
-
Sort array using selection sort – Asked in: Wipro
-
Find second largest element – Asked in: IBM
-
Find second smallest element – Asked in: Capgemini
-
Merge two arrays – Asked in: Infosys
-
Find missing number in array (1 to N) – Asked in: TCS
-
Count occurrences of a character in string – Asked in: Wipro
-
Capitalize first letter of each word in string – Asked in: Accenture
-
Remove all white spaces from string – Asked in: Infosys
-
Replace character in string – Asked in: Cognizant
-
Remove special characters from string – Asked in: TCS
-
Compare two strings – Asked in: Wipro
-
Find length of string without using length() – Asked in: Capgemini
-
Convert lowercase to uppercase – Asked in: Infosys
-
Convert string to integer – Asked in: IBM
-
Convert integer to string – Asked in: Accenture
-
Find ASCII value of character – Asked in: TCS
-
Check if strings are anagrams – Asked in: Capgemini
-
Count number of words in string – Asked in: Infosys
-
Remove duplicates from string – Asked in: Wipro
-
Check if array is sorted – Asked in: Cognizant
-
Implement linear search – Asked in: TCS
-
Implement binary search – Asked in: Infosys
-
Find intersection of two arrays – Asked in: Wipro
-
Find union of two arrays – Asked in: Accenture
-
Find sum of digits of number – Asked in: Capgemini
…
-
Find common elements in three sorted arrays – Asked in: Infosys
-
Check for pair with given sum in array – Asked in: Capgemini
-
Find majority element in array – Asked in: TCS
-
Kadane’s Algorithm – Max subarray sum – Asked in: Wipro
-
Check if array contains duplicate – Asked in: Infosys
-
Check if two strings are isomorphic – Asked in: IBM
-
Longest common prefix – Asked in: Accenture
-
Longest substring without repeating characters – Asked in: TCS
-
Group anagrams – Asked in: Wipro
-
Check if linked list is palindrome – Asked in: Infosys
-
Find middle of linked list – Asked in: Capgemini
-
Detect loop in linked list – Asked in: TCS
-
Remove Nth node from end – Asked in: Cognizant
-
Merge two sorted linked lists – Asked in: Wipro
-
Reverse a linked list – Asked in: Infosys
-
Find intersection of two linked lists – Asked in: Accenture
-
Add two numbers as linked list – Asked in: IBM
-
Remove duplicates from sorted list – Asked in: Capgemini
-
Delete node in a linked list – Asked in: TCS
-
Odd even linked list – Asked in: Wipro
-
Detect and remove loop in linked list – Asked in: Infosys
-
Implement stack using arrays – Asked in: Capgemini
-
Implement queue using arrays – Asked in: TCS
-
Implement circular queue – Asked in: Cognizant
-
Infix to postfix conversion – Asked in: Wipro
-
Evaluate postfix expression – Asked in: Infosys
-
Next greater element – Asked in: Accenture
-
Balanced parentheses – Asked in: IBM
-
Stock span problem – Asked in: Capgemini
-
LRU Cache implementation – Asked in: TCS
-
Insert interval – Asked in: Wipro
-
Merge intervals – Asked in: Infosys
-
Minimum platforms required – Asked in: Capgemini
-
Job scheduling problem – Asked in: TCS
-
N meeting in one room – Asked in: Wipro
-
Activity selection problem – Asked in: Infosys
-
Fractional knapsack problem – Asked in: IBM
-
0/1 Knapsack problem – Asked in: Accenture
-
Longest common subsequence – Asked in: TCS
-
Longest palindromic subsequence – Asked in: Capgemini
-
Coin change problem – Asked in: Infosys
-
Rod cutting problem – Asked in: Cognizant
-
Minimum number of coins – Asked in: Accenture
-
Subset sum problem – Asked in: Wipro
-
Word break problem – Asked in: IBM
-
Longest increasing subsequence – Asked in: TCS
-
Maximum product subarray – Asked in: Infosys
-
Edit distance – Asked in: Capgemini
-
Boolean parenthesization problem – Asked in: Wipro
-
Palindrome partitioning – Asked in: TCS
…
-
Two Sum Problem – Asked in: TCS
-
Move zeros to end of array – Asked in: Wipro
-
Rotate array by K elements – Asked in: Infosys
-
Check if subarray with 0 sum exists – Asked in: Capgemini
-
Find longest subarray with given sum – Asked in: Cognizant
-
Maximum sum increasing subsequence – Asked in: Infosys
-
Trapping Rain Water – Asked in: TCS
-
Minimum jumps to reach end – Asked in: Wipro
-
Chocolate Distribution Problem – Asked in: Capgemini
-
Activity Selection (Greedy) – Asked in: Accenture
-
Find missing and repeating number – Asked in: TCS
-
Find duplicate number (Floyd’s Cycle) – Asked in: Infosys
-
Set Matrix Zeroes – Asked in: Wipro
-
Spiral Matrix – Asked in: Capgemini
-
Search in a sorted 2D matrix – Asked in: IBM
-
Find peak element – Asked in: Accenture
-
Kth smallest element in array – Asked in: TCS
-
Kth largest element using heap – Asked in: Infosys
-
Sliding window maximum – Asked in: Wipro
-
First negative integer in window – Asked in: Capgemini
-
Check if brackets are balanced – Asked in: Infosys
-
Implement queue using stack – Asked in: IBM
-
Implement stack using queue – Asked in: Accenture
-
LRU Cache – Asked in: Capgemini
-
LFU Cache – Asked in: Wipro
-
Flatten a linked list – Asked in: TCS
-
Clone a linked list with random pointer – Asked in: Infosys
-
Sort a stack – Asked in: Capgemini
-
Delete middle of a stack – Asked in: Wipro
-
Insert at bottom of stack – Asked in: TCS
-
Check for balanced tree – Asked in: Infosys
-
Diameter of binary tree – Asked in: Capgemini
-
Invert binary tree – Asked in: IBM
-
Zigzag traversal of binary tree – Asked in: Accenture
-
Boundary traversal of binary tree – Asked in: TCS
-
Top view of binary tree – Asked in: Infosys
-
Bottom view of binary tree – Asked in: Capgemini
-
Vertical order traversal – Asked in: Wipro
-
Symmetric tree – Asked in: Infosys
-
Binary tree from inorder & preorder – Asked in: IBM
-
Lowest common ancestor in binary tree – Asked in: Capgemini
-
Max depth of binary tree – Asked in: TCS
-
Sum root to leaf numbers – Asked in: Infosys
-
Path sum – Asked in: Wipro
-
Binary tree level order traversal – Asked in: Accenture
-
Convert binary tree to doubly linked list – Asked in: Capgemini
-
Serialize and deserialize binary tree – Asked in: Infosys
-
Check subtree of another tree – Asked in: TCS
-
Construct tree from postorder and inorder – Asked in: Capgemini
-
Flatten binary tree to linked list – Asked in: Wipro
-
Find all duplicates in array – Asked in: Infosys
-
Find first and last position of element – Asked in: TCS
-
Count number of subarrays with sum k – Asked in: Capgemini
-
Find pivot index – Asked in: Cognizant
-
Max consecutive ones – Asked in: Wipro
-
Missing number – Asked in: Accenture
-
Min size subarray sum – Asked in: Infosys
-
Find all numbers disappeared – Asked in: TCS
-
Minimum operations to make array equal – Asked in: IBM
-
Merge two sorted arrays – Asked in: Capgemini
-
Check array is sorted and rotated – Asked in: Wipro
-
Best time to buy and sell stock – Asked in: Infosys
-
Subarray product less than k – Asked in: Accenture
-
Find target indices after sorting – Asked in: TCS
-
Rearrange array elements by sign – Asked in: Wipro
-
Maximum average subarray I – Asked in: Capgemini
-
Find kth positive missing number – Asked in: Infosys
-
Number of good pairs – Asked in: Cognizant
-
Intersection of two arrays – Asked in: IBM
-
Relative sort array – Asked in: Capgemini
-
Check if number is power of two – Asked in: Wipro
-
Single number – Asked in: TCS
-
Hamming weight – Asked in: Infosys
-
Count set bits – Asked in: Accenture
-
Find XOR of numbers from 1 to n – Asked in: IBM
-
Sum of two integers without + – – Asked in: Capgemini
-
Reverse bits – Asked in: Wipro
-
Add binary – Asked in: Infosys
-
Bitwise AND of numbers range – Asked in: TCS
-
Find missing number using XOR – Asked in: Accenture
-
Subsets – Asked in: Wipro
-
Permutations – Asked in: Infosys
-
Combination sum – Asked in: Capgemini
-
Word search – Asked in: TCS
-
N queens – Asked in: IBM
-
Palindrome partitioning – Asked in: Accenture
-
Letter case permutation – Asked in: Cognizant
-
Generate parentheses – Asked in: Infosys
-
Sudoku solver – Asked in: Wipro
-
Restore IP addresses – Asked in: TCS
-
Gray code – Asked in: Capgemini
-
Combination sum II – Asked in: Infosys
-
Combinations – Asked in: Wipro
-
Subsets II – Asked in: Accenture
-
Path sum II – Asked in: TCS
-
Letter combinations of a phone number – Asked in: Capgemini
-
Permutations II – Asked in: Infosys
-
Word break – Asked in: Wipro
-
Palindrome partitioning II – Asked in: IBM
-
Minimum number of swaps to make string balanced – Asked in: Cognizant
…
-
Validate Binary Search Tree – Asked in: Infosys
-
Lowest Common Ancestor of a BST – Asked in: Wipro
-
Binary Tree Inorder Traversal – Asked in: TCS
-
Construct Binary Tree from Inorder and Preorder – Asked in: Capgemini
-
Populating Next Right Pointers – Asked in: IBM
-
Flatten a Multilevel Doubly Linked List – Asked in: Infosys
-
Insert into a Binary Search Tree – Asked in: Cognizant
-
Sum of Left Leaves – Asked in: Wipro
-
Maximum Depth of N-ary Tree – Asked in: Accenture
-
Convert Sorted Array to BST – Asked in: TCS
-
Construct String from Binary Tree – Asked in: Infosys
-
Average of Levels in Binary Tree – Asked in: Capgemini
-
Binary Tree Tilt – Asked in: Wipro
-
Path Sum III – Asked in: Cognizant
-
Find Duplicate Subtrees – Asked in: Accenture
-
Construct Binary Tree from String – Asked in: IBM
-
Binary Tree Cameras – Asked in: TCS
-
Binary Tree Coloring Game – Asked in: Infosys
-
All Nodes Distance K in Binary Tree – Asked in: Capgemini
-
Recover Binary Search Tree – Asked in: Wipro
-
Boundary of Binary Tree – Asked in: Cognizant
-
Binary Tree Right Side View – Asked in: Infosys
-
Same Tree – Asked in: Capgemini
-
Count Complete Tree Nodes – Asked in: TCS
-
Binary Tree Paths – Asked in: IBM
-
Sum of Nodes with Even-Valued Grandparent – Asked in: Accenture
-
Longest ZigZag Path in Binary Tree – Asked in: Wipro
-
Tree Diameter – Asked in: Infosys
-
Count Good Nodes in Binary Tree – Asked in: Capgemini
-
Binary Search Tree Iterator – Asked in: Cognizant
-
Serialize and Deserialize BST – Asked in: IBM
-
Delete Node in a BST – Asked in: Wipro
-
Kth Smallest Element in BST – Asked in: Infosys
-
Validate Stack Sequences – Asked in: Capgemini
-
Check Completeness of a Binary Tree – Asked in: TCS
-
Maximum Width of Binary Tree – Asked in: Accenture
-
Find Largest Value in Each Tree Row – Asked in: Wipro
-
Cousins in Binary Tree – Asked in: Infosys
-
Vertical Order Traversal – Asked in: Cognizant
-
Binary Tree Postorder Traversal – Asked in: Capgemini
-
Sum of Root To Leaf Binary Numbers – Asked in: Wipro
-
Delete Leaves with a Given Value – Asked in: Infosys
-
Longest Univalue Path – Asked in: TCS
-
Find Bottom Left Tree Value – Asked in: IBM
-
Flip Equivalent Binary Trees – Asked in: Accenture
-
All Elements in Two BSTs – Asked in: Cognizant
-
Merge Two Binary Trees – Asked in: Capgemini
-
Binary Tree Level Order Traversal II – Asked in: Wipro
-
Path In Zigzag Labelled Binary Tree – Asked in: Infosys
-
Sum of Distances in Tree – Asked in: TCS
250 Interview Questions with Sample Answer
1. Tell me about yourself.
Answer: I’m a final-year student with a keen interest in problem-solving and software development. I’ve practiced over 300 coding problems and worked on projects in web development. I enjoy learning and applying new technologies.
2. What are your strengths?
Answer: I’m consistent, quick to learn, and I handle pressure well. I also enjoy working in teams and taking ownership of tasks.
3. What are your weaknesses?
Answer: I used to struggle with public speaking, but I’ve been improving through seminars and group presentations.
4. Why do you want to join our company?
Answer: Your company offers great learning and growth opportunities. I admire your work culture and would love to be part of a team that delivers quality software solutions.
5. What do you know about our company?
Answer: I know that [Insert Company] is one of the top IT service providers with global clients. I’ve also read about your recent focus on cloud and AI projects.
6. Why should we hire you?
Answer: I have the right blend of technical skills, eagerness to learn, and a strong work ethic. I’m confident I can contribute positively to your team.
7. What is OOP?
Answer: Object-Oriented Programming is a style of programming based on objects and classes. It follows four principles: Encapsulation, Abstraction, Inheritance, and Polymorphism.
8. What is the difference between C and C++?
Answer: C is a procedural language, while C++ supports both procedural and object-oriented programming.
9. What is the use of a constructor?
Answer: A constructor is a special method that initializes an object. It has the same name as the class and no return type.
10. Explain the concept of inheritance.
Answer: Inheritance allows a class to use properties and methods of another class, promoting code reusability.
11. What is the difference between == and .equals() in Java?
Answer: == checks if two references point to the same object, while .equals() checks the content of the objects.
12. What is recursion?
Answer: Recursion is when a function calls itself to solve a smaller part of the problem.
13. What is an array?
Answer: An array is a data structure that stores elements of the same type at contiguous memory locations.
14. What are pointers in C?
Answer: A pointer is a variable that holds the address of another variable.
15. What is abstraction?
Answer: Abstraction hides the internal details and shows only essential features to the user.
16. What is encapsulation?
Answer: Encapsulation binds data and functions together and keeps them safe from outside interference.
17. What is polymorphism?
Answer: Polymorphism allows one interface to be used for a general class of actions. Example: method overloading and overriding.
18. Difference between compile-time and runtime polymorphism?
Answer: Compile-time is method overloading; runtime is method overriding.
19. What is a class and object?
Answer: A class is a blueprint. An object is an instance of a class.
20. What is a virtual function?
Answer: A virtual function in C++ allows derived classes to override it, ensuring dynamic binding at runtime.
21. What are access modifiers?
Answer: Access modifiers define the scope of classes, variables, and methods. Examples: public, private, protected.
22. What is the difference between stack and heap memory?
Answer: Stack stores local variables and functions; heap stores objects and supports dynamic memory allocation.
23. What is garbage collection in Java?
Answer: It’s the process of reclaiming memory used by unreferenced objects.
24. What is the difference between process and thread?
Answer: A process is an independent program; a thread is a smaller unit of a process.
25. What is deadlock?
Answer: Deadlock is a situation where two or more processes wait for each other to release resources, causing a standstill.
26. What is multithreading?
Answer: Running multiple threads (small processes) simultaneously to improve performance.
27. Explain SDLC.
Answer: Software Development Life Cycle is a process for planning, developing, testing, and deploying software.
28. What are the phases of SDLC?
Answer: Requirements, Design, Development, Testing, Deployment, Maintenance.
29. What is Agile?
Answer: Agile is a flexible development methodology that delivers small parts of a project in iterations with constant feedback.
30. What is Scrum?
Answer: Scrum is a type of Agile framework with sprints, daily standups, and roles like Scrum Master and Product Owner.
31. What is normalization in DBMS?
Answer: It’s the process of organizing data to reduce redundancy and improve data integrity.
32. What is a primary key?
Answer: A primary key uniquely identifies each record in a table.
33. What is a foreign key?
Answer: A foreign key is a field in one table that refers to the primary key in another.
34. Difference between DELETE and TRUNCATE?
Answer: DELETE removes specific rows; TRUNCATE removes all rows quickly and cannot be rolled back.
35. What is SQL injection?
Answer: A security flaw where attackers execute malicious SQL statements through input fields.
36. Write a query to find the second highest salary.
Answer:
SELECT MAX(salary) FROM employees WHERE salary < (SELECT MAX(salary) FROM employees);
37. What is the use of GROUP BY?
Answer: It groups rows that have the same values so aggregate functions like COUNT or SUM can be applied.
38. Difference between HAVING and WHERE?
Answer: WHERE filters rows before grouping; HAVING filters after grouping.
39. What is JOIN in SQL?
Answer: JOIN combines rows from two or more tables based on related columns.
40. What is INNER JOIN?
Answer: It returns rows with matching values in both tables.
41. What is LEFT JOIN?
Answer: It returns all rows from the left table and matching rows from the right table.
42. What is an index in SQL?
Answer: It improves query speed by creating a quick lookup for data in a table.
43. What is a view in SQL?
Answer: A view is a virtual table based on the result-set of a query.
44. What is a trigger?
Answer: A trigger automatically executes a specified SQL script when certain events occur in a table.
45. What is an API?
Answer: An API is a set of rules that allows two applications to communicate with each other.
46. What is REST API?
Answer: REST is an API design approach based on standard HTTP methods like GET, POST, PUT, DELETE.
47. What is version control?
Answer: It helps track changes to code. Git is a popular tool for this.
48. What is Git?
Answer: Git is a distributed version control system that helps teams manage code changes.
49. What is a pull request?
Answer: It’s a request to merge code changes into the main project, usually reviewed before approval.
50. What is a merge conflict in Git?
Answer: It happens when two branches have changes to the same part of the code. It must be resolved manually.
51. What is exception handling in Java?
Answer: It’s a mechanism to handle runtime errors so the program doesn’t crash. Try-catch blocks are commonly used.
52. What is the difference between throw and throws?
Answer: throw is used to throw an exception, while throws is used to declare exceptions in a method signature.
53. What is the purpose of a finally block?
Answer: The finally block always executes whether or not an exception is thrown, often used to clean up resources.
54. Explain method overloading.
Answer: When two or more methods in the same class have the same name but different parameters.
55. Explain method overriding.
Answer: When a subclass provides a specific implementation of a method already defined in its superclass.
56. What is a static keyword in Java?
Answer: It’s used to define class-level variables or methods that don’t need an object to be accessed.
57. What is the difference between static and final in Java?
Answer: static relates to class-level context, while final means a variable or method cannot be changed or overridden.
58. What is the difference between abstract class and interface?
Answer: Abstract class can have both abstract and concrete methods; interface only has abstract methods (until Java 8+).
59. What is multilevel inheritance?
Answer: When a class is derived from a class, which is also derived from another class.
60. What is hybrid inheritance?
Answer: It combines two or more types of inheritance. Not supported directly in Java due to ambiguity issues.
61. Explain the lifecycle of a thread.
Answer: New → Runnable → Running → Blocked/Waiting → Terminated.
62. What is synchronization in Java?
Answer: It’s used to control access to shared resources by multiple threads to prevent inconsistency.
63. What is a race condition?
Answer: It occurs when multiple threads access and modify shared data concurrently, leading to unexpected results.
64. Difference between String and StringBuilder?
Answer: String is immutable; StringBuilder is mutable and more efficient for modifications.
65. How is memory managed in Python?
Answer: Python uses automatic memory management with reference counting and garbage collection.
66. What are Python lists and tuples?
Answer: Lists are mutable; tuples are immutable sequences used to store collections of items.
67. What is the difference between Java and Python?
Answer: Java is statically typed and compiled; Python is dynamically typed and interpreted. Python has simpler syntax.
68. What is recursion? Give a real-life analogy.
Answer: Like Russian dolls — solving a problem by solving a smaller version of the same problem.
69. What is the base case in recursion?
Answer: It’s the condition under which the recursion ends.
70. How do you reverse a string in C++?
Answer: You can use the reverse() function from <algorithm> or loop through the string from end to start.
71. What is bubble sort?
Answer: A simple sorting algorithm that repeatedly swaps adjacent elements if they’re in the wrong order.
72. What is time complexity of binary search?
Answer: O(log n), since it divides the array in half every time.
73. What is linear search?
Answer: It goes through each element one by one until the target is found.
74. Difference between array and linked list?
Answer: Arrays have fixed size and allow random access; linked lists are dynamic and allow easy insert/delete.
75. What is a stack?
Answer: A data structure that follows Last In, First Out (LIFO).
76. What is a queue?
Answer: A data structure that follows First In, First Out (FIFO).
77. What is a binary tree?
Answer: A tree structure where each node has up to two children — left and right.
78. What is a binary search tree (BST)?
Answer: A binary tree where left < root < right; used for efficient searching.
79. What is a hash table?
Answer: A data structure that maps keys to values using a hash function for quick lookup.
80. Explain DFS and BFS.
Answer: DFS explores depth first, using recursion/stack. BFS explores level-by-level, using a queue.
81. What is dynamic programming?
Answer: A technique to solve problems by storing results of subproblems to avoid recomputation.
82. What is memoization?
Answer: A type of dynamic programming where results are stored in a map/dictionary for reuse.
83. What is the use of the this keyword in Java?
Answer: Refers to the current object of a class.
84. Explain the difference between public, private, and protected.
Answer: Public: accessible everywhere. Private: only within the class. Protected: within class & subclasses.
85. What is an exception?
Answer: An event that disrupts the normal flow of the program — often runtime errors.
86. What is an IDE?
Answer: Integrated Development Environment — software like VS Code, Eclipse, etc., used to write, debug, and run code.
87. What is a use case of arrays in real life?
Answer: Storing student marks, list of items in a shopping cart, etc.
88. What is recursion’s biggest drawback?
Answer: Risk of stack overflow due to too many function calls; inefficient for large inputs.
89. What is Big O Notation?
Answer: A way to describe the performance or complexity of an algorithm as input size grows.
90. How do you test your code?
Answer: I use sample inputs, edge cases, and automated test cases when possible.
91. Why did you choose this field (IT/software)?
Answer: I enjoy problem-solving and building things using logic and creativity. That led me to tech.
92. Tell me about a challenging project you worked on.
Answer: I once built a college event registration portal with limited time. Learned teamwork and time management.
93. What is the difference between coding and programming?
Answer: Coding is writing code; programming is a broader process including problem-solving, design, testing, etc.
94. What motivates you?
Answer: Solving real problems, learning new things, and building solutions that help people.
95. How do you handle failure?
Answer: I analyze what went wrong, learn from it, and improve myself to avoid repeating mistakes.
96. Are you open to relocation?
Answer: Yes, I’m flexible and willing to relocate wherever required by the company.
97. What are your career goals?
Answer: In the short term, to be a good team contributor. In the long term, to become a software architect or team lead.
98. How do you keep yourself updated with tech trends?
Answer: I follow tech blogs, YouTube channels, and practice on platforms like LeetCode and GeeksforGeeks.
99. What do you do in your free time?
Answer: I enjoy reading tech articles, listening to podcasts, and working on personal coding projects.
100. Do you have any questions for us?
Answer: Yes, I’d love to know more about the team I’ll be working with and any upcoming projects you’re excited about.
101. How do you prioritize tasks in a project?
Answer: I list down tasks based on deadlines and importance. I use tools like Trello or simple to-do lists to track progress.
102. Describe a time when you worked in a team.
Answer: During my final year project, I worked with a team of four. We divided tasks and held regular discussions to ensure we were on track.
103. What is the difference between interface and abstract class in Java?
Answer: Interface can only have abstract methods (till Java 7), while an abstract class can have both abstract and non-abstract methods.
104. Can you write a program to check if a string is a palindrome?
Answer: Yes. You reverse the string and check if it’s the same as the original.
105. Write a Python code to find the factorial of a number.
def factorial(n):
return 1 if n == 0 else n * factorial(n-1)
106. What is the difference between list and array in Python?
Answer: Lists are more flexible and can store different types; arrays are more efficient for numeric computations.
107. What is normalization and why is it important?
Answer: It organizes data to reduce redundancy and ensure data integrity.
108. Explain the concept of foreign key.
Answer: A foreign key in one table points to the primary key of another to establish a relationship.
109. What are the types of SQL JOINs?
Answer: INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN.
110. What are ACID properties in DBMS?
Answer: Atomicity, Consistency, Isolation, Durability – they ensure reliable database transactions.
111. What is the use of COUNT() in SQL?
Answer: It returns the number of rows in a result set.
112. What is a subquery?
Answer: A query nested inside another query.
113. Write an SQL query to get employees with salary > 50000.
SELECT * FROM employees WHERE salary > 50000;
114. What is software testing?
Answer: It’s the process of evaluating software to find bugs and ensure it meets requirements.
115. Difference between black box and white box testing?
Answer: Black box tests functionality without knowing internal code; white box tests logic and code structure.
116. What is unit testing?
Answer: Testing individual components or functions of the program.
117. What is integration testing?
Answer: It checks how modules work together as a whole.
118. What is regression testing?
Answer: Testing after changes to ensure new code doesn’t break existing functionality.
119. What is the waterfall model?
Answer: A linear SDLC model where each phase must be completed before moving to the next.
120. What is the V-model?
Answer: It maps development phases to testing phases directly, like Verification vs Validation
121. What is the difference between Agile and Waterfall?
Answer: Agile is iterative and flexible; Waterfall is linear and rigid.
122. What is a sprint in Agile?
Answer: A fixed time period (usually 1–4 weeks) during which a set of tasks are completed.
123. Who is a Scrum Master?
Answer: A facilitator who ensures the Agile process is followed and removes blockers.
124. What is the Product Backlog?
Answer: A list of features and enhancements maintained by the product owner.
125. Explain pair programming.
Answer: Two developers work together — one writes code, the other reviews in real-time.
126. What are design patterns?
Answer: Reusable solutions to common software design problems (e.g., Singleton, Factory).
127. What is a Singleton class?
Answer: A class that allows only one instance to exist at a time.
128. What is the difference between stack and queue?
Answer: Stack is LIFO (Last In First Out); Queue is FIFO (First In First Out).
129. What are the different types of loops in C?
Answer: for, while, and do-while.
130. What is an infinite loop?
Answer: A loop that doesn’t terminate unless externally interrupted, often due to missing a condition.
131. What is a segmentation fault?
Answer: An error that occurs when a program tries to access restricted memory.
132. How do you prevent memory leaks in C?
Answer: By freeing dynamically allocated memory using free() after usage.
133. What is a macro in C?
Answer: A preprocessor directive used to define constants or code snippets.
134. What is the use of the const keyword?
Answer: It makes a variable’s value unchangeable after initialization.
135. What is the purpose of sizeof() in C?
Answer: It returns the memory size (in bytes) of data types or variables.
136. What is dynamic memory allocation?
Answer: Allocating memory at runtime using malloc(), calloc(), etc.
137. What is an algorithm?
Answer: A step-by-step procedure to solve a problem.
138. What is pseudocode?
Answer: A high-level description of an algorithm, not written in a specific programming language.
139. What is the difference between algorithm and program?
Answer: Algorithm is a logic plan; program is its implementation in a language.
140. What is the difference between compiler and interpreter?
Answer: Compiler translates entire code before execution; interpreter translates line-by-line.
141. What is the difference between local and global variables?
Answer: Local variables are declared inside a function; global ones are outside and accessible throughout.
142. What is recursion depth?
Answer: It’s how many levels deep a recursive function can go before causing a stack overflow.
143. What is the difference between pass-by-value and pass-by-reference?
Answer: Pass-by-value sends a copy; pass-by-reference sends the original, allowing modifications.
144. How would you debug a code that isn’t working?
Answer: Use print statements or debugging tools, analyze output, and isolate errors step-by-step.
145. What is the role of a software developer in a team?
Answer: To design, write, test, and maintain code that solves real-world problems.
146. What is your approach when you don’t know the answer to a coding question?
Answer: I break it down, try brute force if needed, and optimize later. If I still struggle, I ask clarifying questions.
147. What is the difference between GET and POST in APIs?
Answer: GET is used to retrieve data; POST is used to send data to the server.
148. What is RESTful architecture?
Answer: It follows a stateless communication protocol using HTTP methods for API interaction.
149. What is a full stack developer?
Answer: A developer who can handle both front-end and back-end parts of a web application.
150. Are you comfortable working in shifts or client-based roles?
Answer: Yes, I’m adaptable and open to company requirements, including shifts or client projects.
151. How do you handle feedback or criticism?
Answer: I take feedback positively. It helps me grow. I try to understand the suggestion and work on improving that area.
152. How would you explain your final year project to a non-technical person?
Answer: I would break it down using simple words and real-life comparisons. For example, if it’s a shopping cart system, I’d relate it to how Amazon works.
153. Have you ever missed a deadline? What did you do?
Answer: Once during a mini-project, I underestimated the time for testing. I informed my mentor early and worked extra hours to finish it.
154. How do you stay motivated during tough times?
Answer: I remind myself of my goals and how far I’ve come. Taking short breaks and watching tech videos also recharges me.
155. How do you explain technical terms to clients or non-tech team members?
Answer: I use simple language, visuals, and analogies they can relate to, like comparing data to books in a library.
156. What is your biggest achievement so far?
Answer: Building my first web app from scratch using HTML, CSS, JS, and Firebase — it helped over 500 students during campus events.
157. Describe a time you resolved a conflict in a team.
Answer: In college, two teammates had different opinions. I listened to both, facilitated a group discussion, and helped us reach a compromise.
158. What do you know about SDLC models?
Answer: SDLC models define steps in software development. Examples: Waterfall (linear), Agile (iterative), Spiral (risk-focused).
159. What is the difference between bug and error?
Answer: An error is a coding mistake. A bug is the result of that error which causes unexpected behavior.
160. What is the difference between verification and validation?
Answer: Verification checks if we’re building the product right; validation checks if we built the right product.
161. What is a breakpoint in debugging?
Answer: A breakpoint is a marker set in code where the execution will pause, allowing developers to inspect variables and flow.
162. What is a dry run?
Answer: Manually going through code line by line to predict the output or find logical mistakes.
163. What is test case?
Answer: A test case is a set of conditions under which a tester checks whether the software behaves as expected.
164. What’s the difference between front-end and back-end?
Answer: Front-end is what users see (UI/UX); back-end is what powers the app behind the scenes (logic, database).
165. What is responsive design?
Answer: A design approach that ensures websites look and work well on all screen sizes, from mobile to desktop.
166. What is an API key?
Answer: It’s a unique identifier used to authenticate and control access to APIs.
167. What is version control and why is it important?
Answer: It helps manage code changes. Tools like Git prevent conflicts and allow collaboration across teams.
168. What is the difference between Git and GitHub?
Answer: Git is a version control tool. GitHub is a platform to host and manage Git repositories online.
169. What is the purpose of a resume headline?
Answer: It gives a quick summary of your skills or goals. It should grab attention and reflect your value.
170. What is the STAR method in interviews?
Answer: STAR stands for Situation, Task, Action, Result — a structured way to answer behavioral questions.
171. Describe a time you worked on a tight deadline.
Answer: During my internship, I had to finish documentation and demo in 3 days. I planned my time well and stayed focused to meet the goal.
172. What is an algorithm to detect a loop in a linked list?
Answer: Floyd’s cycle detection algorithm using slow and fast pointers.
173. What is time complexity of quicksort?
Answer: Average: O(n log n), Worst: O(n²).
174. Difference between BFS and DFS?
Answer: BFS explores level by level using queue; DFS goes deep using stack or recursion.
175. What is the use of priority queue?
Answer: It allows access to the highest (or lowest) priority element quickly, used in scheduling and graphs.
176. What is the difference between pass by value and pass by reference in C++?
Answer: Value creates a copy; reference uses the original variable.
177. How would you design a login system?
Answer: It would have username/password input, hashing for password storage, validation, session handling, and error handling.
178. How do you stay organized during coding or debugging?
Answer: I break down problems, comment code, use meaningful variable names, and track bugs using a log or sticky notes.
179. Explain the importance of clean code.
Answer: Clean code is readable, maintainable, and reduces bugs. It helps other developers understand and modify it easily.
180. What are inline functions in C++?
Answer: Functions expanded during compilation to reduce function call overhead.
181. What is memory leakage?
Answer: When memory is allocated but not released, causing system slowdown or crash.
182. What is the difference between malloc() and calloc()?
Answer: malloc allocates memory without initializing, calloc allocates and initializes memory to zero.
183. What is a function pointer in C?
Answer: It allows functions to be passed as arguments or stored in arrays, useful for callbacks.
184. What is polymorphism in real life?
Answer: Like a phone — it can be used as a camera, music player, etc. One device, many behaviors.
185. What is the difference between class and object?
Answer: Class is a blueprint; object is the instance of that blueprint.
186. How do you keep your code secure?
Answer: Input validation, avoiding hardcoded credentials, using secure libraries, and regular code reviews.
187. What is an anonymous function?
Answer: A function without a name, often used for short, throwaway tasks (like lambda in Python).
188. What is a dangling pointer?
Answer: A pointer pointing to a memory location that has been freed/deleted.
189. What is a macro vs inline function?
Answer: Macros are preprocessor instructions; inline functions are type-safe and evaluated by compiler.
190. Explain real-world use case of stack.
Answer: Undo functionality in editors — last action is undone first.
191. What is difference between array and hashmap?
Answer: Arrays use index; hashmaps use key-value pairs for faster lookup.
192. What is hashing?
Answer: It’s converting data into a fixed-size value, used for fast data retrieval.
193. What is load factor in hashing?
Answer: It indicates how full a hash table is. A higher load factor can affect performance.
194. What is a circular queue?
Answer: A queue where the last element connects to the first, forming a circle — efficient use of space.
195. What is the difference between GET and POST methods in HTML forms?
Answer: GET appends data to the URL; POST sends it securely in the request body.
196. What are cookies and sessions?
Answer: Cookies store data on the client; sessions store it on the server for user tracking.
197. What is the use of final in Java?
Answer: Prevents inheritance (class), overriding (method), or reassignment (variable).
198. What is event bubbling in JavaScript?
Answer: Events propagate from the target element up through its ancestors.
199. Explain MVC architecture.
Answer: Model-View-Controller separates app logic (Model), UI (View), and control flow (Controller).
200. Why should we hire you over other candidates?
Answer: I bring strong fundamentals, a learning mindset, and commitment. I believe I’ll add long-term value to your team.
201. What is the difference between public, private, and protected access specifiers in C++?
Answer:
-
public: accessible from anywhere
-
private: accessible only within the class
-
protected: accessible within the class and its derived classes
202. What is encapsulation? Give an example.
Answer: Binding data and methods into a single unit. Example: A class with private variables and public methods.
203. What are pure virtual functions in C++?
Answer: Functions declared in base class but defined in derived class. Used for abstract classes.
204. Explain method overloading and overriding.
Answer:
-
Overloading: same method name, different parameters (compile-time)
-
Overriding: same method in base and derived class (runtime)
205. What is object slicing in C++?
Answer: When a derived class object is assigned to a base class object, extra attributes are lost.
206. Define garbage collection in Java.
Answer: Automatic memory management — frees memory of unused objects.
207. What are checked and unchecked exceptions in Java?
Answer:
-
Checked: handled at compile time (IOException)
-
Unchecked: handled at runtime (NullPointerException)
208. What is a constructor?
Answer: A special method called automatically when an object is created, used to initialize objects.
209. What is the difference between static and dynamic binding?
Answer:
-
Static: at compile time (overloading)
-
Dynamic: at runtime (overriding)
210. What is a thread? How is it useful?
Answer: A lightweight process for parallel execution. Improves performance in multi-tasking apps.
211. What is the use of the this keyword in Java?
Answer: Refers to the current object of the class.
212. What is inheritance?
Answer: Mechanism where a class acquires properties/methods of another. Promotes reusability.
213. What is an interface in Java?
Answer: A reference type containing abstract methods that must be implemented by a class.
214. Difference between ArrayList and LinkedList in Java?
Answer:
-
ArrayList: faster access, slower insertion
-
LinkedList: slower access, faster insertion/removal
215. What is the JVM?
Answer: Java Virtual Machine — runs Java bytecode and makes Java platform-independent.
216. What is recursion? Give an example.
Answer: A function calling itself.
Example: Factorial calculation using recursion.
217. What is backtracking?
Answer: A recursive algorithmic technique to find solutions by trying and discarding.
218. What is a base case in recursion?
Answer: A condition where the recursion ends to prevent infinite calls.
219. Difference between iterative and recursive solutions?
Answer:
-
Iterative: uses loops, more memory-efficient
-
Recursive: uses function calls, easier to write in some cases
220. Write a recursive code to calculate Fibonacci number.
def fib(n):
return n if n <= 1 else fib(n-1) + fib(n-2)
221. What is the use of the finally block in exception handling?
Answer: It always executes, even if an exception is thrown, to close resources.
222. What is a deadlock in operating systems?
Answer: A situation where processes wait for each other, preventing further execution.
223. What is the difference between process and thread?
Answer: Process: independent, more memory. Thread: lightweight, shares memory.
224. Explain context switching.
Answer: CPU switching from one task/process/thread to another.
225. What is a semaphore?
Answer: A variable used to control access to resources in concurrent systems.
226. What is paging in OS?
Answer: Memory management that loads parts of programs into physical memory.
227. What is cache memory?
Answer: High-speed memory between RAM and CPU, stores frequently used data.
228. Difference between RAM and ROM?
Answer:
-
RAM: volatile, temporary memory
-
ROM: non-volatile, stores firmware
229. What is DNS?
Answer: Domain Name System — translates domain names to IP addresses.
230. What is HTTP and HTTPS?
Answer:
-
HTTP: unsecured protocol
-
HTTPS: secured using SSL/TLS
231. What is latency?
Answer: Delay before a transfer of data begins after an instruction.
232. What is the OSI model?
Answer: A 7-layer model that standardizes network communication (e.g., Transport, Network layers).
233. What is an IP address?
Answer: A unique number assigned to each device on a network.
234. What is the difference between TCP and UDP?
Answer:
-
TCP: connection-oriented, reliable
-
UDP: connectionless, faster, less reliable
235. What is DNS spoofing?
Answer: A cyber attack where attackers redirect traffic by corrupting DNS data.
236. What is HTTPS used for?
Answer: Secured communication on websites using SSL encryption.
237. What is two-factor authentication?
Answer: A security process requiring two separate forms of identification.
238. What is phishing?
Answer: Fraudulent attempts to obtain sensitive info via fake emails or websites.
239. How would you secure a login system?
Answer: Use password hashing, input validation, 2FA, rate-limiting, and HTTPS.
240. What are common vulnerabilities in web apps?
Answer: SQL injection, XSS, CSRF, broken authentication.
241. What is the difference between encryption and hashing?
Answer:
-
Encryption: reversible, used to protect data
-
Hashing: one-way, used for data integrity
242. What is data abstraction?
Answer: Hiding internal details and showing only essential features.
243. What is SDLC?
Answer: Software Development Life Cycle — planning, development, testing, deployment, and maintenance.
244. Why is teamwork important in software projects?
Answer: It ensures collaboration, faster delivery, better quality, and learning from each other.
245. How do you handle conflict with a teammate?
Answer: Open communication, listening actively, and finding a mutual solution respectfully.
246. Why do you want to join a service-based company?
Answer: For the structured learning, wide project exposure, and the opportunity to work with different clients.
247. What is your strength?
Answer: Adaptability and quick learning — I can adjust to new tools, roles, and challenges easily.
248. What is your weakness?
Answer: I used to hesitate asking questions, but now I’ve learned the importance of clarity and communication.
249. Where do you see yourself in 5 years?
Answer: In a technical leadership role, contributing to meaningful projects, and mentoring juniors.
250. Do you have any questions for us?
Answer: Yes. What technologies or projects would I get to work on if selected?
250+ Verbal Ability Questions for Placement
Verbal Ability Questions – Easy Level (1–50)
-
Synonym of “Happy” – Infosys
A. Sad
B. Angry
C. Joyful ✅
D. Tired -
Fill in the blank: He is ___ honest man. – Wipro
A. a
B. an ✅
C. the
D. no article needed -
Identify the correct sentence – TCS
A. She don’t like tea.
B. She doesn’t like tea. ✅
C. She not likes tea.
D. She doesn’t liking tea. -
Opposite of “Ancient” – Capgemini
A. Old
B. Modern ✅
C. Antique
D. Vintage -
Choose the correct spelling – Cognizant
A. Acommodate
B. Accomodate
C. Accommodate ✅
D. Acomadate -
Choose the correct word: He has been working here ___ 2015. – Infosys
A. since ✅
B. for
C. at
D. from -
She ___ to school every day. – Wipro
A. go
B. goes ✅
C. going
D. gone -
I am good ___ math. – Capgemini
A. with
B. in
C. at ✅
D. for -
__ Earth revolves around the Sun. – Cognizant_
A. A
B. An
C. The ✅
D. No article -
Identify the noun: “The dog barked loudly.” – TCS
A. dog ✅
B. barked
C. loudly
D. the -
The book is ___ the table. – Infosys
A. on ✅
B. over
C. above
D. under -
Antonym of “Brave” – Wipro
A. Bold
B. Fearless
C. Cowardly ✅
D. Daring -
Identify the adjective: She wore a red dress. – TCS
A. wore
B. red ✅
C. dress
D. she -
She is ___ MBA graduate. – Capgemini
A. a
B. an ✅
C. the
D. one -
Identify the verb: He wrote a letter. – Cognizant
A. letter
B. wrote ✅
C. he
D. a -
Synonym of “Begin” – Infosys
A. End
B. Start ✅
C. Close
D. Finish -
Correct the sentence: He going to school. – Wipro
A. He is go to school.
B. He goes school.
C. He is going to school. ✅
D. He go to school. -
I prefer tea ___ coffee. – Capgemini
A. than
B. over ✅
C. instead
D. from -
Antonym of “Difficult” – Cognizant
A. Easy ✅
B. Hard
C. Complex
D. Tricky -
Plural of “Child” – TCS
A. Childs
B. Children ✅
C. Childes
D. Childen
-
Correct the tense: She will went tomorrow. – Infosys
A. She will go tomorrow. ✅
B. She goes tomorrow.
C. She going tomorrow.
D. She gone tomorrow. -
Change to passive voice: He eats an apple. – Wipro
A. An apple is eaten by him. ✅
B. He is eaten an apple.
C. An apple was eaten by him.
D. He has eaten an apple. -
Which sentence is grammatically correct? – Capgemini
A. They is coming.
B. They are coming. ✅
C. They coming.
D. They be coming. -
Choose the correct conjunction: I like tea ___ coffee. – Cognizant
A. or
B. but
C. and ✅
D. nor -
Choose the best replacement: He was too much tired. – TCS
A. He was very tired. ✅
B. He was tired very much.
C. He too tired.
D. He is too much of tired. -
Identify the adverb: He ran quickly. – Infosys
A. ran
B. quickly ✅
C. he
D. none -
Which is an interjection? – Wipro
A. Run
B. Jump
C. Wow! ✅
D. Go -
Correct the punctuation: how are you – Capgemini
A. How are you? ✅
B. how are you
C. How are you!
D. How are you. -
What part of speech is “under”? – Cognizant
A. Verb
B. Adjective
C. Preposition ✅
D. Conjunction -
Choose the indirect speech: He said, “I am tired.” – TCS
A. He said he is tired.
B. He said that he was tired. ✅
C. He said I was tired.
D. He said I am tired. -
Fill in the blank: She is known ___ her honesty. – Infosys
A. with
B. for ✅
C. of
D. about -
Which is the correct sentence? – Wipro
A. He go home.
B. He goes home. ✅
C. He going home.
D. He gone home. -
Synonym of “Big” – Capgemini
A. Huge ✅
B. Small
C. Large
D. Narrow -
Antonym of “Fast” – Cognizant
A. Quick
B. Rapid
C. Slow ✅
D. Speed -
What is the noun in: Ramesh sings well. – TCS
A. sings
B. well
C. Ramesh ✅
D. none -
Fill in the blank: The sun ___ in the east. – Infosys
A. rise
B. rises ✅
C. rising
D. rose -
Choose the correct idiom meaning: “Kick the bucket” – Wipro
A. Get angry
B. Fall ill
C. Die ✅
D. Become rich -
Identify subject in: The dog barked at the stranger. – Capgemini
A. barked
B. dog ✅
C. stranger
D. at -
Identify the predicate: The students are learning. – Cognizant
A. students
B. The students
C. are learning ✅
D. none -
Choose the correct sentence: – TCS
A. Me and he went.
B. I and he went.
C. He and I went. ✅
D. He and me went. -
Antonym of “Modern” – Infosys
A. Old ✅
B. New
C. Future
D. Contemporary -
Fill in the blank: It is a matter ___ great pride. – Wipro
A. for
B. with
C. of ✅
D. to -
Identify the tense: She had finished her homework. – Capgemini
A. Present perfect
B. Past perfect ✅
C. Future perfect
D. Past continuous -
Synonym of “Neat” – Cognizant
A. Dirty
B. Clean ✅
C. Ugly
D. Messy -
Change into active voice: The work was done by him. – TCS
A. He did the work. ✅
B. He has done the work.
C. The work is done by him.
D. He was doing the work. -
Identify the interrogative sentence: – Infosys
A. She is singing.
B. Is she singing? ✅
C. She was singing.
D. She sings well. -
Complete the phrase: As cool as a ___ – Wipro
A. fire
B. flower
C. cucumber ✅
D. breeze -
Choose the prefix for “possible” to make it negative – Capgemini
A. dis
B. un
C. in ✅
D. non -
Fill in the blank: Neither the boy ___ the girl was present. – Cognizant
A. and
B. nor ✅
C. but
D. or -
Plural of “Goose” – TCS
A. Gooses
B. Geese ✅
C. Goos
D. Goose
🟡 Verbal Ability – Medium Level (51–100)
-
Neither the teacher ___ the students were informed. – Infosys
A. or
B. nor ✅
C. and
D. but -
They delivered the package. (Change into passive) – Wipro
A. The package was delivered ✅
B. The package is delivered
C. It was delivered the package
D. Delivered was the package -
Synonym of “Brief” – TCS
A. Small
B. Short ✅
C. Tiny
D. Fast -
Opposite of “Visible” – Capgemini
A. Hidden ✅
B. Clear
C. Bright
D. Faded -
Fill in the blank: She will reach the station ___ time. – Cognizant
A. at
B. in
C. on ✅
D. to -
Identify the correct sentence – Infosys
A. He are late.
B. He is late. ✅
C. He be late.
D. He being late. -
Select the synonym of “Acquire” – Wipro
A. Give
B. Learn
C. Obtain ✅
D. Teach -
Identify the antonym of “Courage” – Capgemini
A. Fear ✅
B. Bravery
C. Strength
D. Confidence -
Fill in the blank: It’s been raining ___ morning. – Cognizant
A. from
B. since ✅
C. at
D. in -
What is the part of speech of the word “quickly”? – TCS
A. Noun
B. Verb
C. Adjective
D. Adverb ✅ -
Correct the tense: She had ate dinner. – Infosys
A. She had eaten dinner. ✅
B. She has ate dinner.
C. She eaten dinner.
D. She was ate dinner. -
Identify the correct sentence – Wipro
A. He do not want to leave.
B. He does not wants to leave.
C. He does not want to leave. ✅
D. He do not wants to leave. -
Choose the correct phrase replacement: Despite of the rain, we went out. – Capgemini
A. Despite the rain ✅
B. Though of the rain
C. Although of the rain
D. Inspite the rain -
What is the meaning of the idiom “a blessing in disguise”? – Cognizant
A. A lucky break ✅
B. A hidden punishment
C. An obvious miracle
D. A sudden accident -
Choose the correct preposition: He is good ___ painting. – TCS
A. on
B. in
C. with
D. at ✅ -
Antonym of “Generous” – Infosys
A. Kind
B. Cruel
C. Selfish ✅
D. Rude -
Choose the correct indirect speech: He said, “She sings beautifully.” – Wipro
A. He said that she sang beautifully. ✅
B. He said she sings beautifully.
C. He says that she sang beautifully.
D. He said she sang beautifully. -
Identify the adverb: She almost won the race. – Capgemini
A. she
B. almost ✅
C. won
D. race -
Which sentence is in past perfect tense? – Cognizant
A. She had left before I arrived. ✅
B. She left after I came.
C. She was leaving the house.
D. She had been arriving. -
Spot the error: Each of the boys have a pen. – TCS
A. Each
B. of the boys
C. have ✅
D. a pen -
What is the antonym of “Reluctant”? – Infosys
A. Hesitant
B. Eager ✅
C. Afraid
D. Shy -
Fill in the blank: I haven’t seen her ___ two years. – Wipro
A. for ✅
B. since
C. at
D. from -
Choose the correct transformation: Active to Passive – They are watching a movie. – Capgemini
A. A movie is watched by them.
B. A movie was being watched by them.
C. A movie is being watched by them. ✅
D. A movie was watched by them. -
Synonym of “Embrace” – Cognizant
A. Avoid
B. Hug ✅
C. Ignore
D. Reject -
Spot the error: The news are spreading fast. – TCS
A. The
B. news ✅
C. are
D. spreading -
Choose the correct spelling – Infosys
A. Acquaintence
B. Acquaintance ✅
C. Aquentance
D. Acquintance -
Which sentence is correct? – Wipro
A. I have finished my homework yesterday.
B. I finished my homework yesterday. ✅
C. I had finished my homework yesterday.
D. I finish my homework yesterday. -
Choose the antonym of “Harmony” – Capgemini
A. Discord ✅
B. Peace
C. Unity
D. Friendship -
Identify the conjunction: I was tired, yet I kept walking. – Cognizant
A. tired
B. walking
C. yet ✅
D. I -
Fill in the blank: He walked slowly ___ he was injured. – TCS
A. because ✅
B. but
C. although
D. so -
Synonym of “Fortunate” – Infosys
A. Lucky ✅
B. Poor
C. Sad
D. Ill -
What part of speech is “brightly”? – Wipro
A. Noun
B. Adjective
C. Verb
D. Adverb ✅ -
Which sentence is in future continuous tense? – Capgemini
A. I will be watching TV. ✅
B. I will watch TV.
C. I am watching TV.
D. I have watched TV. -
Identify the error: The scissors is on the table. – Cognizant
A. The
B. scissors ✅
C. is
D. on -
Antonym of “Generous” – TCS
A. Mean ✅
B. Kind
C. Noble
D. Caring -
Choose the best replacement: He gave me an advice. – Infosys
A. He gave me advice. ✅
B. He gave me a advice.
C. He gave me advices.
D. He gave me the advice. -
Choose the synonym of “Courageous” – Wipro
A. Timid
B. Brave ✅
C. Coward
D. Weak -
Identify the noun in: Happiness is important. – Capgemini
A. important
B. is
C. happiness ✅
D. none -
Which is a complex sentence? – Cognizant
A. I went to the park.
B. I went to the park and played.
C. I went to the park because I needed a break. ✅
D. I played. -
Fill in the blank: I am interested ___ learning languages. – TCS
A. at
B. with
C. on
D. in ✅ -
Correct the sentence: He didn’t knew the answer. – Infosys
A. He didn’t know the answer. ✅
B. He did knew the answer.
C. He didn’t knows the answer.
D. He didn’t knowing the answer. -
Choose the correct voice: The cake was baked by her. – Wipro
A. She baked the cake. ✅
B. She is baking the cake.
C. She was baking cake.
D. Cake is baked by her. -
Antonym of “Accept” – Capgemini
A. Allow
B. Reject ✅
C. Agree
D. Appreciate -
Identify the pronoun: She gave him a gift. – Cognizant
A. She ✅
B. gift
C. gave
D. a -
Correct article usage: He is ___ European. – TCS
A. a ✅
B. an
C. the
D. none -
Choose the best word: The ___ of the story was unexpected. – Infosys
A. end ✅
B. stop
C. finish
D. close -
Synonym of “Polite” – Wipro
A. Rude
B. Gentle ✅
C. Harsh
D. Mean -
Choose the correct voice: She will complete the work. – Capgemini
A. The work will be completed by her. ✅
B. The work is completed by her.
C. The work was completed by her.
D. The work is being completed by her. -
Antonym of “Victory” – Cognizant
A. Lose
B. Failure ✅
C. Defeat
D. Loss -
Choose the correct conjunction: He is rich ___ unhappy. – TCS
A. or
B. but ✅
C. and
D. so
🔴 Verbal Ability – Hard Level (101–150)
-
The professor’s explanation was so ___ that I couldn’t understand anything. – Infosys
A. lucid
B. obscure ✅
C. brief
D. articulate -
Identify the error: Neither of the boys have done their homework. – Wipro
A. Neither ✅
B. have
C. done
D. their -
The manager told him leave immediately. – Capgemini
A. him to leave ✅
B. him leaving
C. he to leave
D. him leaves -
Antonym of “Scarcity” – Cognizant
A. Excess ✅
B. Lack
C. Deficiency
D. Poverty -
Correct spelling – TCS
A. Mischievious
B. Mischievous ✅
C. Mishevious
D. Mischivious -
Identify the indirect speech: She said, “I can swim.” – Infosys
A. She said she could swim. ✅
B. She said I can swim.
C. She said she can swim.
D. She said she will swim. -
Fill in the blank: He is ___ to speak the truth. – Wipro
A. too coward
B. so coward
C. coward enough
D. too much of a coward ✅ -
Choose the synonym for “Omit” – Capgemini
A. Include
B. Add
C. Exclude ✅
D. Accept -
Which of the following is a complex sentence? – Cognizant
A. He walked and she ran.
B. She came to class, but she was late.
C. Although it was raining, they played. ✅
D. The sky is blue. -
Choose the correct word: I’d rather ___ at home than go out. – TCS
A. stay ✅
B. to stay
C. staying
D. stayed -
Find the error: One of the boy have lost his book. – Infosys
A. One
B. of the boy ✅
C. have
D. lost -
Antonym of “Recede” – Wipro
A. Diminish
B. Withdraw
C. Advance ✅
D. Sink -
Fill in the blank: He drove the car ___ he had never driven before. – Capgemini
A. although
B. if
C. as if ✅
D. when -
The plural of “Analysis” – Cognizant
A. Analysises
B. Analysis
C. Analysi
D. Analyses ✅ -
Spot the error: The people is standing in queue. – TCS
A. The
B. people ✅
C. is
D. in queue -
Change into passive: They elected him president. – Infosys
A. He is elected as president.
B. He was elected president. ✅
C. He elected president.
D. President was elected him. -
Which of the following is NOT a noun? – Wipro
A. Bravery
B. Honesty
C. Think ✅
D. Truth -
Meaning of idiom “Break the ice” – Capgemini
A. Go on a trip
B. Start a conversation ✅
C. Fight
D. Solve a problem -
Which is an appropriate one-word substitution for “One who talks too much”? – Cognizant
A. Reticent
B. Loquacious ✅
C. Taciturn
D. Silent -
Choose the antonym of “Hostile” – TCS
A. Aggressive
B. Friendly ✅
C. Angry
D. Rude -
Correct the sentence: He is enough tall to play basketball. – Infosys
A. He is tall enough ✅
B. He is enough tall
C. He tall enough
D. He tall -
Fill in the blank: She was not only intelligent ___ also hardworking. – Wipro
A. but ✅
B. and
C. as
D. or -
What part of speech is “truly”? – Capgemini
A. Noun
B. Verb
C. Adverb ✅
D. Adjective -
Change into indirect: He said, “I am going to the market.” – Cognizant
A. He said he is going to the market.
B. He said I am going to the market.
C. He said he was going to the market. ✅
D. He told he went to market. -
Which sentence is grammatically correct? – TCS
A. He did not knew the answer.
B. He does not knows the answer.
C. He did not know the answer. ✅
D. He does not knew the answer. -
Synonym of “Consequence” – Infosys
A. Reason
B. Result ✅
C. Purpose
D. Goal -
Antonym of “Optimist” – Wipro
A. Realist
B. Dreamer
C. Pessimist ✅
D. Thinker -
Fill in the blank: He is afraid ___ snakes. – Capgemini
A. with
B. of ✅
C. by
D. at -
Which one is a complex sentence? – Cognizant
A. She danced beautifully.
B. She danced and he sang.
C. She danced when the music played. ✅
D. She danced. -
Choose the word with correct spelling – TCS
A. Definately
B. Definetely
C. Definitely ✅
D. Definatelye -
Meaning of idiom “Hit the sack” – Infosys
A. Work hard
B. Go to bed ✅
C. Argue
D. Hit something -
Correct article usage: He is ___ honest man. – Wipro
A. an ✅
B. a
C. the
D. one -
Identify the correct sentence – Capgemini
A. She is good in cooking.
B. She is good to cooking.
C. She is good at cooking. ✅
D. She is good by cooking. -
Find the pronoun: The teacher praised her. – Cognizant
A. her ✅
B. teacher
C. praised
D. the -
Which is a compound sentence? – TCS
A. He worked hard and passed the test. ✅
B. He worked hard.
C. Working hard, he passed.
D. Although he worked hard, he passed. -
Synonym of “Diligent” – Infosys
A. Lazy
B. Careful ✅
C. Casual
D. Relaxed -
Choose the correct voice: The letter was written by her. – Wipro
A. She wrote the letter. ✅
B. She has written the letter.
C. She is writing the letter.
D. She was writing the letter. -
Antonym of “Innocent” – Capgemini
A. Kind
B. Guilty ✅
C. Honest
D. Loyal -
Spot the error: Mathematics are a difficult subject. – Cognizant
A. Mathematics ✅
B. are
C. a
D. subject -
Choose the correct conjunction: He is smart ___ arrogant. – TCS
A. and
B. or
C. but ✅
D. for -
What is the part of speech of “seldom”? – Infosys
A. Adverb ✅
B. Noun
C. Adjective
D. Verb -
Change into indirect speech: He said, “I will help her.” – Wipro
A. He said that he would help her. ✅
B. He said that he will help her.
C. He said he help her.
D. He said he helps her. -
Fill in the blank: It depends ___ you. – Capgemini
A. with
B. on ✅
C. at
D. in -
Choose the best word: I was ___ to hear the news. – Cognizant
A. delighted ✅
B. angry
C. tired
D. lost -
Antonym of “Victory” – TCS
A. Success
B. Triumph
C. Defeat ✅
D. Celebration -
Identify the error: He don’t want to go. – Infosys
A. He
B. don’t ✅
C. want
D. to go -
Choose the sentence in passive voice – Wipro
A. The house was built in 2010. ✅
B. He built the house.
C. They build the house.
D. He is building the house. -
Correct usage of “either” – Capgemini
A. Either of the two answers are correct.
B. Either of the two answers is correct. ✅
C. Either of the two answer is correct.
D. Either answer are correct. -
Synonym of “Prompt” – Cognizant
A. Slow
B. Immediate ✅
C. Lazy
D. Rough -
Choose the correct tense: I ___ seen that movie already. – TCS
A. have ✅
B. has
C. had
D. was
151. Choose the correctly punctuated sentence:
A. She said “I am ready.”
B. She said, “I am ready.” ✅
C. She said “I am ready”.
D. She said I am ready.
152. Synonym of “Obsolete”
A. Old-fashioned ✅
B. Modern
C. Trendy
D. Popular
153. Spot the error: The climate of Mumbai are humid.
A. The
B. climate
C. are ✅
D. humid
154. Choose the correct form: She is ___ than her sister.
A. pretty
B. prettiest
C. prettier ✅
D. more prettiest
**155. One word substitution for: “A person who doesn’t believe in God.”
A. Atheist ✅
B. Agnostic
C. Pagan
D. Fatalist
156. Fill in the blank: He is interested ___ learning languages.
A. for
B. in ✅
C. on
D. at
157. Antonym of “Superficial”
A. Deep ✅
B. Shallow
C. External
D. Fake
**158. Identify the part of speech: “Unfortunately, he lost the match.”
A. Noun
B. Verb
C. Adjective
D. Adverb ✅
159. Spot the error: Neither of the girls have done their work.
A. Neither
B. have ✅
C. done
D. work
160. Convert into passive voice: They are painting the walls.
A. The walls are being painted. ✅
B. The walls are painted.
C. The walls are painting.
D. The walls were painted.
161. Antonym of “Generous”
A. Kind
B. Selfish ✅
C. Helpful
D. Honest
162. Choose the sentence in indirect speech: He said, “I am going to school.”
A. He said that he was going to school. ✅
B. He said that he is going to school.
C. He told he went to school.
D. He was saying he is going to school.
163. Correct preposition usage: He is good ___ cricket.
A. at ✅
B. in
C. by
D. for
164. Select the appropriate word: The book is divided ___ three parts.
A. into ✅
B. in
C. with
D. to
165. Find the synonym for “Ambiguous”
A. Clear
B. Confusing ✅
C. Simple
D. Unique
166. Which of these is a declarative sentence?
A. Where do you live?
B. Please bring me water.
C. I like reading books. ✅
D. Don’t make noise.
167. Spot the error: He speak English very well.
A. He
B. speak ✅
C. English
D. very
**168. Meaning of idiom: “A blessing in disguise”
A. A gift wrapped
B. An unexpected benefit ✅
C. A miracle
D. A disaster
169. Fill in the blank: I wish I ___ a bird.
A. am
B. was ✅
C. were
D. be
170. Choose the correct word: I saw ___ elephant in the zoo.
A. a
B. an ✅
C. the
D. one
171. Select the correctly spelled word:
A. Separate ✅
B. Seperate
C. Seperete
D. Seperat
172. Choose the synonym of “Reluctant”
A. Willing
B. Unwilling ✅
C. Ready
D. Prepared
173. Choose the appropriate article: He is ___ honest man.
A. a
B. an ✅
C. the
D. no article
174. Choose the correct indirect form: He said, “I will come.”
A. He said that he would come. ✅
B. He says he will come.
C. He said I would come.
D. He told he will come.
175. Find the error: One of my friend is a writer.
A. One
B. of
C. my friend ✅
D. is
**176. One word for: “Someone who always expects the worst.”
A. Optimist
B. Pessimist ✅
C. Realist
D. Cynic
177. Antonym of “Rigid”
A. Hard
B. Flexible ✅
C. Strong
D. Tough
178. What is the plural of “Crisis”?
A. Crises ✅
B. Crisises
C. Crisis
D. Crisas
179. Spot the error: She didn’t wrote the email.
A. didn’t ✅
B. wrote
C. the
D. email
180. Fill in the blank: He arrived ___ the airport on time.
A. at ✅
B. in
C. to
D. into
181. Antonym of “Include”
A. Exclude ✅
B. Contain
C. Insert
D. Admit
182. Choose the correct sentence:
A. He go to school.
B. He goes to school. ✅
C. He going to school.
D. He gone to school.
183. Meaning of idiom: “Cost an arm and a leg”
A. Cheap
B. Expensive ✅
C. Harmful
D. Risky
184. Spot the error: The informations he gave were incorrect.
A. informations ✅
B. he
C. gave
D. were
185. Which is a complex sentence?
A. I like tea and coffee.
B. He went to school but forgot his bag.
C. Although he was tired, he finished the work. ✅
D. Go now!
186. Choose the correctly spelled word:
A. Reciept
B. Receipt ✅
C. Recipt
D. Receit
187. Change to passive: They cleaned the room.
A. The room is cleaned.
B. The room was cleaned. ✅
C. The room is being cleaned.
D. The room had cleaned.
188. Synonym of “Essential”
A. Optional
B. Necessary ✅
C. Unimportant
D. Casual
189. Antonym of “Expand”
A. Increase
B. Extend
C. Contract ✅
D. Stretch
190. Spot the error: He has gave me the book.
A. has ✅
B. gave
C. me
D. the book
**191. One word for: “One who knows many languages”
A. Translator
B. Polyglot ✅
C. Interpreter
D. Linguist
192. Select the correct word: She is fond ___ music.
A. in
B. for
C. to
D. of ✅
193. Antonym of “Transparent”
A. Opaque ✅
B. Glassy
C. Solid
D. Bright
194. Which sentence is grammatically correct?
A. Everyone are happy.
B. Everyone is happy. ✅
C. Everyone were happy.
D. Everyone be happy.
**195. Meaning of idiom: “Barking up the wrong tree”
A. Making noise
B. Accusing the wrong person ✅
C. Chasing dogs
D. Losing direction
196. Choose the correct voice: The song was sung by her.
A. She sung the song.
B. She sang the song. ✅
C. She is singing the song.
D. She was singing the song.
197. Fill in the blank: She has been here ___ morning.
A. for
B. since ✅
C. from
D. by
198. Antonym of “Optimist”
A. Idealist
B. Realist
C. Pessimist ✅
D. Enthusiast
199. Choose the correctly punctuated sentence:
A. Can you, please help me?
B. Can you please help me? ✅
C. Can you please, help me?
D. Can you help, me please?
200. Synonym of “Rapid”
A. Fast ✅
B. Late
C. Calm
D. Cold
201. Spot the error: He as well as his friends are going.
A. He
B. as well as
C. are ✅
D. going
202. One word substitution: A person who looks at the bright side of everything.
A. Pessimist
B. Optimist ✅
C. Realist
D. Visionary
203. Choose the correct form: Neither of the answers ___ correct.
A. are
B. is ✅
C. have
D. were
204. Meaning of idiom “A storm in a teacup”
A. Heavy rainfall
B. Great excitement over a trivial issue ✅
C. Sudden anger
D. Crying in public
205. Fill in the blank: I prefer coffee ___ tea.
A. over
B. to ✅
C. than
D. more than
206. Synonym of “Compulsory” – Wipro
A. Optional
B. Voluntary
C. Mandatory ✅
D. Arbitrary
207. Antonym of “Freedom”
A. Liberty
B. Slavery ✅
C. Peace
D. Democracy
208. Choose the indirect form: She said, “I may come.”
A. She said that she may come.
B. She said that she might come. ✅
C. She said I might come.
D. She said she can come.
209. Choose the correct sentence:
A. The sceneries were beautiful.
B. The scenery was beautiful. ✅
C. The scenery were beautiful.
D. The sceneries was beautiful.
210. Spot the error: This is the boy who I told you about him.
A. who
B. I told
C. about
D. him ✅
211. Antonym of “Arrival”
A. Departure ✅
B. Coming
C. Reaching
D. Entering
**212. Choose the synonym of “Brief” – Infosys
A. Concise ✅
B. Lengthy
C. Clear
D. Boring
213. One-word substitution: A speech delivered without preparation.
A. Rehearsal
B. Lecture
C. Extempore ✅
D. Discourse
214. Meaning of idiom “Throw in the towel”
A. Lend support
B. Give up ✅
C. Argue
D. Protest
215. Correct the sentence: I look forward to meet you.
A. to meeting you ✅
B. to meet with you
C. to meets you
D. meet you
216. Spot the error: She do not know the answer.
A. She
B. do ✅
C. not
D. the answer
217. Fill in the blank: The patient died ___ the injuries.
A. from ✅
B. of
C. by
D. to
218. Correct the sentence: Each of the boys were given a book.
A. was given ✅
B. were given
C. are given
D. is given
219. Antonym of “Ancient”
A. Old
B. New ✅
C. Modern
D. Historic
220. Choose the correct sentence:
A. He is senior than me.
B. He is senior to me. ✅
C. He is senior by me.
D. He is more senior than me.
221. One word substitution: A person who loves books.
A. Bibliophile ✅
B. Librarian
C. Bookworm
D. Critic
222. Choose the synonym of “Courage” – Capgemini
A. Fear
B. Bravery ✅
C. Weakness
D. Sadness
223. Choose the correctly punctuated sentence:
A. What is your name.
B. What is your name? ✅
C. What is your name,
D. What is your name!
224. Meaning of idiom “To hit the sack”
A. To get injured
B. To go to bed ✅
C. To hit someone
D. To cook dinner
225. Antonym of “Gain”
A. Earn
B. Win
C. Lose ✅
D. Buy
226. Spot the error: The teacher as well as the students were tired.
A. teacher
B. students
C. were ✅
D. tired
227. One-word substitution: A person who doesn’t drink alcohol.
A. Narcotic
B. Teetotaler ✅
C. Abstainer
D. Drunkard
228. Choose the correct voice: They had completed the assignment.
A. The assignment has completed.
B. The assignment had been completed. ✅
C. The assignment will be completed.
D. The assignment completed.
229. Spot the error: The cattle is grazing in the field.
A. The
B. cattle ✅
C. is
D. grazing
230. Choose the correct form: If I ___ a bird, I would fly.
A. am
B. were ✅
C. be
D. was
231. Antonym of “Humble”
A. Proud ✅
B. Polite
C. Soft
D. Honest
232. Synonym of “Mischievous”
A. Naughty ✅
B. Quiet
C. Gentle
D. Kind
233. One word for: Someone who writes poems.
A. Poet ✅
B. Writer
C. Dramatist
D. Lyricist
234. Meaning of idiom “Break the ice”
A. To start a conversation ✅
B. To crack something
C. To create trouble
D. To freeze emotions
235. Spot the error: The informations provided were wrong.
A. informations ✅
B. provided
C. were
D. wrong
236. Choose the correct sentence:
A. Everyone are ready.
B. Everyone is ready. ✅
C. Everyone were ready.
D. Everyone be ready.
237. Antonym of “Victory”
A. Win
B. Defeat ✅
C. Success
D. Achievement
238. One word for: A government ruled by a king or queen.
A. Democracy
B. Autocracy
C. Monarchy ✅
D. Theocracy
239. Choose the right tense: I have been working here since 2021.
A. Present perfect
B. Present perfect continuous ✅
C. Simple present
D. Simple past
240. Choose the correct usage: He is afraid ___ dogs.
A. of ✅
B. from
C. about
D. to
241. Spot the error: Neither the chairman nor the directors was present.
A. Neither
B. nor
C. was ✅
D. present
242. One word for: A man who cannot be defeated.
A. Winner
B. Undefeatable
C. Invincible ✅
D. Warrior
243. Synonym of “Delicious”
A. Tasteless
B. Yummy ✅
C. Bitter
D. Rotten
244. Meaning of idiom “On cloud nine”
A. Confused
B. Extremely happy ✅
C. Sleepy
D. Sad
245. Choose the correct voice: Someone is cleaning the room.
A. The room is being cleaned. ✅
B. The room cleaned.
C. The room was being cleaned.
D. The room has cleaned.
246. Antonym of “Clean”
A. Dirty ✅
B. Neat
C. Tidy
D. Dustless
247. One word for: A place where books are kept.
A. Library ✅
B. Bookstore
C. Archive
D. Bookrack
248. Choose the correct spelling:
A. Committment
B. Commitment ✅
C. Commitement
D. Commmitment
249. Choose the correct form: The girl ___ by the teacher.
A. is praised ✅
B. praised
C. praises
D. is praising
250. Meaning of idiom “Give someone a cold shoulder”
A. To ignore someone ✅
B. To hug someone
C. To blame someone
D. To scold someone
250+ Aptitude & Logical Reasoning Questions Asked in Service-Based Companies
Aptitude Questions (150 Questions)
🟢 Easy Level (1–50)
-
Simplify: 25% of 200 + 30% of 300 = ? – Wipro
-
A man can do a job in 20 days. After working 4 days, he is joined by another person who finishes the job in 12 days. How many days would the second person alone take? – TCS
-
12 men can complete a work in 15 days. How many men are required to complete the work in 10 days? – Infosys
-
Find the HCF of 120, 150 and 210 – Capgemini
-
Average of 6 numbers is 35. If one number is removed, average becomes 30. Find the removed number. – Cognizant
-
Selling price of 12 articles = Cost price of 15 articles. Find the profit percent. – Accenture
-
If Simple Interest on Rs. 5000 for 2 years is Rs. 1000, what is the rate of interest? – Wipro
-
A train 120 meters long crosses a pole in 6 seconds. Find its speed. – TCS
-
Shopkeeper allows 10% discount on MRP and gains 10%. Find profit percent on cost price. – Infosys
-
A man covers 1/3 distance at 30 km/h, next 1/3 at 40 km/h, rest at 60 km/h. Find average speed. – Capgemini
-
The average of 4 consecutive even numbers is 35. Find the numbers. – Cognizant
-
The sum of ages of A and B is 45. Five years ago, their ratio was 4:5. Find their ages. – Accenture
-
A is 3 times as fast as B. Together they take 20 days to complete a task. How long will A take alone? – Wipro
-
Find the least number which when divided by 3, 4, 5, 6 leaves remainder 2 but divisible by 7. – TCS
-
A, B and C invested Rs. 12000, Rs. 16000 and Rs. 8000. Total profit is Rs. 28000. Find B’s share. – Infosys
-
A car covers 200 km in 4 hours. What is the average speed? – Capgemini
-
Find the value of x: x/3 + x/4 = 14 – Cognizant
-
A sum of Rs. 10,000 amounts to Rs. 12,100 in 2 years at simple interest. What is the rate? – Accenture
-
A box contains 2 red, 3 green, and 4 blue balls. What is the probability of selecting a green ball? – Infosys
-
Find the missing term in the series: 3, 6, 11, 18, ?, 38 – TCS
-
A train passes a platform in 36 seconds and a pole in 20 seconds. Length of platform is 160 m. Find length of train. – Wipro
-
Two numbers are in the ratio 3:5. Their sum is 80. Find the numbers. – Cognizant
-
A trader mixes 30 kg of rice at Rs. 40/kg with 20 kg of rice at Rs. 30/kg. Find the average price. – Infosys
-
A’s salary is 20% more than B’s. If B earns Rs. 15,000, find A’s salary. – Accenture
-
A boat travels 24 km downstream in 3 hours and returns in 4 hours. Find the speed of the stream. – TCS
-
If A:B = 2:3 and B:C = 4:5, what is A:C? – Capgemini
-
Find the compound interest on Rs. 5000 at 10% per annum for 2 years. – Wipro
-
A person spends 40% of his income on rent, 20% on food and saves the rest. If his income is Rs. 50,000, how much does he save? – Infosys
-
What is the smallest number that is divisible by 6, 8, and 12? – TCS
-
A shopkeeper marked an item 30% above the cost price and gave 10% discount. Find the profit %. – Cognizant
-
A train 180 m long is running at 54 km/h. How long will it take to pass a platform 120 m long? – Accenture
-
A student scores 40%, 50%, 60% in three subjects. What must he score in the fourth to get an average of 55%? – Infosys
-
A sum doubles in 5 years at simple interest. What is the rate? – Capgemini
-
Find the area of a triangle with base 12 cm and height 5 cm. – Wipro
-
If the perimeter of a square is 64 cm, find its area. – TCS
-
A car travels 60 km in 1.5 hours. Find its speed in km/hr. – Cognizant
-
How many 5-digit numbers can be formed using digits 1, 2, 3, 4, 5 without repetition? – Infosys
-
The average of 7 numbers is 50. If two numbers, 40 and 45 are removed, what is the new average? – Accenture
-
Find the next number in the sequence: 5, 11, 23, 47, ? – TCS
-
What is the probability of getting a head in a single toss of a coin? – Wipro
-
A shopkeeper earns a profit of 20% on selling an article at Rs. 240. Find its cost price. – Capgemini
-
A number when divided by 13 leaves remainder 7. What will be the remainder when square of that number is divided by 13? – Infosys
-
Find the angle between hands of a clock at 3:15. – Cognizant
-
The speed of a car is increased by 20%. How much time will it take to cover the same distance? – Accenture
-
A can do a piece of work in 12 days, B in 16 days. In how many days will they complete it together? – TCS
-
A sum becomes Rs. 2642 in 2 years at 5% compound interest. Find the principal. – Wipro
-
A box contains 10 balls numbered 1 to 10. One is drawn at random. What is the probability it is an even number? – Infosys
-
What will be the area of a circle with radius 14 cm? – Capgemini
-
Find the time taken by a 240 m long train running at 72 km/hr to cross a tunnel 360 m long. – Cognizant
-
A student gets 30% marks in one paper and 40% in another. If both papers are of equal marks, what is his overall percentage? – Accenture
🟡 Medium Level (51–100)
-
A shopkeeper gives two successive discounts of 10% and 20%. Find the effective discount. – Wipro
-
A train running at 72 km/h crosses a platform in 30 seconds. If the platform is 300 m long, find the length of train. – TCS
-
A sum amounts to Rs. 6600 in 2 years at compound interest. If the rate is 10% p.a., find the principal. – Infosys
-
A can do a piece of work in 12 days, B in 18 days. They work together for 4 days. Find the remaining work. – Capgemini
-
A mixture contains milk and water in the ratio 5:1. How much water should be added to 30 liters of mixture to change the ratio to 5:2? – Cognizant
-
A tank is filled by a pipe in 4 hours and emptied by a leak in 5 hours. How much time will it take to fill the tank? – Accenture
-
A man invested Rs. 20,000 in a scheme offering compound interest of 8% p.a. Find amount after 3 years. – Wipro
-
A and B can complete a piece of work in 15 and 20 days respectively. B worked alone for 6 days. How many more days will A take to finish the work? – TCS
-
A number is increased by 20% and then decreased by 20%. What is the net effect? – Infosys
-
A sum of money triples in 20 years under simple interest. Find the rate. – Capgemini
-
The area of a rectangle is 96 cm². If the length is twice the breadth, find the dimensions. – Cognizant
-
A man can row 8 km/h in still water. If the river runs at 2 km/h, how far can he row downstream in 1 hour? – Accenture
-
A can do 3/4 of a work in 9 days. How much time will he take to finish the complete work? – Wipro
-
In how many ways can the letters of the word “EXAM” be arranged? – TCS
-
Two angles of a triangle are 45° and 65°. Find the third angle. – Infosys
-
A car travels at 60 km/h for 30 min and 90 km/h for next 30 min. Find the average speed. – Capgemini
-
A sum of Rs. 5000 is lent at SI at 10% p.a. for 3 years. Find the interest. – Cognizant
-
A and B together can complete a task in 12 days. A alone can do it in 20 days. In how many days will B do it alone? – Accenture
-
Find the square root of 1225. – Wipro
-
A discount of 15% on a product reduces its price to Rs. 1700. What is the original price? – TCS
-
A can complete a job in 16 days, B in 12 days. They start together but A leaves after 4 days. Find total time to complete job. – Infosys
-
A train covers a distance in 45 mins at 80 km/h. How much distance is covered? – Capgemini
-
Two numbers are in the ratio 7:9. If the sum is 128, find the numbers. – Cognizant
-
A sum of money is invested at 12% p.a. SI. It amounts to Rs. 6720 in 3 years. Find the principal. – Accenture
-
How many diagonals can be drawn in a hexagon? – Wipro
-
In a triangle, the sum of two angles is 110°. What is the third angle? – TCS
-
A trader bought goods for Rs. 800 and sold it at a loss of 5%. Find the selling price. – Infosys
-
A person spends 3/4th of his income. If he saves Rs. 600, find his income. – Capgemini
-
A train moves at 90 km/h. How much time does it take to cover 135 km? – Cognizant
-
The ratio of length to breadth of a rectangle is 3:2. If perimeter is 100 cm, find dimensions. – Accenture
-
A man invested Rs. 9000 at 10% CI for 2 years. Find the amount. – Wipro
-
Find the average of first 10 natural numbers. – TCS
-
If a:b = 2:3 and b:c = 4:5, find a:c. – Infosys
-
What is the value of 0.25 × 0.4 × 0.2? – Capgemini
-
The LCM of two numbers is 180 and their HCF is 6. If one number is 30, find the other. – Cognizant
-
A train is moving at 36 km/h. Find its speed in m/s. – Accenture
-
A person buys a shirt for Rs. 400 and sells it at a profit of 12%. Find SP. – Wipro
-
A sum of Rs. 6000 is invested at 5% p.a. SI. Find amount after 2 years. – TCS
-
A number when divided by 5 gives remainder 2. What is the remainder when its square is divided by 5? – Infosys
-
A bag contains 6 red and 4 blue balls. Find probability of picking a blue ball. – Capgemini
-
Find cube root of 2197. – Cognizant
-
The average of 6 numbers is 45. If one number is 60, find average of remaining. – Accenture
-
A car travels 240 km in 4 hours. What is its speed in m/s? – Wipro
-
A man spends 60% of his income and saves Rs. 800. Find his income. – TCS
-
Find compound interest on Rs. 8000 at 5% p.a. for 2 years. – Infosys
-
Find the perimeter of a rectangle with length 12 cm and breadth 8 cm. – Capgemini
-
If the sum of angles in a polygon is 1260°, how many sides does it have? – Cognizant
-
The product of two consecutive integers is 132. Find the integers. – Accenture
-
A person can row 18 km downstream in 2 hrs and returns in 3 hrs. Find speed in still water. – Wipro
-
A number is divisible by both 3 and 5. It must be divisible by? – TCS
🔴 Hard Level (101–150)
-
A, B, C can do work in 20, 30, 40 days. A works for 4 days, B for 5. How long for C to finish? – Cognizant
-
Difference between CI and SI on Rs. 8000 at 12.5% for 2 years is Rs. 100. Find rate. – Accenture
-
A cylinder’s radius & height increase by 20% & 30%. Find % increase in volume. – Infosys
-
Marked price is 60% above cost, discount is 25%. What is profit %? – TCS
-
A and B together can complete a job in 12 days. After working for 4 days, B leaves. A finishes the rest in 10 days. How long would B alone take? – Capgemini
-
If the average of five consecutive odd numbers is 45, find the largest number. – Infosys
-
A train passes a man standing on a platform in 10 seconds and a platform in 25 seconds. If platform is 225 m long, find length of train. – Cognizant
-
Find the area of a sector of radius 14 cm and angle 60°. – Accenture
-
A sum of money becomes 4 times in 12 years at simple interest. In how many years will it become 5 times? – TCS
-
In a group of 80 people, 60 can swim, 40 can cycle, and 30 can do both. How many can neither swim nor cycle? – Wipro
-
A solid cube of side 12 cm is melted and cast into smaller cubes of side 3 cm. How many smaller cubes are formed? – Infosys
-
A can do a work in 15 days, B in 20. They work together for 5 days. How much work is left? – Capgemini
-
A mixture of 40 liters contains milk and water in ratio 3:1. How much water should be added to make the ratio 2:1? – Cognizant
-
A man covers a distance at 5 km/h and returns at 4 km/h. Find average speed. – Accenture
-
A shopkeeper allows 10% discount and still earns 20% profit. Find the mark-up %. – TCS
-
A sum is invested for 3 years at 4% CI compounded annually. If it becomes Rs. 3372, find principal. – Wipro
-
If the ratio of angles in a triangle is 2:3:4, find the angles. – Infosys
-
A can do a work in 12 days, B in 15 days. If A works for 4 days and B completes the rest, find total time taken. – Capgemini
-
A number exceeds 5 times itself by 84. Find the number. – Cognizant
-
A tank has 3 inlet pipes. Pipe A fills in 10 mins, B in 15 mins, C in 20 mins. All are opened together. How long to fill tank? – Accenture
-
A train 150 m long passes a man walking at 6 km/h in opposite direction in 6 sec. Find speed of train. – TCS
-
A person borrowed Rs. 10000 at 10% p.a. CI. Find amount after 2 years. – Wipro
-
A circle and square have equal perimeter. Find ratio of their areas. – Infosys
-
A sum of Rs. 6400 amounts to Rs. 8000 in 2 years. Find rate and interest type. – Capgemini
-
Find the number of trailing zeros in 100!. – Cognizant
-
The angle of elevation of a tower from a point on ground is 30°. Find height if distance from base is 50 m. – Accenture
-
Solve: √(x+9) = x – 3. – TCS
-
A train passes a tunnel in 30 sec. Speed is 90 km/h. Tunnel is 300 m long. Find length of train. – Wipro
-
A cylinder has volume 616 cm³ and height 14 cm. Find radius. – Infosys
-
If a:b = 2:3, b:c = 4:5, and c:d = 6:7, find a:d. – Capgemini
-
Two dice are thrown. What is probability of getting sum = 9? – Cognizant
-
A shopkeeper marks an item 50% above cost, gives 20% discount. Find profit %. – Accenture
-
A student scores 75% in 5 subjects, each of 100 marks. Find total marks obtained. – TCS
-
A solid hemisphere is melted and converted into smaller spheres. Find number of spheres formed. – Wipro
-
What is the sum of first 30 even natural numbers? – Infosys
-
Find the minimum number to be added to 6457 to make it divisible by 9. – Capgemini
-
If x + 1/x = 5, find x² + 1/x². – Cognizant
-
Two pipes fill a tank in 12 and 15 mins. A third empties in 20 mins. All open together. Find time to fill tank. – Accenture
-
Simplify: (2³ × 4²) ÷ 8 – TCS
-
A man takes 6 hours to walk 30 km downstream and back. Speed of stream is 2 km/h. Find his speed in still water. – Wipro
-
A bag contains 3 red, 4 green, and 5 blue balls. Find probability of 2 green balls. – Infosys
-
The average age of 30 students is 15 years. If age of teacher is added, average becomes 16. Find teacher’s age. – Capgemini
-
In a group, ratio of men to women is 5:3. If there are 120 people, find men and women. – Cognizant
-
If the length of rectangle increases by 10% and breadth by 20%, find % increase in area. – Accenture
-
Solve for x: 3x + 4 = 19. – TCS
-
Find smallest 5-digit number divisible by 9, 10, 12. – Wipro
-
If sin A = 3/5, find cos A. – Infosys
-
A shopkeeper bought item at Rs. 480 and sold at Rs. 600. Find profit %. – Capgemini
-
A tap fills tank in 10 min. After 3 min, second tap opened, fills in 15 min. When tank full? – Cognizant
-
A number when divided by 7 gives remainder 4. What will be remainder when it is squared and divided by 7? – Accenture
🔹 Logical Reasoning Questions (100 Questions)
🟢 Easy Level (151–180)
-
If BREAK is 21-18-5-1-11, how is SLEEP written? – Wipro
-
Find missing number: 2, 6, 12, 20, ?, 42 – Infosys
-
Monday is 2 days after tomorrow. If today is Wednesday, what is day after tomorrow? – TCS
-
Statement: All teachers are doctors. Some doctors are engineers. Conclusions? – Capgemini
-
Count the triangles in the given diagram (visual puzzle). – Cognizant
-
If in a certain code, GAMES is written as HBNFT, how is CHAIR written? – Infosys
-
What comes next: ACE, BDF, CEG, ? – TCS
-
Find the odd one out: Apple, Orange, Mango, Carrot – Wipro
-
If CLOCK = 31735, what is the code for WATCH? – Capgemini
-
Which number comes next: 3, 9, 27, 81, ? – Cognizant
-
If CAT = 3120, DOG = 4157, what is the code for COW? – TCS
-
Which diagram correctly represents Tigers, Animals, Carnivores? – Wipro
-
Statements: All flowers are trees. Some trees are bushes. Conclusions? – Infosys
-
Fill in the blanks: AZ, BY, CX, ?, EV – Capgemini
-
A is B’s brother. C is B’s father. D is C’s father. How is D related to A? – Cognizant
-
If 1 = 5, 2 = 25, 3 = 325, then 4 = ? – Accenture
-
Find the odd number: 121, 144, 169, 196, 250 – Wipro
-
Choose the word which is different from others: Car, Bus, Train, Bicycle, Boat – Infosys
-
Which direction is opposite to Southeast? – Capgemini
-
If ROPE is coded as 6821, CHAIR is 73456, then PRICE = ? – Cognizant
-
If A walks East for 5 km, then turns North and walks 3 km, where is he now? – TCS
-
Pointing to a person, he said, “His only brother is my son’s father.” How is that person related? – Wipro
-
In a certain code, STATION is written as NOITATS. How is TRAIN written? – Infosys
-
Which one does not belong: Pen, Pencil, Eraser, Chalk, Book – Capgemini
-
Select the missing number: 4, 9, 16, 25, ? – Cognizant
-
If A is coded as Z, B as Y, then how is CAT coded? – TCS
-
Find missing term: 5, 10, 20, 40, ?, 160 – Wipro
-
Arrange logically: Child, Adult, Infant, Adolescent, Old – Infosys
-
Which figure comes next in sequence (series-based puzzle)? – Capgemini
-
If all vowels are removed from “EDUCATION”, how many letters remain? – Cognizant
🟡 Medium Level (181–215)
-
Code: PENCIL → LICNEP. How is BRUSH written? – Capgemini
-
351 = “good and tasty”, 672 = “see good pictures”, 298 = “pictures are fine”. Code for “good”? – Cognizant
-
Statement: Some mobiles are computers. All computers are devices. Conclusion? – Infosys
-
Puzzle: 5 friends A, B, C, D, E live in a row of houses… (logic puzzle). – Wipro
-
Which number replaces question mark: 7, 14, 28, 56, ?, 224 – TCS
-
What comes next in series: AA, AB, AC, AD, ? – Infosys
-
Logical Puzzle: Two people start from opposite ends, walk towards each other… who reaches first? – Capgemini
-
Odd one: Triangle, Circle, Rectangle, Square, Sphere – Cognizant
-
In a certain language, DOOR = EPPQ, then FLOOR = ? – Wipro
-
Statement: All books are pens. Some pens are pencils. Conclusion? – Infosys
-
Complete the series: 3, 6, 11, 18, 27, ? – Infosys
-
What is the odd one out: Tiger, Elephant, Cheetah, Lion, Deer – Capgemini
-
A man is facing north, turns 90° left, then 180° right. Which direction now? – TCS
-
Code: FISH = GJTI, then BIRD = ? – Cognizant
-
Arrange: Spoon, Plate, Stove, Kitchen, Dining – Wipro
-
If SUM = 637, and FUN = 547, then MUM = ? – Infosys
-
Statements: All poets are writers. No writer is reader. Conclusion? – Capgemini
-
A is taller than B. B is taller than C. Who is shortest? – Cognizant
-
If TREE = USFF, then LEAF = ? – TCS
-
Puzzle: A is to the left of B, C is to the right of B. Who is in the middle? – Wipro
-
Which number replaces ?: 1, 4, 9, 16, 25, ? – Infosys
-
Which word doesn’t belong: Cycle, Car, Scooter, Tyre, Bus – Capgemini
-
Find missing letter: AZ, BY, CX, DW, ? – Cognizant
-
If DOG = 4157 and CAT = 3120, what is GOAT? – TCS
-
Statement: Some shoes are leather. All leather is black. Conclusion? – Wipro
-
What comes next: 1, 1, 2, 3, 5, 8, 13, ? – Infosys
-
A is the son of B. B is the father of C. How is A related to C? – Capgemini
-
Coding: PEACE = QFBDC, then WAR = ? – Cognizant
-
Count number of rectangles in the figure (puzzle). – TCS
-
Blood relation: “That man is my father’s only daughter’s husband.” Who is he? – Wipro
-
If 2x + 3 = 11, find x. – Infosys
-
Find the missing term: 10, 20, 40, 80, ?, 320 – Capgemini
-
A series puzzle: 24, 20, 16, 12, ?, 4 – Cognizant
-
Choose correct Venn diagram: Fruits, Mangoes, Apples – TCS
-
Direction: Ram walks east 5 km, turns left, walks 3 km, again left 5 km. How far is he from start? – Wipro
🔴 Hard Level (216–250)
-
A man walks 3 km north, 4 km east, then 5 km south. How far from start? – Infosys
-
“She is daughter of only son of my grandfather.” How is she related to me? – Wipro
-
If 5 + 3 × 2 = 11, and 4 + 4 × 2 = 12, what does 6 + 2 × 3 = ? – TCS
-
5 persons sitting around table. A is left of B, B is opposite C… Who is right of D? – Capgemini
-
Complex Puzzle: 6 people live in 6 different floors, each likes different fruit… – Cognizant
-
Number series: 2, 4, 12, 48, ?, 1440 – Wipro
-
If STAR = 1234, MOON = 5677, what is MOONSTAR? – Infosys
-
Blood relation puzzle involving 4 generations. – Capgemini
-
Coding-decoding: If LION = 5312, TIGER = 76859, find code for TIGERLION. – Cognizant
-
Direction-based: Person walks North, turns right, then left… Final position? – TCS
-
Who is sitting 3rd to the right of A if 5 persons sit around a circular table? – Wipro
-
Series: 5, 11, 23, 47, ?, 191 – Infosys
-
Code: FRUIT = HSWKV, then GRAPE = ? – Capgemini
-
Puzzle: A, B, C are siblings. A is older than B but younger than C. Who is youngest? – Cognizant
-
Direction: A walks 4 km North, 3 km East, 4 km South. Distance from start? – TCS
-
What comes next: 8, 24, 12, 36, 18, ? – Wipro
-
If COLD = DPME, then HEAT = ? – Infosys
-
Which word is odd: Table, Chair, Sofa, Bench, Bed, Fan – Capgemini
-
Code: BOY = 23125, GIRL = 75869, then BIG = ? – Cognizant
-
Puzzle: 3 people have different pets, live on different floors… who owns the cat? – TCS
-
Logical series: 121, 144, 169, 196, ? – Wipro
-
If MANGO = 13114157, then GO = ? – Infosys
-
Blood relation: “The only daughter-in-law of my grandmother” – who is she? – Capgemini
-
Direction: Facing west, turn 270° clockwise. Facing which direction now? – Cognizant
-
Missing term: 4, 5, 9, 14, 23, ? – TCS
-
Venn diagram puzzle: Nurses, Women, Professionals – Wipro
-
If ACE = 135, BDF = ? – Infosys
-
Logic puzzle: 5 people live in 5 houses with different colors, pets, etc. Who owns parrot? – Capgemini
-
Number puzzle: Multiply first and last digits of 3274. What is the product? – Cognizant
-
What is next in sequence: 1, 4, 9, 16, 25, 36, ? – TCS
-
Puzzle: Which cube will form from this unfolded image? – Wipro
-
Series: 100, 96, 88, 76, ?, 40 – Infosys
-
If TOM = 28613, then CAT = ? – Capgemini
-
Logical reasoning: Which shape fits best to complete the pattern? – Cognizant
-
A family has a father, mother, 4 sons. Each son has 3 sisters. How many members in the family? – TCS
200+ Coding Questions Asked in Service-Based Companies – The Ultimate Practice List
How to Use This List
-
Don’t aim to finish all 200 in one week.
-
Pick 2–3 per day and focus on understanding the logic.
-
Use any language you’re comfortable with.
-
Start from Easy → Medium → Interview level.
🔹 Arrays (25 Questions)
-
Two Sum – TCS
-
Best Time to Buy and Sell Stock – Wipro
-
Contains Duplicate – Infosys
-
Product of Array Except Self – Capgemini
-
Maximum Subarray – Cognizant
-
Maximum Product Subarray – Infosys
-
3Sum – Capgemini
-
Container With Most Water – Infosys
-
Majority Element – Cognizant
-
Rotate Array – Wipro
-
Spiral Matrix – Infosys
-
Set Matrix Zeroes – Capgemini
-
Pascal’s Triangle – TCS
-
Kth Largest Element in an Array – Infosys
-
Merge Intervals – Wipro
-
Insert Interval – Cognizant
-
Summary Ranges – Infosys
-
Missing Number – Capgemini
-
Find the Duplicate Number – Wipro
-
Move Zeroes – Infosys
-
Find All Numbers Disappeared in an Array – Capgemini
-
Maximum Average Subarray I – Cognizant
🔹 Strings (25 Questions)
-
Valid Anagram – Infosys
-
Longest Common Prefix – TCS
-
Implement strStr() – Wipro
-
Reverse String – Capgemini
-
Reverse Words in a String – Cognizant
-
String Compression – Infosys
-
Is Subsequence – Wipro
-
Group Anagrams – TCS
-
Valid Palindrome – Capgemini
-
Longest Palindromic Substring – Infosys
-
Count and Say – Cognizant
-
Add Binary – Infosys
-
Multiply Strings – TCS
-
Minimum Window Substring – Capgemini
-
Zigzag Conversion – Cognizant
-
Roman to Integer – Infosys
-
Integer to Roman – Wipro
-
String to Integer (atoi) – TCS
-
Length of Last Word – Capgemini
-
Check If Two String Arrays are Equivalent – Cognizant
-
Valid Parentheses – Wipro
-
Remove All Adjacent Duplicates In String – Infosys
-
Reverse Vowels of a String – Capgemini
🔹 Linked Lists (25 Questions)
-
Reverse Linked List – TCS
-
Merge Two Sorted Lists – Infosys
-
Remove Nth Node From End of List – Wipro
-
Linked List Cycle – Capgemini
-
Palindrome Linked List – Cognizant
-
Intersection of Two Linked Lists – Infosys
-
Add Two Numbers – Wipro
-
Copy List with Random Pointer – Capgemini
-
Swap Nodes in Pairs – Cognizant
-
Rotate List – Infosys
-
Remove Linked List Elements – Wipro
-
Odd Even Linked List – Capgemini
-
Reverse Nodes in k-Group – Cognizant
-
Partition List – Infosys
-
Sort List – TCS
-
Merge k Sorted Lists – Capgemini
-
Split Linked List in Parts – Cognizant
-
Next Greater Node In Linked List – Infosys
-
Linked List Cycle II – Wipro
-
Design Linked List – TCS
-
Middle of the Linked List – Capgemini
-
Remove Duplicates from Sorted List II – Cognizant
🔹 Trees (25 Questions)
-
Same Tree – Infosys
-
Invert Binary Tree – Wipro
-
Binary Tree Level Order Traversal – Capgemini
-
Symmetric Tree – Cognizant
-
Balanced Binary Tree – Infosys
-
Path Sum – Wipro
-
Maximum Path Sum – TCS
-
Construct Binary Tree from Preorder and Inorder Traversal – Capgemini
-
Validate Binary Search Tree – Cognizant
-
Lowest Common Ancestor of a Binary Tree – Infosys
-
Binary Tree Right Side View – Wipro
-
Convert Sorted Array to Binary Search Tree – Capgemini
-
Sum of Left Leaves – Cognizant
-
Binary Tree Inorder Traversal – Infosys
-
Find Duplicate Subtrees – Capgemini
-
Sum Root to Leaf Numbers – Cognizant
-
Recover Binary Search Tree – Infosys
-
Binary Search Tree Iterator – Wipro
-
Flatten Binary Tree to Linked List – Capgemini
-
Kth Smallest Element in a BST – Cognizant
🔹 Recursion & Backtracking (15 Questions)
-
Permutations – TCS
-
Combinations – Wipro
-
Subsets – Infosys
-
Letter Combinations of a Phone Number – Capgemini
-
Combination Sum – Cognizant
-
Generate Parentheses – Infosys
-
Word Search – Wipro
-
Sudoku Solver – TCS
-
N-Queens – Capgemini
-
Palindrome Partitioning – Cognizant
-
Permutations II – Infosys
-
Combination Sum II – Wipro
-
Subsets II – TCS
-
Restore IP Addresses – Capgemini
-
Expression Add Operators – Cognizant
🔹 Stack & Queue (15 Questions)
-
Valid Parentheses – TCS
-
Min Stack – Wipro
-
Evaluate Reverse Polish Notation – Infosys
-
Implement Queue using Stacks – Capgemini
-
Implement Stack using Queues – Cognizant
-
Daily Temperatures – Infosys
-
Next Greater Element I – Wipro
-
Next Greater Element II – TCS
-
Remove All Adjacent Duplicates In String II – Capgemini
-
Design Circular Queue – Cognizant
-
Sliding Window Maximum – Infosys
-
Decode String – Wipro
-
Number of Recent Calls – Capgemini
-
Simplify Path – Cognizant
🔹 Graphs (15 Questions)
-
Number of Islands – TCS
-
Clone Graph – Infosys
-
Course Schedule – Wipro
-
Course Schedule II – Capgemini
-
Graph Valid Tree – Cognizant
-
Pacific Atlantic Water Flow – Infosys
-
Redundant Connection – Wipro
-
Network Delay Time – TCS
-
Is Graph Bipartite? – Capgemini
-
Word Ladder – Cognizant
-
Reconstruct Itinerary – Infosys
-
Find the Town Judge – Wipro
-
Minimum Height Trees – Capgemini
-
Critical Connections in a Network – Cognizant
🔹 Dynamic Programming (15 Questions)
-
Climbing Stairs – TCS
-
House Robber – Infosys
-
House Robber II – Wipro
-
Longest Palindromic Subsequence – Capgemini
-
Decode Ways – Cognizant
-
Maximum Subarray – Infosys
-
Partition Equal Subset Sum – Wipro
-
Coin Change – TCS
-
Longest Increasing Subsequence – Capgemini
-
Edit Distance – Cognizant
-
Interleaving String – Infosys
-
Target Sum – Wipro
-
Distinct Subsequences – Capgemini
-
Word Break – Cognizant
🔹 Bit Manipulation (10 Questions)
-
Single Number – Infosys
-
Number of 1 Bits – Wipro
-
Counting Bits – TCS
-
Missing Number – Capgemini
-
Sum of Two Integers – Cognizant
-
Reverse Bits – Infosys
-
Power of Two – Wipro
-
Hamming Distance – TCS
-
Bitwise AND of Numbers Range – Capgemini
-
Binary Watch – Cognizant
🔹 Interview Must-Solve (30 Questions)
-
LRU Cache – TCS
-
Median of Two Sorted Arrays – Infosys
-
Merge Intervals – Wipro
-
Trapping Rain Water – Capgemini
-
Longest Consecutive Sequence – Cognizant
-
Word Ladder II – Infosys
-
Basic Calculator – Wipro
-
Sliding Window Maximum – Capgemini
-
Regular Expression Matching – Cognizant
-
Wildcard Matching – Infosys
-
Minimum Window Substring – Wipro
-
Palindrome Pairs – Capgemini
-
Design Add and Search Words Data Structure – Cognizant
-
LFU Cache – Infosys
-
Find Peak Element – Capgemini
-
Basic Calculator II – Cognizant
-
Insert Delete GetRandom O(1) – Infosys
-
Maximal Rectangle – Wipro
-
Binary Tree Cameras – Capgemini
-
Paint House – Cognizant
-
Serialize and Deserialize BST – Infosys
-
Number of Digit One – Wipro
-
Dungeon Game – TCS
-
Burst Balloons – Capgemini
-
Minimum Number of Refueling Stops – Cognizant
Top 150 Questions Actually Asked in Service-Based Company Exams (2023–2025)
1. Aptitude Questions (30)
Companies: TCS, Wipro, Capgemini, Infosys
-
What is the compound interest on ₹12,000 at 10% per annum for 2 years? (TCS – 2023)
-
A train 150 meters long is running at 60 km/h. How long will it take to pass a platform of 100 meters? (Wipro – 2024)
-
If the ratio of boys to girls in a class is 5:3 and there are 40 students, how many girls are there? (Capgemini – 2023)
-
What is the average of first 10 natural numbers? (Infosys – 2024)
-
A shopkeeper sells an item for ₹600 and makes a 20% profit. What is the cost price? (HCL – 2025)
-
A and B together can complete a job in 8 days. B alone can do it in 12 days. How long will A alone take? (TCS – 2024)
-
What is the simple interest on ₹5,000 at 8% for 3 years? (Cognizant – 2023)
-
The area of a rectangle is 120 cm² and the length is 12 cm. Find the breadth. (Infosys – 2023)
-
A man spends 80% of his income. If he saves ₹2,000, what is his income? (Capgemini – 2024)
-
Find the value of x: 3x + 7 = 22. (Wipro – 2023)
-
A sum doubles in 5 years at simple interest. What is the rate of interest? (Accenture – 2023)
-
A person travels from A to B at 60 km/h and returns at 40 km/h. Find the average speed. (HCL – 2024)
-
If 5x – 3 = 2x + 9, what is x? (IBM – 2025)
-
Two numbers are in the ratio 3:4. If their sum is 112, find the numbers. (TCS – 2024)
-
What is the HCF of 36 and 48? (Wipro – 2023)
-
A boat covers 30 km upstream in 6 hours and the same distance downstream in 3 hours. Find the speed of the boat in still water. (Capgemini – 2024)
-
The population of a town increases by 10% every year. If it is 10,000 now, what will it be after 2 years? (Infosys – 2023)
-
A can do a piece of work in 10 days, B in 15 days. In how many days will they complete it together? (Accenture – 2024)
-
A dealer marks a product 20% above cost and gives 10% discount. What is his profit percentage? (HCL – 2023)
-
Find the least number which is exactly divisible by 6, 8, and 12. (IBM – 2024)
-
If x + y = 10 and xy = 21, find x² + y². (TCS – 2023)
-
A shopkeeper gives 10% discount on a product of ₹500. What is the selling price? (Wipro – 2023)
-
A sum amounts to ₹8,000 in 2 years at 10% p.a. compound interest. Find the principal. (Capgemini – 2024)
-
A and B share profits in the ratio 5:3. If the total profit is ₹4,000, how much does B get? (Infosys – 2023)
-
If the perimeter of a square is 48 cm, find its area. (Accenture – 2025)
-
A number is divisible by both 3 and 4. Is it divisible by 12? (TCS – 2023)
-
A fruit seller mixes two types of apples costing ₹40 and ₹50 per kg. If he sells the mixture at ₹48/kg and gains 20%, in what ratio did he mix them? (HCL – 2024)
-
If x = 2 and y = 3, find the value of 2x² + 3y². (Wipro – 2024)
-
A bag contains 3 red balls and 2 green balls. One ball is drawn at random. What is the probability that it is red? (Infosys – 2024)
-
A cube has a volume of 64 cm³. Find its surface area. (Cognizant – 2023)
2. Logical Reasoning Questions (30)
Companies: Infosys, Wipro, Accenture, IBM, Cognizant
-
If ‘APPLE’ is coded as ‘EQQPI’, what is the code for ‘BANANA’? (Infosys – 2024)
-
Find the next number in the series: 2, 6, 12, 20, ? (Wipro – 2023)
-
Which diagram represents the relationship among Doctor, Teacher, Human? (Accenture – 2024)
-
If A = 1, B = 2, …, Z = 26, then what is the value of the word ‘CARE’? (IBM – 2023)
-
Arrange the words in alphabetical order and choose the one that comes first: Zebra, Apple, Mango, Banana (Cognizant – 2025)
-
A is taller than B but shorter than C. D is shorter than A. Who is the tallest? (Wipro – 2024)
-
Find the odd one out: Circle, Square, Triangle, Rectangle (Infosys – 2023)
-
If ‘TOY’ is written as ‘VOA’, how is ‘CAR’ written? (Accenture – 2023)
-
Find the missing number: 3, 9, 27, ?, 243 (IBM – 2025)
-
Which number replaces the question mark: 4, 9, 16, 25, ? (Cognizant – 2024)
-
Choose the correct mirror image of ‘MOTEL’. (Wipro – 2023)
-
All pens are books. All books are papers. Conclusion: All pens are papers. Is it correct? (Infosys – 2024)
-
How many triangles are there in a pentagon if all diagonals are drawn? (Accenture – 2025)
-
Ramu is facing south. He turns 90° left, then 180° right, and finally 90° right. What direction is he facing? (IBM – 2023)
-
Statement: Some cats are dogs. All dogs are rats. Conclusion: Some cats are rats. Is it valid? (Cognizant – 2024)
-
Identify the pattern: AZ, BY, CX, ? (Infosys – 2023)
-
What comes next: ACE, BDF, ? (Wipro – 2024)
-
Choose the odd one: 2, 3, 5, 7, 8, 11 (Accenture – 2023)
-
A clock shows 3:15. What is the angle between hour and minute hands? (TCS – 2024)
-
Pointing to a woman, John said, “She is the daughter of my grandfather’s only son.” Who is the woman? (IBM – 2023)
-
Which one is different: Dog, Lion, Tiger, Elephant (Capgemini – 2025)
-
If Monday falls on 1st, what day will be on 15th? (Infosys – 2023)
-
What will be the next term: 0, 1, 1, 2, 3, 5, 8, ? (Wipro – 2023)
-
Unscramble the word: “LEPPA” (Cognizant – 2024)
-
Choose the best fit: Boat is to water as Car is to ? (Accenture – 2025)
-
If ‘flower’ is related to ‘petal’, then ‘book’ is related to ? (Infosys – 2024)
-
Complete the analogy: Pen : Write :: Knife : ? (TCS – 2024)
-
Which shape is symmetrical among the following: Circle, Trapezium, Triangle, Rectangle (IBM – 2023)
-
Choose the best match: Sky : Blue :: Grass : ? (Wipro – 2023)
-
How many squares are in a 4×4 grid? (Capgemini – 2025)
3. Verbal Ability Questions (30)
Companies: Infosys, Capgemini, Cognizant, Wipro, Accenture
-
Choose the correct synonym for ‘Obsolete’. (Infosys – 2024)
-
Fill in the blank: She ___ to the market every morning. (Wipro – 2023)
-
Find the antonym of ‘Generous’. (Capgemini – 2024)
-
Choose the correctly spelled word: a) Recieve b) Receive c) Receeve d) Recive (Accenture – 2023)
-
Identify the error in the sentence: “Each of the boys have done their homework.” (Infosys – 2023)
-
Choose the best replacement for the underlined phrase: “He did not took the offer.” (Wipro – 2024)
-
Change to passive voice: “The manager will review the report.” (Capgemini – 2025)
-
Identify the correct indirect speech: He said, “I am working on a project.” (Accenture – 2024)
-
What is the plural form of ‘Crisis’? (IBM – 2025)
-
Choose the best word: She is ___ than her sister. (Infosys – 2024)
-
Spot the error: “Neither the teacher nor the students was present.” (Wipro – 2023)
-
Choose the correct sentence: a) He don’t like coffee. b) He doesn’t like coffee. (Capgemini – 2024)
-
Choose the correct preposition: He was accused ___ theft. (Accenture – 2023)
-
What is the meaning of the idiom: “Break the ice”? (Infosys – 2023)
-
Fill in the blank: He is good ___ mathematics. (Cognizant – 2024)
-
Choose the word closest in meaning to ‘Diligent’. (Wipro – 2024)
-
Choose the correct word: He lost his ___ of keys. (Capgemini – 2025)
-
What is the superlative form of ‘Good’? (Accenture – 2024)
-
Identify the sentence type: “Please open the door.” (Infosys – 2024)
-
Fill in the blank: She was born ___ a rich family. (TCS – 2023)
-
Choose the correct conjunction: I will wait ___ he comes. (Wipro – 2023)
-
Replace the underlined word with its opposite: “This is a very old machine.” (Capgemini – 2024)
-
Choose the best option: The train will arrive ___ 5 p.m. (Accenture – 2025)
-
What is the correct form of the verb: He ___ to school yesterday. (Infosys – 2023)
-
Choose the correct relative pronoun: The boy ___ won the race is my cousin. (Cognizant – 2024)
-
What does the phrase ‘kick the bucket’ mean? (Wipro – 2024)
-
Select the correct article: He is ___ honest man. (Capgemini – 2025)
-
Choose the correct homophone: Their/There/They’re going to the market. (Infosys – 2024)
-
Which of the following is a noun: a) Run b) Red c) Book d) Slowly (IBM – 2025)
-
Choose the correct prefix to make a negative: ___possible (TCS – 2024)
4. Coding Questions (30)
Companies: TCS, Wipro, Infosys, Accenture, Capgemini
-
Write a program to reverse a string in Python. (TCS – 2023)
-
Write a program to check if a number is a palindrome. (Infosys – 2024)
-
Write a function to compute the factorial of a number using recursion. (Wipro – 2023)
-
Find the missing number in an array containing 1 to n with one missing element. (Capgemini – 2024)
-
Check whether a string is a valid anagram of another. (Accenture – 2024)
-
Implement bubble sort algorithm in C. (Infosys – 2023)
-
Convert a binary number to decimal. (TCS – 2024)
-
Write a program to print Fibonacci series up to n terms. (Wipro – 2024)
-
Find the second largest element in an array. (Capgemini – 2023)
-
Count vowels in a given string. (Accenture – 2023)
-
Check if a number is prime. (Infosys – 2025)
-
Program to check Armstrong number. (TCS – 2023)
-
Find GCD of two numbers. (Wipro – 2023)
-
Write a function to calculate power without using math.pow(). (Capgemini – 2024)
-
Reverse a linked list (singly). (Accenture – 2024)
-
Implement binary search in an array. (Infosys – 2024)
-
Detect a loop in a linked list. (TCS – 2025)
-
Find the length of the longest substring without repeating characters. (Wipro – 2024)
-
Check if a number is a power of two. (Capgemini – 2023)
-
Merge two sorted arrays. (Accenture – 2023)
-
Write code to find LCM of two numbers. (Infosys – 2023)
-
Implement stack using two queues. (TCS – 2024)
-
Check if a string is a valid palindrome ignoring special characters. (Wipro – 2023)
-
Write a program to count frequency of elements in an array. (Capgemini – 2025)
-
Convert a string to title case. (Accenture – 2025)
-
Rotate an array to the right by k steps. (Infosys – 2024)
-
Check balanced parentheses in an expression. (TCS – 2023)
-
Implement a queue using a stack. (Wipro – 2024)
-
Find the missing and repeating numbers in an array of size n. (Capgemini – 2024)
-
Write a program to find the maximum subarray sum (Kadane’s Algorithm). (Accenture – 2024)
5. Interview Questions (30)
Companies: TCS, Wipro, Infosys, Capgemini, Accenture, HCL, IBM
-
Tell me about yourself. (Common – 2023 to 2025)
-
What are your strengths and weaknesses? (Infosys – 2023)
-
Describe a challenging situation and how you handled it. (Accenture – 2024)
-
Why do you want to join our company? (IBM – 2025)
-
Explain the difference between final, finally, and finalize in Java. (TCS – 2024)
-
What is your understanding of OOPs concepts? (Wipro – 2023)
-
Explain a project you’ve worked on and your role in it. (Capgemini – 2023)
-
How do you stay updated with new technologies? (HCL – 2024)
-
What is your approach to solving coding problems? (Infosys – 2024)
-
Why should we hire you? (TCS – 2025)
-
What are your career goals for the next five years? (IBM – 2024)
-
How do you manage your time during multiple deadlines? (Accenture – 2023)
-
Have you faced any conflicts in a team? How did you resolve them? (Wipro – 2023)
-
What is a primary key and a foreign key in databases? (Capgemini – 2024)
-
How would you explain cloud computing to a non-technical person? (Infosys – 2025)
-
What is the difference between overloading and overriding? (HCL – 2023)
-
Describe SDLC and Agile methodology. (IBM – 2023)
-
What is normalization in databases? (TCS – 2024)
-
How would you debug a program that’s not working? (Cognizant – 2023)
-
What is your preferred programming language and why? (Accenture – 2025)
-
What is garbage collection in Java? (Wipro – 2023)
-
Can you explain the MVC architecture? (Capgemini – 2025)
-
What is the difference between == and equals() in Java? (Infosys – 2024)
-
How would you explain APIs to someone with no tech background? (IBM – 2025)
-
What motivates you to do better each day? (TCS – 2024)
-
How do you handle failure or rejection? (HCL – 2024)
-
Have you worked with Git or version control systems? (Accenture – 2023)
-
Explain one data structure and where you used it. (Wipro – 2024)
-
Do you have any questions for us? (Common – All Companies)
150. What is your expected salary and are you open to relocation? (Capgemini – 2024)