Cognizant Interview Questions by Mrtrueliving Ix
Cognizant Interview Questions by Mrtrueliving Ix
1. Intro
2. What is a web app (since mentioned in CV)?
3. Is JavaScript a programming language?
4. What is GET and POST, which is secure?
5. Write a program for palindrome.
6. What is CI/CD pipeline (project - AWS CodeBuild, CodePipeline)?
7. Views in SQL
8. Normalization in SQL
9. Triggers
10. OOPS pillars
11. Explain polymorphism
12. Data validation in a website
13. What term did you manage (e.g., committee)?
14. Rate yourself out of 10
15. Relocation
16. Can you work on any tech stack?
17. How is a normal user able to see a website live?
18. Diff between HTTP and HTTPS
19. SDLC
20. Which is better, agile or waterfall workflow?
21. Night shift
1. Self-Introduction
2. Explain Java Inheritance with Code
3. Write Java Code to Convert "AkShAy" to "aKsHaY"
4. What is Exception Handling in Java?
5. What is Indexing in SQL?
6. What is a Foreign Key in SQL?
7. DBMS-Related Questions:
-What is normalization?
-What are the different types of joins in SQL?
-What is the difference between DELETE and TRUNCATE?
8. What are the four pillars of OOPs in Java?
9. Explain method overloading and method overriding.
10. What is the difference between an interface and an abstract class?
11. What is the difference between == and .equals() in Java?
12. What is the difference between primary key and unique key?
13. How does GROUP BY work in SQL?
14. What is a stored procedure?
15. Explain the use of HAVING clause in SQL.
16. Are you open to relocating to Chennai?
6. SQL questions:
–Find the maximum salary from a table.
–Given a table, write SQL queries to add, delete, and modify data.
7. Explain OOPS concepts with real-time examples.
8. What are aggregate functions in SQL?
9. What is the this and super keyword in Java?
10. What is the difference between abstract class and interface?
11. Can you explain the differences between JVM (Java Virtual Machine) and JRE (Java
Runtime Environment)?
12. What is the difference between an inner join and an outer join in SQL?
13. Explain normalization forms. (Make sure to mention them in proper sequence, from
1NF to 5NF).
1. Self Introduction
2. Difference between C and Java
3. Difference between Python and Java
4. Inner Join in SQL
5. Which languages support OOP concepts?
6. Strengths and Weaknesses
7. How do you handle stress?
8. Print reverse string program
9. Aggregate functions
10. What is COUNT in SQL?
11. Write a query for aggregate functions.
12. Delete records from a table.
Candidate 6 - Genc Pro Role : Cognizant Interview Question: 1st April 2025 ( It's a real
example of Cluster 2 )
Hello sir, here are the question that I have been asked :
1. Are you flexible to relocate in Coimbatore or Chennai?
2. Are you flexible to work in any shifts?
3. If you are given an offer to join Cognizant on April 15, will you be joining immediately?
4. Self introduction
5. Tell about your strength and weakness.
6. What would you do if I assign a different domain job to you?
7. Rate your skills in Python out of 5.( Before they asked me in which language you are
comfortable with )
8. Explain file exception handling in Python.
9. Difference between list and tuple.
10. Difference between append() and extend() in list.
11. What is a lambda function in Python?
12. Rate your skills in Python programming out of 5.
13. Program – Take your name, identify the vowels, count the number of vowels, and
replace vowels with "1".
Example input: I am a vowel
Output: 1 1m 1 v1w1l
Vowels count: 5
14. Exception handling program
15. Logical question – You are given 9 balls with same color and size. One ball is thinner
and slightly different in weight. How would you find the odd ball using 2 chances?
16. Tell about familiar topics in Python.
17. Do you have any questions?
( All questions are not here but these are important questions from cluster 3 student so
prepare well these questions)
1. Self-Introduction
3. Basic programs on strings and arrays (swap two numbers using temp and
without temp)
6. If you receive a joining date of the 10th, will you join?
1. Introduction
2. What were you doing for the last 1 year?
3. Explain OOPS with real-life examples.
4. Write a Java program to print the first 50 prime numbers.
5. What is DOM in HTML?
6. Write an SQL query to find the second-highest salary.
7. Are you ready for 6 months of training in Chennai?
8. Explain the difference between abstract class and interface.
2. What is the difference between Shallow Copy and Deep Copy?
5. Write a Python program using try and except for exception handling.
6. Write a program to replace vowels in a name with numeric values, print the new
name, and count the number of replacements.
7. Explain your project in detail, focusing on your role and responsibilities. Be
ready for in-depth technical questions.
9. If you are assigned a project in a new technology, how will you handle it?
10.How will you manage multiple tasks with the same deadline?
12.If you find a critical bug close to the project deadline, what will be your
approach?
13.How would you handle a situation where your work is not appreciated despite
your efforts?
Java
1. Factorial
2. Palindrome
3. Inheritance
4. Polymorphism
Cybersecurity
8. Phishing
9. Cybersecurity definition
10. DoS
11. Concepts familiar with
12. Encryption & decryption with examples
13. Decoding & encoding
14. Recent attacks
15. ATM PIN storage
16. Vulnerability
17. Threat
18. Risk
19. Difference between authorization and authentication
HR
24. Relocation
25. Night shifts
26. Why Cognizant
JavaScript
1.Relocation
2.Introduction
3.Languages Learned
4.Asked About the Language
5.What is C#?
6.Rate Yourself in Coding
7.SQL Table Creation and Database Creation Syntax
8.Use of Database in Real-Time Scenario
9.View in SQL and Real-Time Usage
10.C# Code to Print Sum of First Five Numbers from a Set of Ten Without Giving
11.Values Directly (Using Loop)
12.JavaScript Validation Question
13.Background-Color and Text Color in CSS
14.Interviewer Asked: Any Questions?
Introduce yourself
1. Static Keyword
2. Why is Java platform-independent?
3. HTTP VS HTTPS
4. Diff b/w ArrayList and LinkedList
5. What is cybersecurity?
6. What is cloud computing?
7. Firewall
8. Malware
9. Steps to protect for system
10. Data Security
11. Can you overload the main function?
12. Can you override a static method?
13. Delete vs Truncate vs Drop
Candidate 15 : Cognizant Genc Next Role Interview Question 4 April 2025 : Genc Pro
Role
Candidate 16 : Cognizant Genc Next Role Interview Question 4 April 2025 : Genc Pro
Role
Questions:
1.No intro
2.asked features of Java
3.write some string methods in java
4.differnce between python and Java
5.binary search and code implementation in java ( I am cluster 1 so )
6.algorthm of selection sort
7.sql queries
1.update,insert,select,delete
2. Difference between truncate and delete
3.about joins definitions
8.oops concepts and pillars of oops ( just explaination)
9.revstse string
10. What is html ,css , javascript
11.difference between array, linkedist,arraylist
12. Exception handling both python and Java code
13.comfortable to relocate and shifts
Candidate 19 : Cognizant Genc Next Role Interview Question 5th April 2025 :
Candidate 20 : Cognizant Genc Pro Role Interview Question 5th April 2025 :
1.
2. Interview date-04/04/2025, cluster 2,genc next
3. intro
4. about project
5. asked about comfortable language(python or java)
6. inheritance
7. prime numbers upto 50
8. sql-joins
9. generators
10.usage of 'with' in python
11.exception handling in python
12.aggregate functions in sql
13.union and union all
Candidate 21 : Cognizant Genc Role Interview Question 5th April 2025 C# (1 Hour)
Candidate 22 : Cognizant Genc Pro Cybersecurity Role Interview Question 6th April
2025 Duration: 1 hr, 10 mins
My interview experience:
1) Tell me about the projects you have done using JAVA. (Since I'm from Cluster 1). I
said about a mini project I've done in Java
2) I said I'm expertise in Python but I also have strong foundation in Java through my
Academics and some online courses.
8) 2 SQL queries
* 2nd highest salary from employee table
* HR started again
1) Tell me your experience about Internships you have done ( I have 2 virtual
internships)
2) I mentioned that I have an Intro to cybersecurity course certificate. So, he asked
about Cybersecurity and why it is important nowadays and in future.
3) What is a FireWall
Candidate 26 : Cognizant Genc Next Role Interview Question 7th April 2025
1. The first thing they asked me were of HR questions like:-
2. Are you willing to relocate ?
3. Are you open for any shifts?
4. Are you willing to join immediately?
5.
6. The they got into the technical round :-
7. They asked me to introduce myself!
Candidate 27 : Cognizant Genc Pro CyberSecurity Role Interview Question 7th April
2025
Candidate 29 : Cognizant Genc Next Role Interview Question 9th April 2025
Candidate 30 : Cognizant Genc Pro Role Interview Question 9th April 2025
1. intro
2.asked features of Java
3.write some string methods in java
4.differnce between python and Java
5.binary search and code implementation in java ( I am cluster 1 so )
6.algorthm of selection sort
7.sql queries
1.update,insert,select,delete
2. Difference between truncate and delete
3.about joins definitions
8.oops concepts and pillars of oops ( just explaination)
9.revstse string
10. What is html ,css , javascript
11.difference between array, linkedist,arraylist
12. Exception handling both python and Java code
13.comfortable to relocate and shifts
He Asked Me To Introduce
Then He Asked Me
1 Which Domain You Want To Work On?
2 Then He Started Asking On Cloud Computing As It Was Part Of My Cluster.
- IaaS, SaaS, PaaS On Expample.
3 Situation Based Questions
Like If Are Given A Team Where None Of Them Are Ready To Work Long. But You Have
Your Deadline What You Will Do
4 Another Situation Based Question
Like You Are Given A Project Where Everything is Completed But Client Asked For
Other Requirements. What Inputs You Will Ask Your Manager to Work On This.
First he asked you are java cluster right i told yes sir java.
1.Asked to show any certificate with photo to the camera.
2.Explain your projects I told my machine learning project and asked what
technologies used in java in yr project i told java is not used in my project
3.Self introduction
4.What is JDK and JRE.
● Write a code to compare who completed the work and who didn’t.(unable to
understand the question)
● Tell me about your project.
● (4–5 follow-up questions related to your project.)
● What is the difference between a dictionary and a list?
● Are you comfortable switching to another technology?
● Are you willing to relocate?
● Can you work in a day shift?
● Introduce yourself.
● What do you know about Python?
● Find the largest word from a sentence.
● What did you do after completing your degree?
● Tell me about your project.
● Was your project done during your internship?
● Show and run the code for your project.
● You mentioned dance as your hobby — can you tell me more about it?
● What dance form do you do?
Cluster 1
Date: 21 April 2025
Total Time: 56 min
1. Introduce yourself.
2. Explain the projects you did during your internship and in the final year of college.
OOPs
3. Explain polymorphism with an example.
4. What is the difference between method overloading and method overriding?
5. Difference between abstract class and interface.
6. Can abstract methods be overridden? Why?
Coding
7. How do you find the number of occurrences of every character in a string?
JavaScript
19. What is JavaScript?
20. What is hoisting?
Interview experience
- introduction
-foreign key
- palindrome question
-remove white spaces from string
-comparator
- garbage collection in Java
-willing to relocate?
-how to add unique lists in mysql
Cluster-2
—>Shallow copy deep copy examples
—->code- Prime numbers in a range
—>Query Optimisation -explain
—>union in sql
—>group by
—>second highest salary
—> difference between in and exist sql
—->what is virtual machine
—> public cloud,private cloud
—> api gateway
—> scenario based questions
Guys I got logo means we are rejected? For the first few minutes the text editor of
superset had some issues and I am not able to write the code then I left interview and
then again I joined then it started working.
Questions:
1. Self intro
2.Exception handling in java
3.arraylist vs linkedlist
4.print non duplicate numbers and duplicate numbers in an array
This interviewer joined using mobile phone and he is roaming around his house taking
interview.And he said thank you. Interview is completed. I think he is not happy.
I think 99% rejected.
1. Started with can u join between May 1st to May 15th
2. Then can u relocate
3. Can u work with any tech stack then directly with write code on armstrong
number
4. Then wrote some java logics and asked me to answer the result
5. Some questions of polymorphism, inheritance
6. Some questions on functional interface,static methods like can they be overriden
and overloaded
7. Then a final sql query and finally asked to shown my id.
05:26 PM
For my sister
She is from electrical virtual interview was there
1. Asked about internship
2. Asked about projects in depth
3. Asked palindrome code
4. Are you comfortable with any technology
5. Do you any questions
6. My sister asked feedback our hr will contact!
1. Intro
2. Collections in Java
3. Searching algorithms
4. Oops
5. Exception handling
6. Reverse a string
7. Write a code for non repeating characters in a string
8. Array vs list
9. Stored procedures in sql
10.Indexing
11.Write a query to get 3rd highest salary
My interview experience
Cluster: csharp but I maintained java in self introduction they are asked questions
on java nd my sql
1. Intro
2. What is flow charts
3. What is threads
4. Reverse string in java
5. Prime number in java
6. Joins, types of inner join
7. Integration in react?
8. React components
9. Validation code in javascript
10.Table in sql
11.Schema
12.Keys in sql
13.Highest salary give 2 approach
14.Relocation?
15.Are you ready for all shifts?
1 .self introduction
2.he asked to write a code reverse a string .
3.what is method overriding
And again asked about same topic some questions like ...which annotation using in
method overriding
And sub questions on that topic
4.abstract class interfaces difference
5.sql identity key
6.delete and truncate difference
7.Summary question we fetch data name Start with name and i said u can use like
operator
8.union and union all difference
9. Auto boxing unboxing in java
10.arraylist vs linked list difference
11.u can implement logic on abstract class..
12.what sealed class.
13.distinct operator use
14 .Between operator
Interview complete
Cluster 1
Some hr questions at the start of the interview
Difference between bubble and selection sort
Implement bubble sort
Program on reverse a string
What are string object methods..
Explain string , string builder, string buffer
So u know sql ..
Difference between drop and truncate
And last structure of html....
1.Introduction
2.Rate yourself in java(I said 4/5)
3.Difference between throw and throws keyword
4.Then he said to write a program for copy constructor
5.Program to implement stack in java
6.Difference between hashmap and hashtable
7.What is reflection in java?
8.this() keyword and super() keyword in java?
1. Self Introduction
2. Which technologies do you know?
3. Rate yourself In java?
4. Reversed String Program in java?
5. Diff. btn Array and ArrayList?
6. Sealed Class
7. Abstract Class and Interfaces (follow up questions)
8. What is Static?
9. ConStructors &its types?
10. Method Overriding
11. Which Annotation we used for overriding?
12. Diff. Between Read-only and Constant?
13. Boxing and Unboxing
14. Primary key and unique key diff
15. Union and union All difference
16. Which keyword we used for finding unique data in column
17. Which keyword is used for sorting data
18. Sql query to find name starts with K and end with A.
19. Delete and truncate diff.
● If we write a Java program, will it run on Microsoft Windows and Linux both?
● If yes, then how is it happening?
● Fibonacci series using recursion (Java code)
● Reverse a string (Java)
● What is recursion?
● OOPS – brief explanation
● Difference between encapsulation and abstraction with example
● Difference between static and final
● Reverse an array (Java)
● What is SQL?
● Get a result where two names are present, one from T and one from S, in
descending order
● What is a database?
● What is data in that database?
● Difference between RDBMS and DBMS
● What are the data types in DBMS?
● Triggers in SQL
Cluster 1(Java):
Interview date: 21/4
1. Introduce yourself
2.About your academic project and internship project
3.Why java is so popular
4.What are 4 pillors of OOPS
5. Interface vs Abstraction
6. Encapsulation
7. All access modifiers
8. Default vs public vs protected
9. string stringbuffer and stringbuilder
10. Can protected member accessible by classes in other packages
11.package vs interface
12.Write java code to find duplicates
13. Rate yourself in SQL
14.Primary key vs foreign key
15. When to use Primary key, unique in real world
16. All Normalization forms with examples
17. How much you know about HTML, Css
Cluster 2
Date: 22 April 2025
Time slot: 8am-12pm
Total Time: 30-40min
1. Introduce yourself.
OOPs
2. Explain polymorphism and abstraction
3.memory management in python
4.Anonymous function
Coding
9. Rev string without using any built-in function
10.create dic and assign key value pairs and display the second key-value pair
11.merge two dictionaries
1. My experience,
2. Code:
3. Implement inheritance
4. Follow up: write a method in child class and create an object and call that
method
5. Sql:
6. Outer Join Query
7. Theory:
8. OOP
9. Project based
My interview experience
Slot 12 to 4 pm
1. Introduce yourself
2. Willing to resolute
3. Willing to work in any shifts
4. Can we have multiple catches
5. Can we have catch block without try
6. Difference between arraylist and linkedlist
7. Write a code to return true if u get odd num in a list
8. Difference between method overloading and overriding
9. Cursors
10.Functions vs procedures
11.Drop vs truncate
12.In vs between
1. Introduction
2. Mostly on database
3. Types of Join example for any join
4. Write query to find max salary
1. I did project in python and he asked why you choose python and
why don't you java
2. Inheritance
3. Encapsulation
4. Primary key in sql
5. Overloading code
6. Are you able to work in any shifts
1)Introduction,
2)Code find the largest word in the name