← Back to All Interview Preparation Guides
Enterprise IT Recruitment

Infosys, Wipro & Cognizant Interview Guides (2026)

Targeted interview preparation guides for India's premier IT service companies. Covering online exam formats, 30+ technical questions across OOP, SQL, and algorithms, and proven model answers.

INF

Infosys Technical & HR Interview Guide

10 Comprehensive Interview Scenarios & Solutions

Infosys focuses heavily on strong fundamentals in Object-Oriented Programming, Database Management Systems, and memory models. Specialist Programmer and Digital Specialist Engineer tracks test advanced dynamic programming and graph algorithms on HackerEarth.

Q1.What is the recruitment process for Infosys (SE, DSE, and SP roles)?

  • •1. Online Assessment: Section 1 covers Reasoning Ability (15 Qs, 25 mins), Technical Ability/Math (10 Qs, 35 mins), and Verbal Ability (20 Qs, 20 mins). For Specialist Programmer (SP) and Digital Specialist Engineer (DSE) tracks, candidates take a dedicated 3-question hands-on coding assessment on HackerEarth testing dynamic programming, graphs, and greedy algorithms.
  • •2. Technical Interview (30-45 mins): Evaluates resume projects, OOPs concepts in Java/Python, database queries (normalization, indexing, joins), and live code tracing.
  • •3. HR Interview (15-20 mins): Evaluates willingness to relocate to development centers (Mysore, Bengaluru, Pune, Hyderabad, Chennai), rotational shift flexibility, and communication clarity.

Q2.Explain the difference between C++ and Java memory management and execution.

  • •Platform Independence: Java source compiles to platform-independent bytecode (.class) executed on the Java Virtual Machine (JVM). C++ compiles directly into architecture-specific machine code binaries.
  • •Memory Allocation: C++ requires manual allocation (`new`) and deallocation (`delete`). Omitting deallocation produces memory leaks. Java manages heap allocations automatically via the Garbage Collector (GC), tracking unreferenced objects from root sets.
  • •Pointers & Safety: C++ allows direct pointer arithmetic, which is powerful but vulnerable to segmentation faults and buffer overflows. Java completely abstracts direct pointer manipulation for type safety.

Q3.Write an SQL query to fetch the second highest salary without using LIMIT or TOP.

  • •Standard Subquery Approach: `SELECT MAX(salary) FROM Employee WHERE salary < (SELECT MAX(salary) FROM Employee);`
  • •Correlated Subquery Approach: `SELECT salary FROM Employee e1 WHERE 2 = (SELECT COUNT(DISTINCT salary) FROM Employee e2 WHERE e2.salary >= e1.salary);`
  • •Window Function (Modern SQL): `WITH Ranked AS (SELECT salary, DENSE_RANK() OVER (ORDER BY salary DESC) as rank_num FROM Employee) SELECT salary FROM Ranked WHERE rank_num = 2;`

Q4.What is polymorphism? Explain Compile-time vs Runtime Polymorphism with code examples.

  • •Polymorphism allows objects to take multiple forms and execute appropriate behavior based on invocation context.
  • •Compile-time (Static) Polymorphism: Achieved via Method Overloading or Operator Overloading. Resolved by the compiler during code translation based on parameter signatures.
  • •Runtime (Dynamic) Polymorphism: Achieved via Method Overriding. A subclass provides an overridden implementation of a parent method. Resolved dynamically by the JVM at runtime via virtual method tables (vtable).

Q5.Why do you want to join Infosys as a fresher or lateral engineer?

  • •Mention Infosys's industry-leading Global Education Center in Mysore, recognized as the world's largest corporate university for structured foundation engineering training.
  • •Highlight career advancement initiatives such as the Bridge Program, allowing engineers to transition internally into specialized roles like Cloud Architect, Data Scientist, or Full-Stack Specialist.
  • •Express enthusiasm for delivering enterprise-scale solutions across Fortune 500 client accounts in financial services, retail, and healthcare.

