Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Cognizant Team. If you also belong to the team, you can get access from here

Cognizant Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Cognizant Junior Software Engineer Interview Questions and Answers

Updated 31 Mar 2025

39 Interview questions

A Junior Software Engineer was asked 9mo ago
Q. What are generics in C++?
Ans. 

Generics in C++ allow for writing generic algorithms and data structures that work with any data type.

  • Generics in C++ are implemented using templates, which allow for writing code that can work with any data type.

  • Templates are a way to create generic functions or classes without specifying the data type.

  • For example, a generic function to find the maximum of two values can be written using templates.

  • Another example...

🔥 Asked by recruiter 4 times
A Junior Software Engineer was asked 10mo ago
Q. What are the concepts of OOPS?
Ans. 

Object-oriented programming concepts that focus on objects and classes for code organization and reusability.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit (class).

  • Inheritance: Ability of a class to inherit properties and behavior from another class.

  • Polymorphism: Ability to present the same interface for different data types.

  • Abstraction: Hiding the complex implementation detai...

Junior Software Engineer Interview Questions Asked at Other Companies

asked in Cognizant
Q1. If there are 10 balls, 2 red, 5 blue, and 3 orange, and one ball ... read more
Q2. What is RDBMS and SQL query to retrieve data from database.
Q3. What is the difference between stack memory and heap memory?
Q4. What is infotainment system in car?
Q5. Consider a box containing 10 balls numbered from 1 to 10. What is ... read more
🔥 Asked by recruiter 3 times
A Junior Software Engineer was asked 10mo ago
Q. Write a program to check if a string is a palindrome.
Ans. 

A program to check if a given string is a palindrome or not.

  • Create a function that takes a string as input.

  • Reverse the string and compare it with the original string.

  • If they are the same, then the string is a palindrome.

  • Examples: 'madam' is a palindrome, 'hello' is not a palindrome.

A Junior Software Engineer was asked 10mo ago
Q. Explain what a package is.
Ans. 

A package is a way to organize related classes and interfaces in Java.

  • Packages help in organizing code and avoiding naming conflicts

  • Packages can be nested within each other

  • Packages are declared using the 'package' keyword at the beginning of a Java file

What people are saying about Cognizant

View All
schedule2
Verified Icon
2w
works at
Cognizant
Salary expectation
I have 5+ years of experience in springboot microservices, currently working in CTS and having 10L CTC , wanted to switch in Infosys or Accenture like companies, how much should I ask for 15L-18L ? Just worried if I ask more they can reject my application, please help me with some numbers
Got a question about Cognizant?
Ask anonymously on communities.
A Junior Software Engineer was asked 10mo ago
Q. Write a program to find the sum of two numbers.
Ans. 

A program to find the addition of two numbers

  • Declare two variables to store the numbers

  • Take input from user or use predefined values

  • Add the two numbers together

  • Print the result

A Junior Software Engineer was asked 10mo ago
Q. What are the main concepts of Java?
Ans. 

Main concepts in Java include object-oriented programming, inheritance, polymorphism, encapsulation, and abstraction.

  • Object-oriented programming: Java is an object-oriented language where everything is treated as an object.

  • Inheritance: Allows a class to inherit properties and behavior from another class.

  • Polymorphism: Ability of an object to take on many forms.

  • Encapsulation: Bundling of data and methods that operat...

A Junior Software Engineer was asked 12mo ago
Q. How would you sort an array using the Stream API?
Ans. 

Sort array of strings using Java Stream API

  • Use Arrays.stream() to convert array to stream

  • Use sorted() method to sort the stream

  • Use collect() method to convert the sorted stream back to array

Are these interview questions helpful?
🔥 Asked by recruiter 2 times
A Junior Software Engineer was asked 12mo ago
Q. Write a function that reverses a string. The input string is given as an array of characters s.
Ans. 

Reverse a given string

  • Use a loop to iterate through the characters of the string

  • Swap the characters from start to end of the string

  • Repeat until the entire string is reversed

A Junior Software Engineer was asked 12mo ago
Q. How do you reverse an array of numbers?
Ans. 

To reverse an array of numbers, iterate through the array and swap elements from start to end.

  • Iterate through the array using two pointers, one starting from the beginning and the other from the end.

  • Swap elements at the two pointers and move the pointers towards the center until they meet.

  • Example: Input array [1, 2, 3, 4, 5], after reversing becomes [5, 4, 3, 2, 1].

🔥 Asked by recruiter 3 times
A Junior Software Engineer was asked 12mo ago
Q. What are data types?
Ans. 

Data types are classifications of data items that determine the possible values and operations that can be performed on them.

  • Data types define the type of data that a variable can hold, such as integers, strings, or booleans.

  • Examples of data types include int (integer), float (floating point number), char (character), and bool (boolean).

  • Data types also determine the size of the variable in memory and the range of ...

