Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Python Interview Questions
Python Interview Questions
Python Interview Questions
Ebook164 pages1 hour

Python Interview Questions

Rating: 4.5 out of 5 stars

4.5/5

()

Read preview

About this ebook

The Ultimate Reference & Learning Guide for Python Developers!

In depth and current overview of common challenges with Python

Extensively used by big names such as Google and BitTorrent, fluency with Python can be essential for a career as a developer, however, a user-friendly and thorough resource can be difficult to locate. From helping you to assess your current skill level to preparing for an interview, this guide will tell you the details of what you really need to know. Set yourself apart from other candidates and show that you have what it takes to land the job. More than just a rehash of documentation and sales presentations, each section is based on project knowledge and experience gained on successful high-profile Python implementations.

Key topics include:

• Duck/Latent typing
• Implementations on popular Python supported platforms
• Models for graphical user interfaces
• Unit testing frameworks and test suites
• Object orientation, structured programming, functional programming, and aspect-oriented programming with Python

LanguageEnglish
PublisherEquity Press
Release dateJun 3, 2011
ISBN9781603322157
Python Interview Questions

Read more from Equity Press

Related to Python Interview Questions

Related ebooks

Resumes For You

View More

Related articles

Reviews for Python Interview Questions

Rating: 4.5 out of 5 stars
4.5/5

6 ratings2 reviews

What did you think?

Tap to rate

Review must be at least 10 words

  • Rating: 5 out of 5 stars
    5/5
    Wonderful list of questions and nice explanation. Good to read.
  • Rating: 5 out of 5 stars
    5/5
    Excellent Interview Questions for Beginners and of course for experienced. Nicely written. Hats off to the author !!!

Book preview

Python Interview Questions - Equity Press

Python Interview Questions

By: Terry Sanchez-Clark

Copyright 2006 Equity Press

Smashwords Edition

Smashwords Edition, License Notes

This ebook is licensed for your personal enjoyment only. This ebook may not be re-sold or given away to other people. If you would like to share this book with another person, please purchase an additional copy for each recipient. If you’re reading this book and did not purchase it, or it was not purchased for your use only, then please return to Smashwords.com and purchase your own copy. Thank you for respecting the hard work of this author.

ISBN 1-933804-54-8

Copyright© 2006 Equity Press and IT COOKBOOK all rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording or otherwise) without either the prior written permission of the publisher or a license permitting restricted copying in the United States or abroad.

The scanning, uploading and distribution of this book via the internet or via any other means with the permission of the publisher is illegal and punishable by law. Please purchase only authorized electronic editions, and do not participate in or encourage piracy of copyrighted materials.

The programs in this book have been included for instructional value only. They have been tested with care but are not guaranteed for any particular purpose. The publisher does not offer any warranties or representations not does it accept any liabilities with respect to the programs.

Trademarks: All trademarks are the property of their respective owners. Equity Press is not associated with any product or vender mentioned in this book.

Please visit our website at www.itcookbook.com

TABLE OF CONTENTS

Question 1: Definition of Python

Question 2: Python is installed on my machine

Question 3: Delete Python

Question 4: Using GUI in Python

Question 5: Creation of Python

Question 6: Use of Python

Question 7: Restrictions in Using Python

Question 8: Numbering Scheme Work

Question 9: Location of source file

Question 10: Python script on UNIX

Question 11: Signal Handlers

Question 12: Python Program

Question 13: g++symbols

Question 14: Python Script

Question 15: CGI Form

Question 16: Running a thread

Question 17: Blocking in connect () method

Question 18: Python’s stability

Question 19: Python’s usage

Question 20: Downloading mp3

Question 21: Random numbers

Question 22: Incompatible changes

Question 23: Arbitrary Python Statements

Question 24: _import__('x.y.z') returns

Question 25: Language for beginners

Question 26: bsddb185 module

Question 27: Indentation

Question 28: Floating Point

Question 29: Python Strings

Question 30: ‘self’ used explixitly in method definitions and calls

Question 31: Assignment as an expression

Question 32: Methods for functionality

Question 33: Joining () a string method

Question 34: Speed of exceptions

Question 35: Switch or case statement

Question 36: Emulating threads

Question 37: Lambda Forms

Question 38: C Values

Question 39: Memory

Question 40: Memory Freed

Question 41: List and Tuples

Question 42: Implementation of Lists

Question 43: Implementation of dictionaries

Question 44: Dictionary Keys

Question 45: list.sort()

Question 46: Interface

Question 47: Default Values

Question 48: no go to

Question 49: Syntax Error for a 'continue'

Question 50: raw strings (r-strings)

Question 51: with statement

Question 52: colons in if/while/def/class statements

Question 53: Arbitrary Python

Question 54: Tool for bugs

Question 55: Module in Python from C

Question 56: Editing an imported module

Question 57: Speeding up a program

Question 58: Setting a global variable

Question 59: Rules for local and global variables

Question 60: Sharing global variables

Question 61: best practices for using import

Question 62: Passing optional or keyword parameters

Question 63: Function with output parameters

Question 64: Making a higher order function

Question 65: Copying an object

Question 66: Attributes of an object

Question 67: Name of an object

Question 68: Equivalent of C's ?

Question 69: Writing obfuscated one-liners

Question 70: Hexadecimal and Octal Integers

Question 71: -22 / 10 return -3

Question 72: Converting a string to a number

Question 73: Converting a number to a string

Question 74: Modifying a string

Question 75: Using strings to call functions/methods

Question 76: Perl's chomp ()

Question 77: scanf() or sscanf() equivalent

Question 78: 'UnicodeError: ASCII [decoding,encoding] error: ordinal not in range(128)'

Question 79: Converting between tuples and lists

Question 80: Negative Index

Question 81: Iterate over a sequence

Question 82: Removing duplicates from a list

Question 83: Array in Python

Question 84: Multidimensional list

Question 85: Sequence of objects

Question 86: Dictionary

Question 87: Schwartzian Transform in Python

Question 88: Sorting list

Question 89: Class

Question 90: Method

Question 91: Self

Question 92: Class or Subclass

Question 93: Delegation

Question 94: Method defined in a base class

Question 95: Changing the base class

Question 96: Static class data and methods

Question 97: Overloading constructors in Python

Question 98: Module Name

Question 99: Incomplete Input from Invalid Input

Question 100: error: _SomeClassName__spam

Question 1: Definition of Python

What is Python?

A: Python is an interpreted, interactive, object-oriented programming language. It incorporates modules, exceptions, dynamic typing, very high level dynamic data types, and classes.

Python combines remarkable power with very clear syntax. It has interfaces to many system, calls and libraries, as well as to various window systems. It is extensible in C or C++.

You can use it as an extension language for applications that needs a programmable interface.

Finally, Python is portable. It runs on many UNIX variants, on the Mac, and on PCs under MS-DOS, Windows, Windows NT, and OS/2.

Question

Enjoying the preview?
Page 1 of 1