Q6.Explain the String pool and why String is immutable in Java.

  • •The String Constant Pool (SCP) is a special memory region inside the Java Heap. When a String literal is created (`String s = "Infosys"`), the JVM checks the pool: if it exists, it returns the reference; if not, it instantiates it in the pool.
  • •Security: Strings are heavily used for network sockets, database connection URLs, and file paths. Immutability prevents malicious tampering with sensitive connection strings.
  • •Thread Safety: Because String state cannot change once allocated, String objects are inherently thread-safe across concurrent execution threads without synchronization locks.
  • •Hashcode Caching: Immutability enables caching the hashcode at creation, making Strings optimal keys in HashMaps.

Q7.What are database ACID properties and how do they prevent dirty reads?

  • •Atomicity: All operations in a transaction succeed, or the entire transaction aborts and rolls back completely.
  • •Consistency: Transactions must transition the database from one valid integrity state to another, obeying foreign key and check constraints.
  • •Isolation: Uncommitted transactions remain invisible to concurrent transactions. Isolation levels (Read Committed, Repeatable Read, Serializable) prevent dirty reads (reading uncommitted data that might subsequently roll back).
  • •Durability: Once a transaction commits, its modifications persist permanently in non-volatile storage, surviving power failures.

Q8.Reverse a string without using built-in reverse functions in your preferred language.

  • •Two-Pointer In-Place Algorithm (Python):
  • •`def reverse_string(s: str) -> str:`
  • •` chars = list(s); left, right = 0, len(chars) - 1`
  • •` while left < right:`
  • •` chars[left], chars[right] = chars[right], chars[left]`
  • •` left += 1; right -= 1`
  • •` return "".join(chars)`
  • •Time complexity is O(N) single-pass; space complexity is O(N) to accommodate array mutation in languages with immutable strings.

Q9.What is the difference between an Abstract Class and an Interface in Java 8+?

  • •Abstract classes can maintain instance state (fields), constructors, and package-private methods, and support single inheritance hierarchy.
  • •Interfaces define a public API contract. Since Java 8, interfaces permit `default` and `static` method implementations. Since Java 9, they permit `private` helper methods.
  • •A class can implement multiple interfaces, achieving multiple interface inheritance, but can extend only one abstract parent class.

Q10.How do you handle difficult production bugs or technical blockers in your project?

  • •1. Isolate the issue: Reproduce the failure in a staging environment and review application and system error logs.
  • •2. Binary search the codebase: Use Git bisect or trace execution stacks to identify the exact commit or method introducing the regression.
  • •3. Formulate hypotheses: Formulate test cases to prove or disprove potential root causes before modifying code.
  • •4. Consult documentation and peers: If blocked for more than 2 hours, summarize findings, what has been ruled out, and consult senior engineers or official technical documentation.
WIP

Wipro Elite NLTH & Turbo Technical Guide

10 Comprehensive Interview Scenarios & Solutions

Wipro's Elite NLTH process evaluates candidates on logical reasoning, business essay writing, and core programming constructs. Turbo tracks test intermediate data structures, memory leak triage in JVM vs C++, and query optimization.

Q1.What is the recruitment structure for Wipro Elite NLTH and Turbo tracks?

  • •1. Online Assessment: Aptitude Test (Quantitative, Logical, Verbal), Written Communication Test (20-minute business essay on a workplace scenario), and Online Programming Test (2 coding problems on AMCAT platform testing strings, arrays, and basic maths).
  • •2. Turbo Upgrade Assessment: High-scoring Elite candidates are invited to the Turbo challenge (6.5 LPA) featuring advanced data structures and dynamic programming.
  • •3. Technical Interview (30 mins): Focuses on Core Java / C++, DBMS queries, OOP principles, and final-year academic project architecture.
  • •4. HR Interview (15 mins): Verifies communication skills, documents, background clearance, and service agreement consent.

Q2.What is a memory leak, how does it occur in Java, and how do you diagnose it?

  • •A memory leak occurs when an application retains references to objects that are no longer needed, preventing the Garbage Collector from reclaiming their allocated heap memory.
  • •Common Java Causes: Unclosed database connections or file streams, static collections (e.g., static HashMaps accumulating entries indefinitely), unreleased listener registrations, and thread-local variables.
  • •Diagnostics: Take a heap dump on `OutOfMemoryError` (`-XX:+HeapDumpOnOutOfMemoryError`) and inspect dominator trees using Eclipse Memory Analyzer (MAT) or JProfiler to locate reference paths holding large retained heap.

Q3.Explain the difference between Primary Key, Unique Key, and Foreign Key.

  • •Primary Key: Uniquely identifies each record in a relation. It strictly forbids NULL values. A relation can define at most one primary key.
  • •Unique Key: Enforces uniqueness across a column. Unlike primary keys, a unique key column permits one NULL value in standard SQL (or multiple NULLs depending on database engine null equality rules). A table can define multiple unique keys.
  • •Foreign Key: A column that references a primary or unique key in a parent table to enforce relational referential integrity, preventing orphaned child records.

Q4.Explain the 4 Pillars of OOP with real enterprise application examples.

  • •Encapsulation: Bundling data fields and accessor methods while restricting direct external access (e.g., a BankAccount class keeping `balance` private and exposing `deposit()` with validation).
  • •Abstraction: Exposing clean functional contracts while hiding internal implementation mechanics (e.g., a PaymentGateway interface exposing `processPayment()` without revealing Visa/MasterCard API handshake logic).
  • •Inheritance: Extending capabilities from an existing class to avoid code duplication (e.g., `SavingsAccount` and `CheckingAccount` inheriting from `Account`).
  • •Polymorphism: Invoking identical method names that execute distinct behaviors depending on object type (e.g., `account.calculateInterest()` operating differently for savings versus fixed deposit instances).

Q5.Are you willing to sign a service agreement / employment commitment bond?

  • •Yes, I am fully committed to signing the service agreement. As a career-focused engineer seeking long-term professional stability and technical mentorship, I value the significant enterprise training investment Wipro provides during initial onboarding.
  • •I view the agreement period as an opportunity to build deep domain mastery, contribute meaningfully to client deliverables, and grow internally within the organization.

Q6.What is the difference between Synchronous and Asynchronous execution in programming?

  • •Synchronous Execution: Operations run sequentially. The calling thread blocks and waits until the current operation completes before advancing to the next instruction.
  • •Asynchronous Execution: Operations execute in the background without blocking the calling thread. The program registers callbacks, promises, or futures that notify the caller upon completion.
  • •Production Use Case: In web services, database queries and external third-party API calls (e.g., credit card verification) run asynchronously to avoid thread starvation in web application servers.

Q7.How do you detect a cycle in a Singly Linked List?

  • •Floyd's Tortoise and Hare Algorithm (Two Pointers):
  • •Initialize two pointers (`slow` and `fast`) at the head of the list.
  • •Traverse the list advancing `slow` by 1 step and `fast` by 2 steps per iteration.
  • •If `fast` or `fast.next` reaches NULL, the linked list contains no cycle (returns False).
  • •If `slow == fast` at any point, a cycle exists (returns True).
  • •Complexity: Time complexity is O(N) and space complexity is O(1) auxiliary memory.

Q8.What is the difference between TRUNCATE, DELETE, and DROP in SQL?

  • •DELETE: A DML (Data Manipulation Language) command. Removes rows matching an optional WHERE condition. Can be rolled back if executed inside a transaction. Fires database triggers and writes undo/redo transaction logs for every deleted row.
  • •TRUNCATE: A DDL (Data Definition Language) command. Rapidly empties all rows from a table by deallocating storage pages. Cannot use a WHERE clause. Minimizes transaction log overhead and does not fire row-level DELETE triggers.
  • •DROP: A DDL command. Completely removes table data, indexes, constraints, and table metadata definition permanently from the database schema.

Q9.Explain Exception Handling in Java: Checked vs Unchecked Exceptions.

  • •Checked Exceptions (inheriting from `java.lang.Exception` excluding RuntimeException): Must be explicitly handled using `try-catch` blocks or declared in method signatures via `throws` (e.g., `IOException`, `SQLException`). They represent recoverable external failure conditions.
  • •Unchecked Exceptions (inheriting from `java.lang.RuntimeException`): Do not require mandatory compile-time declarations (e.g., `NullPointerException`, `ArrayIndexOutOfBoundsException`, `ArithmeticException`). They typically represent programming logic defects that should be prevented via defensive code.
  • •`finally` block: Always executes regardless of whether an exception was thrown, commonly used for releasing system and I/O resources.

