Professional Documents
Culture Documents
Ans: Python is a high level, interpreted, interactive, dynamically typed, loosely coupled, object oriented
programming language with automatic memory management and garbage collector.
Ans: Dict and List comprehensions are syntactic sugar constructs that provide a way to build a dictionary
or list from a starting dictionary or list whilst altering or filtering elements.
4)What Is The Statement That Can Be Used In Python If The Program Requires No Action But Requires It
Syntactically?
Ans: The statement pass can be used when program requires no action.
Ans: chr() function takes a Unicode code point (integer) and returns a single Unicode character, while
ord() function is used to return an integer of the given single Unicode character.
6)What Is Rstrip?
Ans: The rstrip() method returns a copy of the string with trailing characters removed (based on
the string argument passed).
Ans: The join() function is used to join the list of strings with given argument and return a new
string. If no argument is given the substrings in the list are joined by white space.
Ans: The title() function is used on a string to capitalize each substring just after the white space.
Ans: Memory management in Python involves a private heap containing all Python objects and data
structures. The management of this private heap is ensured internally by the Python memory manager.
11) What Is The Set Object?
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
24) What happens if an error occurs that is not handled in the except block?
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
Ans:
34) What are positional arguments and keyword arguments? How to pass and access these arguments
Ans:
Ans:
36) Explain static method, abstract method/class
Ans:
Ans:
Ans:
Ans:
Ans:
40) How do you check whether the two variables are pointing to the same object ?
Ans:
Ans:
42) How do you programmatically know the version of Python you are using?
Ans:
Ans:
44) What happens in the background when you run a Python file?
Ans:
Ans:
46) What is the difference between Python append () and extend () functions?
Ans:
48) How to walk through a list in a sorted order without sorting the actual list?
Ans:
Ans:
Ans:
Ans:
53) How do you open an already existing file and add content to it?
Ans:
54) What mode is used for both writing and reading in binary format in file?
Ans: w+ mode is used for both writing and reading in binary format in file.
Ans:
Ans:
Ans:
58) How can you randomize the items of a list in place in Python?
Ans:
59) What Is the Biggest Challenge Facing Your Current Job Right Now?
Ans: I have always felt that interactive work is better. Here at my current job, people interact so less and
that our work gets hampered. That I think is the biggest challenge here.
Ans: Every course I’ve completed in the minimum required time except for my M.Tech. It is a 2 years
course but it took 3 years to complete because of my project extension. I consider that is my biggest
failure.
Ans: I am working here as a software analyst for more than a year and I have got nothing to learn more.
Initially I was put into a machine learning project, when I thought that I could grow better in this field.
But then that project got stuck and they needed me in some other project for plugin development.
What I am doing in this project is just making some changes in the already built plugins, and presenting
it to the clients. No progress. So I think it’s time to move on.