My interview with Cognizant began on a light note, with the interviewer clarifying that the company operates with integrity and does not offer bribes. From there, the discussion transitioned to my resume and technical skills.
Technical Questions
Java
Since my primary skillset is in Java, the interviewer asked why Java is widely used and how it compares to other languages like Python, C++, and JavaScript. The discussion then moved into more detailed Java topics:
- OOP Concepts in Java.
- The use of the strictfp keyword.
- Handling exceptions in Java.
- The purpose of the Object class.
- Why interfaces are preferred over abstract classes.
He asked around 6-7 in-depth questions on these topics, delving into the intricacies of Java.
SQL
The next focus area was SQL. Key questions included:
- Difference between SQL and MySQL.
- Why is SQL used?
- Naming platforms that use SQL as a language.
- Writing a query using an inner join.
- Difference between DDL and DML commands.
- Purpose of procedures and indexes in SQL.
While these questions required a solid understanding, the interviewer sought a general overview rather than in-depth answers.
Programming Challenges
The interviewer gave me three programming problems to solve on their platform:
- A simple addition problem.
- A program to generate the Fibonacci sequence using recursion.
- Dividing an array of size n into sub-arrays of size m.
HR Questions
After the technical rounds, we moved to HR-related questions, which focused on my adaptability and teamwork skills:
- Drawbacks and benefits of working in a team.
- Where do you see yourself in five years?
- Are you open to working in multiple locations?
- Are you open to working day and night shifts?
Final Thoughts
The interview was conducted in a friendly and professional manner, making it an enjoyable experience. The interviewer showed genuine interest in understanding both my technical expertise and personal preferences.
For future aspirants:
- Be thorough with your primary programming language (e.g., Java, Python).
- Have a good understanding of SQL basics and be ready to write queries.
- Practice problem-solving for basic coding challenges.
- Be honest and confident during the HR round.
Overall, it was a pleasant and insightful process.