DEV Community

Brevis Dewald
Brevis Dewald

Posted on

Cognizant GenC Interview Questions for Freshers (2026): Test Pattern, SQL, Java, Coding and HR

Cognizant hires most of its freshers through GenC drives. The process has one round that catches many candidates off guard: a spoken communication assessment that is reported as an elimination stage. This post covers the GenC test pattern, how to handle the communication round, and the SQL, Java, coding and HR questions freshers report most often.

The Cognizant hiring process

  1. Communication assessment: spoken and written English
  2. Aptitude assessment: numerical, logical and verbal
  3. Technical assessment: coding, SQL and a cluster-specific section
  4. Technical interview: one language, OOP, SQL, DBMS and your project
  5. HR interview: relocation, shifts, service agreement and documents

The fresher tracks

  • GenC (Programmer Analyst Trainee): the main fresher role. Reported package around ₹4 to 4.5 LPA.
  • GenC Next / GenC Pro: harder coding and a deeper technical interview, with fewer seats. Reported package around ₹6.75 LPA.
  • GenC Elevate: a specialist track offered in some years.

GenC and GenC Next share the same recruitment process, and the role is decided by your performance. Packages and track names change between batches, so confirm them in your drive notice.

GenC test pattern (2026)

This is the pattern reported by PlacementPreparation for 2026. Follow your official invitation for the final format:

Round Section Questions Time
Communication Reading, repeating and jumbled sentences, Q&A, story telling 60 58 min
Aptitude Numerical Ability 25 35 min
Aptitude Logical Reasoning 35 45 min
Aptitude Verbal Ability 20 20 min
Technical Cluster 1 or Cluster 2 3 105 to 120 min
  • Reported formats have no negative marking.
  • The communication assessment is an elimination round.
  • You state a cluster preference at registration, but Cognizant decides which cluster you take.

Cluster 1 focuses on Java and ANSI SQL, with some HTML, CSS and JavaScript. Cluster 2 focuses on ANSI SQL and Python, with cloud fundamentals as MCQs. In both, SQL carries a large share of the marks.

How to handle the communication round

The spoken tasks are scored on clarity, pronunciation, fluency and grammar.

  • Speak at a steady pace. Rushing causes more errors than nerves do.
  • Repeat sentences exactly. Do not paraphrase; the task checks listening and recall.
  • For story telling, use a simple beginning, middle and end. Three to five clear sentences beat a long, messy story.
  • Use a quiet room and a headset if the test is online, so background noise does not affect scoring.
  • Practise reading aloud for ten minutes a day for a week before the test.

Technical round questions

1. JDK vs JRE vs JVM

  • JVM runs Java bytecode on a specific operating system.
  • JRE is the JVM plus the libraries needed to run Java programs.
  • JDK is the JRE plus development tools such as the compiler (javac).

You need the JDK to write and compile Java, but only the JRE to run it.

2. ArrayList vs LinkedList

ArrayList LinkedList
Storage Dynamic array Doubly linked nodes
Access by index O(1) O(n)
Insert or delete in the middle O(n), elements shift O(1) once you reach the node
Best for Frequent reads Frequent inserts and deletes

3. String vs StringBuilder vs StringBuffer

String is immutable, so every change creates a new object. StringBuilder is mutable and fast but not thread-safe. StringBuffer is mutable and thread-safe because its methods are synchronized, which makes it slower. Use StringBuilder when building strings in a loop.

4. What does the final keyword do?

  • A final variable cannot be reassigned.
  • A final method cannot be overridden.
  • A final class cannot be extended. String is a common example.

5. Checked vs unchecked exceptions

Checked exceptions, such as IOException, are checked at compile time, so you must handle them with try-catch or declare them with throws. Unchecked exceptions, such as NullPointerException, extend RuntimeException and are not checked at compile time.

6. GET vs POST

GET sends data in the URL, is used to fetch data, and can be cached and bookmarked. POST sends data in the request body, is used to create or submit data, and is not cached by default. Never send passwords with GET.

7. INNER JOIN vs LEFT JOIN

An INNER JOIN returns only rows that match in both tables. A LEFT JOIN returns every row from the left table, with NULL in the right table's columns where there is no match.

8. UNION vs UNION ALL

UNION combines two result sets and removes duplicates. UNION ALL keeps duplicates, so it is faster when you know the results do not overlap or when duplicates are acceptable.

9. Highest salary in each department

SELECT department_id, MAX(salary) AS highest_salary
FROM employees
GROUP BY department_id;
Enter fullscreen mode Exit fullscreen mode

A common follow-up asks for the employee name as well:

SELECT e.department_id, e.name, e.salary
FROM employees e
WHERE e.salary = (
  SELECT MAX(salary)
  FROM employees
  WHERE department_id = e.department_id
);
Enter fullscreen mode Exit fullscreen mode

10. Find duplicate emails

SELECT email, COUNT(*) AS occurrences
FROM users
GROUP BY email
HAVING COUNT(*) > 1;
Enter fullscreen mode Exit fullscreen mode

11. What is a trigger?

A trigger is SQL code that runs automatically when an INSERT, UPDATE or DELETE happens on a table. It is often used for audit logs, such as recording who changed a salary and when.

Coding questions

GenC coding problems are usually easy to medium. GenC Next and Pro problems are harder. Explain your approach before you write.

Find the missing number from 1 to n

def missing_number(arr, n):
    return n * (n + 1) // 2 - sum(arr)

print(missing_number([1, 2, 4, 5], 5))  # 3
Enter fullscreen mode Exit fullscreen mode

The formula for the sum of 1 to n gives an O(n) answer with no extra space.

Reverse each word in a sentence

def reverse_each_word(sentence):
    return " ".join(word[::-1] for word in sentence.split())

print(reverse_each_word("Cognizant GenC drive"))  # tnazingoC CneG evird
Enter fullscreen mode Exit fullscreen mode

First non-repeating character

from collections import Counter

def first_unique_char(s):
    counts = Counter(s)
    for ch in s:
        if counts[ch] == 1:
            return ch
    return None

print(first_unique_char("swiss"))  # w
Enter fullscreen mode Exit fullscreen mode

Merge two sorted arrays

def merge_sorted(a, b):
    i = j = 0
    result = []
    while i < len(a) and j < len(b):
        if a[i] <= b[j]:
            result.append(a[i])
            i += 1
        else:
            result.append(b[j])
            j += 1
    result.extend(a[i:])
    result.extend(b[j:])
    return result
Enter fullscreen mode Exit fullscreen mode

This runs in O(n + m), which is better than joining both lists and sorting again.

Check if a matrix is symmetric

def is_symmetric(matrix):
    n = len(matrix)
    for i in range(n):
        if len(matrix[i]) != n:
            return False
        for j in range(i + 1, n):
            if matrix[i][j] != matrix[j][i]:
                return False
    return True
Enter fullscreen mode Exit fullscreen mode

Pairs that add up to a target (GenC Next level)

def pairs_with_sum(arr, target):
    seen = set()
    pairs = set()
    for x in arr:
        if target - x in seen:
            pairs.add((min(x, target - x), max(x, target - x)))
        seen.add(x)
    return sorted(pairs)

print(pairs_with_sum([1, 5, 7, -1, 5], 6))  # [(-1, 7), (1, 5)]
Enter fullscreen mode Exit fullscreen mode

A set gives O(n) time instead of the O(n²) nested-loop approach.

HR round questions

  • Tell me about yourself. Education, one project, one strength with an example, and why Cognizant. Keep it near 90 seconds.
  • Why Cognizant? Talk about its training for freshers, the range of client domains and the work you want to do, in your own words.
  • Are you comfortable with the service agreement? Read the terms in your offer documents beforehand so you can answer clearly.
  • Are you willing to relocate and work in shifts? Be honest; it affects your posting.
  • Do you have any backlogs? Answer truthfully and mention when you expect to clear them.

Final tips

  • Practise SQL every day. It carries a large share of the technical marks in both clusters.
  • Prepare for the communication round as seriously as the coding round, since it is an elimination stage.
  • Know every line of your final-year project and be ready to explain one design choice.

If you want to practise speaking your answers out loud with feedback, AI mock interview practice can help you spot weak answers before the real round.

All the best for your Cognizant interview!


Sources: test pattern and clusters as reported by PlacementPreparation; tracks, hiring stages and common questions compiled from Weekday and candidate reports. Follow official Cognizant communication for the final pattern.

Top comments (0)