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
3.8

based on 47.9k Reviews

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

Cognizant Jr Python Developer Interview Questions and Answers

Updated 30 Jun 2024

Cognizant Jr Python Developer Interview Experiences

1 interview found

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

(1 Question)

  • Q1. What is python .why python used mostly .
  • Ans. 

    Python is a high-level programming language known for its simplicity, readability, and versatility. It is widely used for web development, data analysis, artificial intelligence, and more.

    • Python is easy to learn and read, making it a great choice for beginners and experienced developers alike.

    • Python has a large standard library and many third-party packages, making it suitable for a wide range of applications.

    • Python is...

  • Answered by AI

Skills evaluated in this interview

Interview questions from similar companies

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

(1 Question)

  • Q1. Behavorial Questions

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

Interview Questionnaire 

6 Questions

  • Q1. Basic in python
  • Q2. What is inheritance
  • Ans. 

    Inheritance is a mechanism in object-oriented programming where a new class is created from an existing class.

    • Allows for code reuse and avoids redundancy

    • The new class (subclass) inherits properties and methods from the existing class (superclass)

    • Subclass can add new properties and methods or override existing ones

    • Example: A Car class can inherit properties and methods from a Vehicle class

  • Answered by AI
  • Q3. What is lamda functions
  • Ans. 

    Lambda functions are anonymous functions that can be defined without a name.

    • Lambda functions are defined using the lambda keyword.

    • They can take any number of arguments, but can only have one expression.

    • They are often used as arguments for higher-order functions.

    • Example: lambda x: x**2 defines a lambda function that squares its input.

  • Answered by AI
  • Q4. What is Numpy
  • Ans. 

    Numpy is a Python library for numerical computing with support for large, multi-dimensional arrays and matrices.

    • Numpy provides efficient mathematical operations on arrays.

    • It is widely used in scientific computing, data analysis, and machine learning.

    • Numpy arrays are homogeneous and can be indexed and sliced like lists.

    • Broadcasting allows for element-wise operations on arrays of different shapes.

    • Numpy also includes line...

  • Answered by AI
  • Q5. What is pandas
  • Ans. 

    Pandas is a Python library used for data manipulation and analysis.

    • Pandas provides data structures for efficiently storing and manipulating large datasets.

    • It offers tools for data cleaning, merging, reshaping, and visualization.

    • Pandas can handle various data formats such as CSV, Excel, SQL databases, and JSON.

    • It is widely used in data science, finance, economics, and other fields.

    • Example: df = pd.read_csv('data.csv') c

  • Answered by AI
  • Q6. How many types operators
  • Ans. 

    There are 7 types of operators in Python.

    • Arithmetic operators (+, -, *, /, %, //, **)

    • Comparison operators (==, !=, >, <, >=, <=)

    • Assignment operators (=, +=, -=, *=, /=, %=, //=, **=)

    • Logical operators (and, or, not)

    • Bitwise operators (&, |, ^, ~, <<, >>)

    • Identity operators (is, is not)

    • Membership operators (in, not in)

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Little bit of English and then ask the basics in python

Skills evaluated in this interview

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

I applied via Company Website and was interviewed in Dec 2024. There was 1 interview round.

Round 1 - One-on-one 

(2 Questions)

  • Q1. What is a Python program that can be used to determine the best price for selling stocks?
  • Q2. Can you write a Python program to determine whether two given words are anagrams of each other without using built-in functions?

Interview Preparation Tips

Interview preparation tips for other job seekers - Engage in these types of practices before attending the Infosys interview.
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

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

Round 1 - Technical 

(5 Questions)

  • Q1. Difference between list & tuple?
  • Ans. 

    List is mutable, tuple is immutable in Python.

    • List uses square brackets [], tuple uses parentheses ().

    • List elements can be changed, added, or removed, tuple elements cannot be changed.

    • Lists are used for collections of items that may need to be modified, tuples are used for fixed collections of items.

    • Example: list_example = [1, 2, 3], tuple_example = (4, 5, 6)

  • Answered by AI
  • Q2. What is namespace and its types?
  • Ans. 

    Namespace is a way to organize variables and functions in a program to avoid naming conflicts.

    • Namespace helps in avoiding naming conflicts by providing a unique space for each identifier.

    • Types of namespaces include global namespace, local namespace, built-in namespace, and module namespace.

    • Example: In Python, each module has its own namespace where all the variables and functions defined in that module reside.

  • Answered by AI
  • Q3. Write code to explain multiple inheritance
  • Ans. 

    Multiple inheritance in Python allows a class to inherit attributes and methods from more than one parent class.

    • Python supports multiple inheritance by allowing a class to inherit from multiple parent classes.

    • The order of parent classes in the inheritance list matters, as methods are searched for in the order they appear.

    • Diamond problem can occur in multiple inheritance when two parent classes have a common ancestor cl...

  • Answered by AI
  • Q4. Define lambda function and give an example?
  • Ans. 

    Lambda function is an anonymous function defined using the lambda keyword in Python.

    • Lambda functions are used for creating small, one-time use functions without a name.

    • Syntax: lambda arguments: expression

    • Example: double = lambda x: x * 2

  • Answered by AI
  • Q5. Oops concept,decorator,iterator.

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via Approached by Company and was interviewed in Nov 2024. There were 2 interview rounds.

Round 1 - Technical 

(1 Question)

  • Q1. Write a code for reverse an integer?
  • Ans. 

    Use string manipulation to reverse an integer in Python.

    • Convert the integer to a string

    • Use string slicing to reverse the string

    • Convert the reversed string back to an integer

  • Answered by AI
Round 2 - Technical 

(1 Question)

  • Q1. Differences between docker image and container
  • Ans. 

    Docker image is a template used to create containers, while a container is a running instance of an image.

    • Docker image is read-only, while a container is a writable instance of an image.

    • Multiple containers can be created from the same image, but each container is isolated from others.

    • Containers can be started, stopped, moved, and deleted, while images are static and cannot be changed.

    • Images are used to package an appli...

  • Answered by AI
Interview experience
4
Good
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Not Selected

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

Round 1 - Coding Test 

String,lists,dict and coding knowledge

Interview Preparation Tips

Interview preparation tips for other job seekers - reverse a string without using in built functions
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. List & tuple diff
  • Q2. Pickling & unpickling

Interview Preparation Tips

Interview preparation tips for other job seekers - The interview was very easy and basic questions asked. I answered all of them correctly and also solved coding question but I got stuck in one question and interviewer told me she is done with interview. Next day, I called HR and asked her for feedback, she told me that the feedback was not positive. I'm not getting what went wrong as she told she didn't got detailed feedback just that it's not positive.
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I was interviewed in Nov 2024.

Round 1 - HR 

(2 Questions)

  • Q1. : Tell me about yourself
  • Q2. What is the difference between hard work and smart work? Tell me about the most boring job you have ever had?

Interview Preparation Tips

Interview preparation tips for other job seekers - An Inspection Marketplace designed to streamline the third-party inspection process through innovative digital technology.
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Telephonic Call 

(2 Questions)

  • Q1. What is http? rest api?
  • Ans. 

    HTTP is a protocol used for transferring data over the internet. REST API is a set of rules for building web services.

    • HTTP stands for Hypertext Transfer Protocol, used for communication between web servers and clients

    • REST API (Representational State Transfer) is a set of rules for building web services that adhere to the principles of REST

    • RESTful APIs use standard HTTP methods like GET, POST, PUT, DELETE to perform CRU...

  • Answered by AI
  • Q2. What is time complexity?
  • Ans. 

    Time complexity refers to the amount of time an algorithm takes to run as a function of the input size.

    • It measures how the runtime of an algorithm grows as the input size increases.

    • Common time complexities include O(1) constant time, O(log n) logarithmic time, O(n) linear time, O(n^2) quadratic time, and O(2^n) exponential time.

    • Understanding time complexity helps in analyzing and optimizing algorithms for efficiency.

    • Ex...

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Telephonic interview with questions on python oops, threading, sql indexing etc.

Skills evaluated in this interview

Cognizant Interview FAQs

How many rounds are there in Cognizant Jr Python Developer interview?
Cognizant interview process usually has 1 rounds. The most common rounds in the Cognizant interview process are HR.

Tell us how to improve this page.

Interview Questions from Similar Companies

TCS Interview Questions
3.7
 • 10.3k Interviews
Accenture Interview Questions
3.9
 • 8k Interviews
Infosys Interview Questions
3.7
 • 7.5k Interviews
Wipro Interview Questions
3.7
 • 5.5k Interviews
Capgemini Interview Questions
3.8
 • 4.8k Interviews
Tech Mahindra Interview Questions
3.6
 • 3.8k Interviews
HCLTech Interview Questions
3.5
 • 3.7k Interviews
Genpact Interview Questions
3.9
 • 3k Interviews
LTIMindtree Interview Questions
3.8
 • 2.9k Interviews
IBM Interview Questions
4.1
 • 2.4k Interviews
View all
Cognizant Jr Python Developer Salary
based on 5 salaries
₹4 L/yr - ₹6.8 L/yr
108% more than the average Jr Python Developer Salary in India
View more details
Associate
72.4k salaries
unlock blur

₹5.1 L/yr - ₹15.9 L/yr

Programmer Analyst
55.4k salaries
unlock blur

₹2.4 L/yr - ₹9.6 L/yr

Senior Associate
48.3k salaries
unlock blur

₹8.9 L/yr - ₹27.1 L/yr

Senior Processing Executive
28.6k salaries
unlock blur

₹1.8 L/yr - ₹9 L/yr

Technical Lead
17.6k salaries
unlock blur

₹5.9 L/yr - ₹24.2 L/yr

Explore more salaries
Compare Cognizant with

TCS

3.7
Compare

Infosys

3.7
Compare

Wipro

3.7
Compare

Accenture

3.9
Compare

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Did you find this page helpful?
Yes No
write
Share an Interview