Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Python viva questions and answers

Rating
-
Sold
-
Pages
4
Uploaded on
14-12-2018
Written in
2018/2019

Viva questions and answers

Institution
Course

Content preview

Python Interview Questons nswers
1) What is Python? What are the benefits of using Python?

Python is a programming language with objects, modules, threads, exceptions and
automatic memory management. The benefits of pythons are that it is simple and easy,
portable, extensible, build-in data structure and it is an open source.

2) What is PEP 8?

PEP 8 is a coding convention, a set of recommendation, about how to write your Python
code more readable.

3) What is pickling and unpickling?

Pickle module accepts any Python object and converts it into a string representation
and dumps it into a file by using dump function, this process is called pickling. While the
process of retrieving original Python objects from the stored string representation is
called unpickling.

4) How Python is interpreted?

Python language is an interpreted language. Python program runs directly from the
source code. It converts the source code that is written by the programmer into an
intermediate language, which is again translated into machine language that has to be
executed.

5) How memory is managed in Python?

 Python memory is managed by Python private heap space. All Python objects
and data structures are located in a private heap. The programmer does not
have an access to this private heap and interpreter takes care of this Python
private heap.
 The allocation of Python heap space for Python objects is done by Python
memory manager. The core API gives access to some tools for the
programmer to code.
 Python also have an inbuilt garbage collector, which recycle all the unused
memory and frees the memory and makes it available to the heap space.

6) What are the tools that help to find bugs or perform static analysis?

Written for

Institution
Course

Document information

Uploaded on
December 14, 2018
Number of pages
4
Written in
2018/2019
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$9.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
himanshuchaudhary

Get to know the seller

Seller avatar
himanshuchaudhary Delhi University
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
7 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions