TOP Python Interview Question And Answer - PowerPoint PPT Presentation

About This Presentation
Title:

TOP Python Interview Question And Answer

Description:

Hub4Tech provides free in depth and comprehensive programming tutorials for beginners and professionals, helps you to understand the programming language easily. – PowerPoint PPT presentation

Number of Views:210

less

Transcript and Presenter's Notes

Title: TOP Python Interview Question And Answer


1
Top Python Interview Question and Answer
  • Hub4Tech

2
Question 1 What is Python? What are the benefits
of using Python?
  • Answer
  • 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.

3
Question 2Explain how python is interpreted.
  • Answer
  • Python program runs directly from the source
    code. Each type Python programs are executed code
    is required. Python converts source code written
    by the programmer into intermediate language
    which is again translated it into the native
    language / machine language that is executed. So
    Python is an Interpreted language.

4
Question 3How is memory managed in python?
  • Answer
  • Memory management in Python involves a private
    heap containing all Python objects and data
    structures. Interpreter takes care of Python heap
    and that the programmer has no access to it.
  • The allocation of heap space for Python objects
    is done by Python memory manager. The core API of
    Python provides some tools for the programmer to
    code reliable and more robust program.
  • Python also has a build-in garbage collector
    which recycles all the unused memory. When an
    object is no longer referenced by the program,
    the heap space it occupies can be freed. The
    garbage collector determines objects which are no
    longer referenced by the program frees the
    occupied memory and make it available to the heap
    space.

5
Question 4How 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.

6
Question 5Explain pickling and unpickling.
  • Answer
  • pickle is a standard module which serializes
    de-serializes a python object structure.pickle
    module accepts any python object converts it into
    a string representation dumps it into a file(by
    using dump() function) which can be used later,
    process is called pickling. Whereas unpickling is
    process of retrieving original python object from
    the stored string representation for use.

7
Question 6What are the built-in type does
python provides?
  • Answer
  • On-Page Optimization is way to "SEO optimize" of
    website by page coding. For Example add Meta
    Title, Meta Description, Meta Keywords, Content
    Quality, Meta Keyword Density, Outbound Links,
    Image Alt tag in website.

8
Question 7What are the built-in type does
python provides?
  • Answer
  • There are mutable and Immutable types of Pythons
    built in types Mutable built-in types
  • List
  • Sets
  • Dictionaries

9
Question 8What is pass in Python?
  • Answer
  • Pass means, no-operation Python statement, or in
    other words it is a place holder in compound
    statement, where there should be a blank left and
    nothing has to be written there.

10
On demand Training and Talent Assessment Platform
  • Python Online Free Practice Test goo.gl/kObUUn
  • Python Online Free Interview Question
    goo.gl/OVMJeB
  • Python Online Free Tutorials goo.gl/4xkWjB
  • Python Online Free Quiz goo.gl/8HUO5a
Write a Comment
User Comments (0)
About PowerShow.com