Q10.What are design patterns? Explain the Factory Pattern with a real scenario.

  • •Design patterns represent proven, reusable architectural solutions to common recurring software engineering challenges.
  • •Factory Pattern (Creational): Defines an interface or abstract class for creating objects, delegating instantiation logic to subclasses based on runtime arguments.
  • •Real-world Scenario: A notification service where a `NotificationFactory.createNotification("EMAIL")` returns an `EmailNotification` instance, while `"SMS"` returns an `SMSNotification` instance. The client code consumes the common `Notification` interface without coupling directly to concrete classes.
CTS

Cognizant GenC, Elevate & Next Technical Guide

10 Comprehensive Interview Scenarios & Solutions

Cognizant differentiates between roles (GenC, GenC Elevate, GenC Next). Expect deeper dives into data structures, debugging skills via Automata Fix, and logical problem-solving for advanced profiles.

Q1.What is the recruitment structure for Cognizant GenC, GenC Elevate, and GenC Next?

  • •1. GenC (Foundational, ~4.0 LPA): Online assessment evaluating Quantitative Aptitude, Logical Reasoning, Verbal Ability, and Automata Fix (debugging logic errors in C/Java/Python code).
  • •2. GenC Elevate (Mid-Tier, ~4.25 to 5.5 LPA): Includes advanced coding questions on HackerRank testing data structures, algorithms, and practical SQL queries.
  • •3. GenC Next (Premier, ~6.75 to 9.0+ LPA): Focuses on algorithmic problem-solving (Dynamic Programming, Graph traversals, Trees), System Design fundamentals, and cloud concepts.
  • •4. Technical Interview: Live screen-share coding, academic project deep-dive, database design, and OOP principles.
  • •5. HR Interview: Evaluates communication skills, cultural adaptability, and rotational shift willingness.

Q2.What is the internal difference between an Array and a Linked List in memory?

  • •Memory Allocation: Arrays allocate contiguous memory blocks of fixed size at initialization. Linked Lists allocate nodes dynamically across arbitrary heap memory addresses connected via pointers/references.
  • •Access Performance: Arrays provide constant-time O(1) random access via index arithmetic (`base_address + index * element_size`). Linked Lists require sequential traversal, resulting in linear O(N) access.
  • •Insertion/Deletion: Arrays require shifting subsequent elements in O(N) time. Linked lists insert and delete in O(1) time once the target node reference is reached.
  • •Cache Locality: Arrays offer superior CPU spatial cache locality because consecutive elements are loaded together into CPU cache lines.

Q3.Explain Method Overloading vs Method Overriding with resolution mechanisms.

  • •Overloading (Compile-Time / Static): Occurs within the same class scope. Methods share identical names but differ in parameter count or types. The compiler resolves which method to invoke during compilation based on arguments.
  • •Overriding (Runtime / Dynamic): Occurs between parent and subclass relationships. Subclass provides a specific implementation of a parent method with matching signature. The JVM resolves invocation at runtime based on the actual instantiated object type via virtual method dispatch.
  • •Can you overload the `main` method in Java? Yes, but the JVM will only execute `public static void main(String[] args)` as the application entry point.

Q4.What is the Software Development Life Cycle (SDLC) and how does Agile differ from Waterfall?

  • •SDLC phases: 1) Requirements Gathering, 2) System Architecture & Design, 3) Implementation/Coding, 4) Testing (Unit, Integration, UAT), 5) Deployment, and 6) Maintenance.
  • •Waterfall Model: Sequential and rigid. Each phase must finish before the next begins. Difficult to accommodate shifting requirements late in delivery.
  • •Agile Methodology: Iterative and incremental delivery across 2-to-3 week Sprints. Cross-functional teams deliver small, production-ready increments, incorporating regular stakeholder feedback and adapting to evolving requirements.

Q5.How do you approach a technical problem when you do not know the answer?

  • •Maintain composure and avoid guessing blindly or reciting irrelevant definitions.
  • •Clarify and structure: State what you do understand about the underlying components: "While I haven't implemented this specific library in production, conceptually it operates like..."
  • •Explain your troubleshooting workflow: Outline how you would isolate the problem: inspecting API contracts, reviewing official documentation, or running minimal unit test cases.
  • •Interviewers evaluate structured diagnostic methodology and intellectual honesty over rehearsed perfection.

