0% found this document useful (0 votes)
49 views6 pages

Interview Questions

The document provides a list of technical questions asked by various companies during job interviews for Python developer roles. The questions cover a wide range of Python topics including data structures (list, tuple, dictionary), OOP concepts (class, inheritance, polymorphism), file handling, SQL, databases (MySQL, PostgreSQL), algorithms, and more. Specific questions include the differences between list and tuple, shallow copy and deep copy, args and kwargs, lambda functions, map functions, methods vs functions, ternary operators, data types, loops, string operations, and more. The companies represented in the questions include Craftsvilla, Neosoft Technologies, KPMG, Matchpoint GPS, Trackpoint GPS, Infobeans, Capgem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views6 pages

Interview Questions

The document provides a list of technical questions asked by various companies during job interviews for Python developer roles. The questions cover a wide range of Python topics including data structures (list, tuple, dictionary), OOP concepts (class, inheritance, polymorphism), file handling, SQL, databases (MySQL, PostgreSQL), algorithms, and more. Specific questions include the differences between list and tuple, shallow copy and deep copy, args and kwargs, lambda functions, map functions, methods vs functions, ternary operators, data types, loops, string operations, and more. The companies represented in the questions include Craftsvilla, Neosoft Technologies, KPMG, Matchpoint GPS, Trackpoint GPS, Infobeans, Capgem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Craftsvilla:

● diff between list and tuple. which is faster and why


● diff between shallow copy and deep copy with example
● diff between args and kwargs
● what is lambda function? how to use it?
● what is map function? how to use map function with lambda with example(syntax)
● is method and function different? if yes, how?
● what is ternary operator? how we can implement it in python with example

Neosoft Technologies:

1st Round:
● Difference between web server and app server
● Draw architecture of your current project
● Which one is faster: set or list
● Program :
Given a string: “ab123$zc2”
Output: “cz123$ba2”
(​Note​​: without using direct swapping. Code should run for any given string)
● Git rebase
● HTTPS
● Use of Pandas
● Use of filezilla and putty
● Bubble sort
● Chmod permissions
● celery

2nd Round:
● Program:
1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
● Diff between list and tuple
● Dictionary
● diff between array and dictionary
● deep copy and shallow copy
● what can be done to optimize speed of website
● diff between session and cookie
● What is cron jobs in ubuntu?
● diff between div and span
● diff between inner join and cross join
● SQL injection
KPMG:
● Difference between list tuple
● Why you use postgres?
● Difference between postgresql and mysql
● How to start postgres service?
● Advanced features of postgres
● Store procedures - DB
● Joins- join, inner join , Left join, Right join
● How do you send request and how you get response?
● You get response in which format?
● Real time scenario - for payment gateway
What if the amount got deducted from your account but you didn’t receive response
yet?
● Memory management in python
● Is memory management of python is best feature
● Advantages of python
● Pickling unpickling
● List python packages
● ORM methods of ODOO
● Decorators in python
● which is faster Tuple or list
● what is slicing
● what is negative indexing
● difference between copy and deepcopy
● can we trigger garbage collector?
● advantages of tuples
● how does joins work in oracle
● django architecture

Matchpoint GPS + Trackpoint GPS:


Written:
● algo for even no only
● diff between get, post
● diff primary, unique, candidate
● algo print prime no 1-30
● diff http, https
● create user with read only privilege :sql
● find second highest salary from table:sql query
● diff hashmap, array datalist
● sort given list in asc order
Interview:
● list comprehension
● git reset or git commands
● grep in linux
● nginx or apache as service based info
● json dumps and loads diff
● send api only using requests library ... list every parameter
● join how to use
● how to install packages in python
● threading
● how to write file
● If given a file, how will you grep those lines having a particular pattern of
numbers(e.g. 1234) in it?
● how to setup postgres
● if there are two servers, how will you read data from one server and write it into
another?
● How to connect to the database through python code?
● Pythons re module
● filter,map,reduce
● How to write to an existing file

Infobeans:
● Difference between range and xrange.
● Difference between list extend and append.
● What is the Zip in python?
● How to add pep8 plugin pycharm?
● How to write console output in file?
● What is lambda function in python?
● Fibonacci series without recursion.
● Methods in file handling.
● What is polymorphism in python?
● *args and **kwargs.
● Difference between .py and .pyc file.

Capgemini:
● Constructor overloading.
● Range and xrange difference.
● *args and **kwargs difference.
● Data types in python.
● Decorators in python.
● Suppose excel file have following data. Which python data type you will use to store this data

Col1 Col2 Col3 Col4


1 2 3 ‘A’
5 3.0 8
‘L’ 6 4 9

What value will be stored for blank column?


● Function definition:-

def ABC(*args, **kwargs):

--------

--------

a = ABC(1, b=2, 3, c=4)

Will this throw an error or not, if yes what will be the error message?

● I have a list [[1, 2, ’ ‘], [3, ’ ‘, 4, ‘ ‘]], how to remove the ‘ ‘ from the list?
● Class Inheritance.
● How do we define multiple inheritance in Python?
● How garbage collection takes place in python?
● When do we define unit test in python?
● why do we use generator in python?
● Memory Management.
● Database connectivity using python.

Spinnaker llc:
● Range and xrange difference.
● Decorators in python.
● Find second largest salary.
● What is function and procedures in SQL?
● What is Aggregation in SQL?
● What is cursor in SQL?
Create a one DataFrame by merging 24 files in pandas without repeating the header.
● How to change the value 12.39- to -12.39 in a column?

Bank Of America:
● List comprehensions
● List slice operation
● How you create class or how to define class name in python process
● Type of class
● Type of Copy
● Difference between list and Tuple
● Feature of overriding
● Difference of overloading and overriding
● Live example of tuple in project
● Feature of ​Abstract classes
● data types
● oops concept
● pickling unpickling
● can we return multiple values from method? if yes, how?
● what is polymorphism, inheritance
● where you have used tuple in your application
● does dictionary stores duplicate values? if yes, if you are fetching with key, which
value it will return
● can we make object of class as key? if yes, how it works?
● private method in python
● memory management in python
● does developer have access to manage the memory?How can one manage it?
● What are the ways to optimize the code

TCS:
● How to run linux command by using python script?
● How to read text file?
● How to get particular value from apache response?
● How to create stack?? Write the program?
● How to create Queue? Write a programme?
● How to sort dictionary?
● How to connect postgresql by using python?
● What is the use of Pandas?? Which is more faster panda or numpy?
● Overriding example? And write the program?
● How to find file by using python and how to open it?
● diff between Mutable and immutable, Why string is immutable?
● Diff between Tuple and Dictionary?
● How to convert 2 list to dictionary?
● Operator Overloading
● Create and execute a customize command in Linux as well as execute it through python

Some more interview questions:

1) diff between list and tuples


2) try-except, assert, enumerate, zip, itertools, calendar, datetime package
3) file operations, methods
4) operator overloading
5) magic functions
6) dict questions, duplicate key in dict, sorting dict
7) class methods vs static methods
8) threading
9) multiprogramming, multithreading, multitasking
10) URL encoding
11) Numpy, CSV libraries
12) UTF-8 vs UTF-16
13) Counter, defaultdict, namedtuple, ordereddict
14) List comprehension, if-else in List comprehension
15) roman number program, pyramid programs
16) generators, decorators, iterators
17) garbage collection in python
18) diff types of arguments in python
19) inheritance, overriding, overloading in python
20) string, list operations
21) data hiding in python
22) input vs raw_input, range vs xrange, str vs repr, math.floor vs math.trunc, 'r' vs 'rb' mode, 'r+' vs
'w+' mode
23) diff between python 2 and python 3
24) pass by value/pass by reference
25) disadvantages of python
26) Implement stack using list.
27) Complex no in python.
28) Unordered list of length 100 having unique integers between 1 to 100. Suppose I replace one of
the element to 0 by using random index, how you can find the replaced element?

Study Links:

Programiz

Python language tricks

Python challenging exercise

You might also like