Cognizant Junior Software Engineer Interview Experiences

40 interviews found

Junior Software Engineer Interview Questions & Answers

user image Vaishnavi Devadiga

posted on 30 Dec 2024

Interview experience
5
Excellent
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Campus Placement and was interviewed in Nov 2024. There were 2 interview rounds.

Round 1 - Aptitude Test 

Aptitude test includes number series, profit and loss, percentage, train problems

Round 2 - Technical 

(2 Questions)

  • Q1. About SQL queries and database
  • Q2. About object oriented programming, pointers, arrays, linked list
Interview experience
2
Poor
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

The aptitude test was quite easy.

Round 2 - Coding Test 

Questions are moderated.

Round 3 - Technical 

(2 Questions)

  • Q1. Introduce your self.
  • Ans. 

    I am a recent graduate with a degree in Computer Science and a passion for coding. I have experience with Java, Python, and web development.

    • Recent graduate with a degree in Computer Science

    • Passionate about coding and software development

    • Proficient in Java, Python, and web development

    • Experience with projects such as building a web application using Django

  • Answered by AI
  • Q2. The interviewer asked me about java, oops concepts and some questions from data structures and some numerical in last.
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
No response

I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. Does platform independent in JAVA?
  • Ans. 

    Yes, Java is platform independent due to its ability to compile code into bytecode that can run on any platform with a Java Virtual Machine (JVM).

    • Java code is compiled into bytecode, which can run on any platform with a JVM.

    • The JVM acts as an intermediary between the Java code and the underlying platform.

    • This allows Java programs to be written once and run on any platform without modification.

  • Answered by AI
  • Q2. Do you Know about OOPS?
  • Ans. 

    OOPS stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.

    • OOPS focuses on creating objects that contain both data and methods to manipulate that data.

    • Encapsulation, inheritance, and polymorphism are key principles of OOPS.

    • Examples of OOPS languages include Java, C++, and Python.

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Assignment 

Easy question contains coding aptitude and java basic question

Round 2 - Technical 

(2 Questions)

  • Q1. String reverse with different approaches
  • Ans. 

    Reverse a string using different approaches

    • Use built-in functions like reverse() or StringBuilder.reverse()

    • Iterate through the string and build a new string in reverse order

    • Use recursion to reverse the string

  • Answered by AI
  • Q2. Java basic to advance and resume based question

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Oops in cpp programing
  • Ans. 

    In C++, 'oops' typically refers to Object-Oriented Programming concepts and principles.

    • Oops in C++ refers to Object-Oriented Programming concepts like classes, objects, inheritance, polymorphism, and encapsulation.

    • Common mistakes in C++ programming include memory leaks, null pointer dereferencing, and improper use of pointers.

    • Example: Forgetting to delete dynamically allocated memory can lead to memory leaks in C++ pro...

  • Answered by AI
  • Q2. What is generic in cpp
  • Ans. 

    Generics in C++ allow for writing generic algorithms and data structures that work with any data type.

    • Generics in C++ are implemented using templates, which allow for writing code that can work with any data type.

    • Templates are a way to create generic functions or classes without specifying the data type.

    • For example, a generic function to find the maximum of two values can be written using templates.

    • Another example is a...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Chill

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. What is oops concepts?
  • Ans. 

    Object-oriented programming concepts that focus on objects and classes for code organization and reusability.

    • Encapsulation: Bundling data and methods that operate on the data into a single unit (class).

    • Inheritance: Ability of a class to inherit properties and behavior from another class.

    • Polymorphism: Ability to present the same interface for different data types.

    • Abstraction: Hiding the complex implementation details an...

  • Answered by AI
  • Q2. Write a programof palindrome of string?
  • Ans. 

    A program to check if a given string is a palindrome or not.

    • Create a function that takes a string as input.

    • Reverse the string and compare it with the original string.

    • If they are the same, then the string is a palindrome.

    • Examples: 'madam' is a palindrome, 'hello' is not a palindrome.

  • Answered by AI
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via AmbitionBox and was interviewed in Apr 2024. There was 1 interview round.

Round 1 - Technical 

(4 Questions)

  • Q1. Define the Oops pillars.
  • Ans. 

    Oops pillars are the four main principles of object-oriented programming: Inheritance, Encapsulation, Abstraction, and Polymorphism.

    • Inheritance: Allows a class to inherit properties and behavior from another class.

    • Encapsulation: Bundling data and methods that operate on the data into a single unit.

    • Abstraction: Hiding the complex implementation details and showing only the necessary features of an object.

    • Polymorphism: A...

  • Answered by AI
  • Q2. Define internal working of Hashmap
  • Ans. 

    Hashmap is a data structure that stores key-value pairs and uses hashing to quickly retrieve values based on keys.

    • Hashmap uses an array to store key-value pairs.

    • Keys are hashed to determine the index where the value will be stored.

    • Collision handling techniques like chaining or open addressing are used to deal with multiple keys hashing to the same index.

    • Retrieving a value involves hashing the key to find the index and ...

  • Answered by AI
  • Q3. Define multi threading & synchronisation
  • Ans. 

    Multithreading is the ability of a CPU to execute multiple threads concurrently, while synchronization is the coordination of multiple threads to ensure data consistency.

    • Multithreading allows multiple threads to run concurrently on a single CPU core.

    • Synchronization is used to coordinate access to shared resources among multiple threads.

    • Examples of synchronization mechanisms include locks, semaphores, and monitors.

    • Multi...

  • Answered by AI
  • Q4. Difference between abstract class & functional interface
  • Ans. 

    Abstract class can have both abstract and non-abstract methods, while functional interface can have only one abstract method.

    • Abstract class can have constructors, fields, and methods, while functional interface can only have one abstract method.

    • Abstract class can have abstract and non-abstract methods, while functional interface can only have one abstract method.

    • Abstract class can provide default implementations for me...

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-

I applied via Campus Placement

Round 1 - Aptitude Test 

It was a decent aptitude test if you practice well you can clear it.

Round 2 - Coding Test 

In coding test they asked about oops concepts and said to code.And all the basic programming questions.

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Second largest number in array

Round 2 - Technical 

(2 Questions)

  • Q1. Sort array using stream api
  • Ans. 

    Sort array of strings using Java Stream API

    • Use Arrays.stream() to convert array to stream

    • Use sorted() method to sort the stream

    • Use collect() method to convert the sorted stream back to array

  • Answered by AI
  • Q2. Reverse a string
  • Ans. 

    Reverse a given string

    • Use a loop to iterate through the characters of the string

    • Swap the characters from start to end of the string

    • Repeat until the entire string is reversed

  • Answered by AI
Round 3 - HR 

(2 Questions)

  • Q1. Introduce yourself
  • Q2. Strength and weakness

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Aptitude Test 

Normal aptitude questions were asked

Round 2 - Coding Test 

Ques from java, sql were asked

Cognizant Interview FAQs

How many rounds are there in Cognizant Junior Software Engineer interview?
Cognizant interview process usually has 2-3 rounds. The most common rounds in the Cognizant interview process are Technical, Aptitude Test and Coding Test.
How to prepare for Cognizant Junior Software Engineer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Cognizant. The most common topics and skills that interviewers at Cognizant expect are Engineering Management, Java, Javascript and Software Engineering.
What are the top questions asked in Cognizant Junior Software Engineer interview?

Some of the top questions asked at the Cognizant Junior Software Engineer interview -

  1. If there are 10 ball 2 red, 5 blue ,3 orange and one ball is picked randomly wh...read more
  2. How to check the object locks and steps to make the job r...read more
  3. Check whether the input string is palindrome or not ? No lang constr...read more
How long is the Cognizant Junior Software Engineer interview process?

The duration of Cognizant Junior Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

4.1/5

based on 47 interview experiences

Difficulty level

Easy 33%
Moderate 67%

Duration

Less than 2 weeks 38%
2-4 weeks 29%
4-6 weeks 10%
More than 8 weeks 24%
View more
Cognizant Junior Software Engineer Salary
based on 5.8k salaries
₹2.6 L/yr - ₹8.2 L/yr
7% more than the average Junior Software Engineer Salary in India
View more details

Cognizant Junior Software Engineer Reviews and Ratings

based on 462 reviews

3.4/5

Rating in categories

3.4

Skill development

3.4

Work-life balance

2.9

Salary

3.1

Job security

3.4

Company culture

2.6

Promotions

3.1

Work satisfaction

Explore 462 Reviews and Ratings
Associate
73k salaries
unlock blur

₹5.3 L/yr - ₹12.5 L/yr

Programmer Analyst
56.2k salaries
unlock blur

₹3.5 L/yr - ₹7.3 L/yr

Senior Associate
55.1k salaries
unlock blur

₹9.7 L/yr - ₹23.4 L/yr

Senior Processing Executive
29.8k salaries
unlock blur

₹2.3 L/yr - ₹6.5 L/yr

Technical Lead
19k salaries
unlock blur

₹6 L/yr - ₹21 L/yr

Explore more salaries
Compare Cognizant with

TCS

3.6
Compare

Infosys

3.6
Compare

Wipro

3.7
Compare

Accenture

3.7
Compare
write
Share an Interview