Company QuestionsCompany Interviewsbeginner

Cognizant Interview Questions for Freshers

The Cognizant fresher selection process in general terms, plus 20 practice questions on SQL queries, Java programs, OOP, communication and HR, with sample answers and tested code.

Published
TL;DR – Quick Answer

Cognizant usually hires freshers through online assessments followed by interviews. Candidate reports describe aptitude, communication and technical assessments, then a technical interview and an HR discussion. Its fresher programmes have used track names such as GenC, GenC Pro and GenC Next. The process and tracks change, so check the official Cognizant careers page before you prepare.

On This Page

Cognizant interview questions for freshers come after a set of online assessments. They usually cover programming basics, SQL, OOP, your project and HR questions. This page explains the selection process in general terms and gives 20 practice questions with sample answers. Every code sample was run to confirm its output.

Important: Cognizant changes its hiring process, assessments, eligibility and track names from time to time. Use this page to prepare, not as an official description. Always check the official Cognizant careers website and your placement cell notice for the current process.

The Cognizant selection process in general

Stage What usually happens
Registration Apply through the official Cognizant careers site or your campus drive
Online assessments Aptitude, communication and technical tests, as described in candidate reports
Technical interview Programming, SQL, OOP and your project
HR discussion Background, flexibility and fit
Offer Offer or intent letter, document checks and joining details

Cognizant's fresher programmes have used the name GenC, with tracks such as GenC, GenC Pro and GenC Next. Higher tracks usually expect stronger coding. Candidates report that the track is decided by Cognizant based on assessment and interview performance. Confirm the current tracks and rules on the official site.

What the assessments usually cover

Candidate reports describe quantitative aptitude, logical reasoning, an English or communication test and a technical test with coding or skill-based questions. The exact pattern changes between years. Practise with quantitative and reasoning questions and coding with simple array and string problems.

How to answer in a Cognizant interview

Speak clearly and keep answers structured. A communication assessment is often part of the process, so the way you explain matters as much as what you know. Use short sentences and one example per answer.

Pro tip: SQL questions come up often in service company interviews. Practise writing queries on paper, not only in a tool with autocomplete.

Cognizant technical interview questions

These match commonly reported topics. They are not a list of questions Cognizant will ask.

The SQL examples use these two small tables.

CREATE TABLE departments (dept_id INT PRIMARY KEY, dept_name VARCHAR(30));
CREATE TABLE employees (emp_id INT PRIMARY KEY, name VARCHAR(30), salary INT, dept_id INT);

INSERT INTO departments VALUES (1, 'Testing'), (2, 'Development'), (3, 'Support');
INSERT INTO employees VALUES
  (101, 'Asha', 52000, 2),
  (102, 'Ravi', 48000, 1),
  (103, 'Meena', 61000, 2),
  (104, 'Kiran', 61000, 2),
  (105, 'Sana', 45000, NULL);

Q1. Find the second highest salary.

SELECT MAX(salary) AS second_highest
FROM employees
WHERE salary < (SELECT MAX(salary) FROM employees);

Output:

second_highest
52000

Two people earn the highest salary, 61000, so the second highest distinct salary is 52000. Interviewers like this test data because a simple ORDER BY salary DESC LIMIT 1 OFFSET 1 would wrongly return 61000.

Q2. What is the difference between INNER JOIN and LEFT JOIN?

SELECT e.name, d.dept_name
FROM employees e
LEFT JOIN departments d ON e.dept_id = d.dept_id
ORDER BY e.emp_id;

Output:

name dept_name
Asha Development
Ravi Testing
Meena Development
Kiran Development
Sana NULL

Sample answer: INNER JOIN returns only rows with a match in both tables, so Sana would not appear. LEFT JOIN keeps every employee and shows NULL where no department matches.

Q3. Count employees in every department, including empty ones.

SELECT d.dept_name, COUNT(e.emp_id) AS staff
FROM departments d
LEFT JOIN employees e ON e.dept_id = d.dept_id
GROUP BY d.dept_name
ORDER BY d.dept_name;

Output:

dept_name staff
Development 3
Support 0
Testing 1

COUNT(e.emp_id) ignores NULLs, so Support shows 0. COUNT(*) would wrongly show 1.

Q4. What is the difference between WHERE and HAVING?

Sample answer: WHERE filters rows before grouping. HAVING filters groups after GROUP BY.

SELECT dept_id, AVG(salary) AS avg_salary
FROM employees
WHERE dept_id IS NOT NULL
GROUP BY dept_id
HAVING AVG(salary) > 50000;

This returns one row: department 2 with an average salary of 58000. More practice is on the SQL interview questions for freshers page.

Q5. Write a Java program to count each character in a word.

import java.util.LinkedHashMap;
import java.util.Map;

public class CountChars {
    public static void main(String[] args) {
        String word = "cognizant";
        Map<Character, Integer> counts = new LinkedHashMap<>();
        for (char ch : word.toCharArray()) {
            counts.put(ch, counts.getOrDefault(ch, 0) + 1);
        }
        System.out.println(counts);
    }
}

Output:

{c=1, o=1, g=1, n=2, i=1, z=1, a=1, t=1}

LinkedHashMap keeps the order in which characters first appear. A HashMap would work too, but its print order is not guaranteed.

Q6. What is the difference between an array and an ArrayList in Java?

Sample answer: An array has a fixed size and can hold primitives like int. An ArrayList grows as needed, holds objects only (so int values are stored as Integer) and has methods such as add and remove.

Q7. Explain the four OOP concepts with an example.

Sample answer: Take a banking app. Encapsulation: the balance is private and changed only through deposit and withdraw. Abstraction: users call transfer without seeing the steps inside. Inheritance: SavingsAccount extends Account. Polymorphism: calculateInterest behaves differently for savings and fixed deposit accounts. See OOPs interview questions for follow-ups.

Q8. What is the difference between == and equals() in Java?

Sample answer: For objects, == checks whether two references point to the same object. equals() checks whether two objects are logically equal, as the class defines it. For strings, use equals() to compare text.

Q9. What is exception handling?

Sample answer: Exception handling lets a program deal with errors without crashing. Code that may fail goes in try, the handling code goes in catch, and finally runs in both cases, often to close resources. Checked exceptions must be handled or declared, while unchecked exceptions need not be.

Q10. What are ACID properties?

Sample answer: Atomicity: a transaction completes fully or not at all. Consistency: data moves from one valid state to another. Isolation: concurrent transactions do not interfere in harmful ways. Durability: committed data survives a crash. A bank transfer is the classic example.

Q11. What is the difference between GET and POST?

Sample answer: GET requests data and sends parameters in the URL. It should not change data. POST sends data in the request body, is used to create or submit data, and is not cached by default.

Q12. What is Agile?

Sample answer: Agile is a way of building software in short cycles, called sprints in Scrum, with regular feedback from users. Teams deliver small working pieces often instead of one big release at the end.

Communication and project questions

Q13. Explain your project in two minutes.

Sample answer: Use this order: problem, users, tech stack, your part, one challenge, one result. Practise with a timer. Speak slowly. The communication assessment and the interviewer both judge clarity.

Q14. Explain a technical term to a non-technical person.

Sample answer: "A database is like a well-organised register. Each table is a page with columns, such as name and phone number, and each row is one person. Software can search it very quickly."

This tests whether you understand a concept well enough to make it simple.

Cognizant HR interview questions

Q15. Tell me about yourself.

Sample answer: "I am [your name], a final-year IT student. I know Java and SQL, and I built an online quiz app as my main project, where I designed the database and wrote the scoring logic. I want to start my career as a developer and keep learning on real client projects."

Q16. Why Cognizant?

Sample answer: Give reasons you can check, such as its structured training for freshers and its work with clients in many industries. Link them to your goals. Avoid answers that could fit any company.

Q17. Are you comfortable with relocation and night shifts?

Sample answer: Answer honestly. "I am open to relocation. I understand some projects support clients in other time zones, and I can adjust to shifts when the project needs it." State real constraints politely if you have them.

Q18. Describe a time you made a mistake.

Sample answer: "In my project, I deleted test data by running an update without a WHERE clause. I restored it from a backup, told my team and since then I always run a SELECT with the same condition first."

Q19. What do you know about the IT services industry?

Sample answer: "IT services companies build, test and maintain software for clients in areas such as banking, healthcare and retail. Freshers usually start with training, then join a project team and work on development, testing or support."

Q20. Do you have any questions for us?

Sample answer: "What does the training period for freshers cover?" or "Which technologies does this role use most?" Keep it short and genuine.

More HR practice is in HR interview questions for freshers.

A two-week preparation plan for Cognizant

Days Focus
1 Check the current official process and tracks
2 to 4 Aptitude and reasoning daily
5 Communication practice: read aloud, speak for one minute on a topic
6 to 8 SQL: joins, GROUP BY, subqueries, second highest salary
9 to 10 Java or Python programs and OOP
11 Project explanation
12 to 13 HR answers and a mock interview
14 Light revision

Common mistakes to avoid

Mistake Better approach
Ignoring the communication assessment Practise speaking and listening daily
Writing SQL only in a tool Write queries on paper too
Using COUNT(*) with LEFT JOIN for counts Count a column from the right table
Old blog posts as the source of truth Check official Cognizant pages for this year
Paying for "referrals" or "guaranteed offers" Apply only through official channels and never pay for a job

Topics overlap across service companies, so practise TCS interview questions for freshers too and reuse your project and HR stories.

Frequently Asked Questions

What is the Cognizant selection process for freshers?
It usually includes registration, online assessments such as aptitude, communication and technical tests, a technical interview and an HR discussion. The exact rounds differ by track, year and drive. Check the official Cognizant careers site and your placement cell notice for the current process.
What is Cognizant GenC?
GenC is the name Cognizant has used for its fresher hiring programme, with tracks such as GenC, GenC Pro and GenC Next that differ in the skills expected. Track names and rules have changed over the years, so confirm the current tracks on the official Cognizant careers pages.
Is there a communication test in Cognizant hiring?
Many candidates report a communication or English assessment as part of the online tests. It can include listening, reading, grammar and speaking tasks. Practise reading aloud, short spoken answers and basic grammar.
Which language is best for the Cognizant technical interview?
Use the language listed on your resume that you know best. Java and Python are common choices, and SQL questions are frequent. Be ready to write simple programs and basic queries.
What salary does Cognizant offer freshers?
This page does not list salary figures, because they vary by track and year. Check the official Cognizant job description or your offer communication for the correct numbers.
Siva Prasad Galaba
Founder, CodeBegun · Staff Engineer

Founder of CodeBegun. 15+ years building Java systems at companies like Crunchyroll. Teaches Java, Spring Boot and system design the way the industry actually works, and mentors students through projects, mock interviews and placement preparation.

Technically reviewed by CodeBegun Technical TeamLast reviewed 4 December 2026 LinkedIn
Chat with us