Q6.Explain Database Normalization: 1NF, 2NF, 3NF, and BCNF.

  • •1NF (First Normal Form): Every column contains atomic (indivisible) values, and each record is unique with no repeating groups.
  • •2NF (Second Normal Form): Satisfies 1NF and ensures all non-key attributes are fully functionally dependent on the entire composite primary key (eliminating partial dependency).
  • •3NF (Third Normal Form): Satisfies 2NF and ensures non-key attributes depend solely on the primary key, eliminating transitive dependencies (A -> B, B -> C).
  • •BCNF (Boyce-Codd Normal Form): A stricter version of 3NF where for every functional dependency X -> Y, X must be a super key.

Q7.Write code to remove duplicate elements from an array in O(N) time.

  • •For Sorted Arrays (Two Pointers, O(1) Auxiliary Space):
  • •`def remove_duplicates_sorted(nums):`
  • •` if not nums: return 0`
  • •` write_idx = 1`
  • •` for i in range(1, len(nums)):`
  • •` if nums[i] != nums[i - 1]:`
  • •` nums[write_idx] = nums[i]`
  • •` write_idx += 1`
  • •` return write_idx`
  • •For Unsorted Arrays (Hash Set, O(N) Auxiliary Space): Use a HashSet to track seen elements while building a distinct output list.

Q8.What is a REST API and what do HTTP status codes 200, 201, 400, 401, 403, 404, 500 mean?

  • •REST (Representational State Transfer) is an architectural style utilizing stateless HTTP communication to manipulate resources.
  • •200 OK: Request succeeded and payload returned.
  • •201 Created: Request succeeded and a new server resource was generated (standard response for POST).
  • •400 Bad Request: Malformed payload or validation failure on client input.
  • •401 Unauthorized: Authentication credentials missing or invalid.
  • •403 Forbidden: Authenticated user lacks required authorization permissions to access resource.
  • •404 Not Found: Requested resource URI does not exist on server.
  • •500 Internal Server Error: Unhandled application exception or server-side failure.

Q9.Explain Garbage Collection in Python: Reference Counting vs Cyclic GC.

  • •Reference Counting: Python's primary memory management system. Every object maintains an internal `ob_refcnt`. When reference count drops to zero, memory deallocates immediately.
  • •Cyclic Garbage Collector: Handles reference cycles where objects reference each other (e.g., Object A references B, and B references A), preventing reference counts from ever reaching zero.
  • •Generational GC: Cyclic collector divides objects into three generations (Gen 0, Gen 1, Gen 2) based on survival age. Gen 0 runs frequently; objects surviving collection advance to older generations.

Q10.How do you explain your academic project architecture to an enterprise client interviewer?

  • •Structure the explanation around business problem, architecture, individual contribution, and engineering challenges.
  • •Architecture: Detail frontend (React/HTML), application backend (Spring Boot/Django), database schema (PostgreSQL), and cloud/deployment setup.
  • •Concrete metrics: "Engineered a RESTful service processing 50 concurrent requests with sub-100ms response times."
  • •Overcoming challenges: "Encountered database deadlocks during simultaneous cart updates, resolved by implementing optimistic locking with version columns in the database schema."

Key Strategy: Technical Service Firm Recruitment

Master your core fundamentals (OOPs, SQL joins, normalization, basic data structures). You do not need to know 10 different frameworks superficially; be exceptionally thorough in the 1 or 2 programming languages listed on your resume. Clear technical communication, logical diagnostic methodology, and an adaptable mindset matter just as much as raw coding speed.

← Explore All Interview Guides
Abu - Founder of GetJobWithAbu

Abu

Founder of GetJobWithAbuCloud & Azure Developer (5+ Years IT Exp)

Cloud & Azure Developer with 5+ years of IT industry experience, having transitioned from a 4.8-year IT Support role into Software & Cloud Development. Dedicated to helping freshers, Tier-2/Tier-3 college graduates, and IT support engineers crack technical interviews through practical production insights, real-world scenario questions, and hands-on guidance.