1 / 13

Top Interview questions and answers for Python

ODBC stands for Open Database Connectivity. It is the API standard that allows the connections with the database supporting the interface as a PostreSQL database or Microsoft Access. There are 3 ODBC modules for Python 1) PythonWin ODBC module 2) MxODBC 3) pyodbc

Download Presentation

Top Interview questions and answers for Python

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. By Bigclasses

  2. 1 1. . What help prompt? What is is the help prompt? the command window command used or used for helping for existing command existing command window or for for helping The command used for existing the help window is the quit command. The python shell prompt window automatically. will appear by closing the help

  3. 2 2. . How methods How to methods in to avoid in Python? avoid overload Python? overload constructors constructors or or The Python’s constructor_init_() is the first method of a class. We can try to instantiate an object _init_() is automatically invoked by python to initialize members of an object.

  4. 3 3. . What methods What does methods do? does the do? the split(), split(), sub(), sub(), and and subn subn() () The Split() uses a regax pattern to split a given string into a list. The Sub() will find all the substrings where this regex pattern will match and then replace them with a different string. Subn() is similar to the Sub(). It returns the replacements. new string along with the no. of

  5. 4 4. . Mention text Firstly, convert the file into the list. Secondly, reverse this list by using reversed(). Mention the text files the way in the way to reverse order to display order display the the contents contents of of files in the reverse 5 5. . Mention a a list You can remove duplicates from the list by sorting it from the list, then scanning this list from the end, and lastly, delete the duplicate elements while scanning the list from right- to-left. Mention the list the way way to to remove remove duplicates duplicates from from

  6. 6 6. . What What are are an an ODBC ODBC and and Python? Python? ODBC stands for Open Database Connectivity. It connections with the database supporting the interface Microsoft Access. There are 3 ODBC modules for Python 1) PythonWin ODBC module 2) MxODBC 3) pyodbc is the API standard that allows the as a PostreSQL database or

  7. 7 7. . Is Is Python Python oriented programming language. The OOP is a programming paradigm based on classes and instances of classes. The features of OOP are given below Encapsulation Data Abstraction Inheritance Polymorphism Python object is object- -oriented? object-oriented. oriented? It is object-

  8. 8 8. . What What does does the the TkIner TkIner do? do? The TkIner is the library of Python. It is a toolkit for the GUI development. It supports various GUI tools and even widget that is used in the GUI applications. The common attribute Colours, Fonts, Cursors, and etc. of them includes Dimensions,

  9. 9 9. . What Python? The Python supports 7 sequences, types. They are as follows:- str, list, tuple, Unicode, byte array, xrange, and buffer. 10 methods The append() adds the element at the end of the list. The extent() adds the elements of another list at the end of the list. What kind Python? kind of of sequences sequences is is supported supported by by 10. . What methods do? What does do? does the the append() append() and and extend() extend()

  10. 11 Java 11. . Mention Java and Mention the and Python the simple Python simple differences differences between between The programmers, but the Python is preferred more due to its excellent speed of coding. Java has a static type data type, and Python has a dynamic typed-data type. And Python has learning applications. Java and Python are used by a better data science and machine

  11. 12 and 12. . Mention and run Mention the run- -time the working time code working of code check of a a compile compile- -time time check. . Python performs the compile-time checking thought some of the checks are postponed like name, type, name and etc until the code is executed. And if the code references are user-defined function doesn’t exist, the code will then might even fail with an exception only if it is the executed path references the function. compile successfully. The code

  12. To know more details on Python click here https://bigclasses.com/python- online-training.html and call us:- +91 800 811 4040 For regular Updates on Python please like our Facebook page:- Facebook:- https://www.facebook.com/bigclasses/ Twitter:- https://twitter.com/bigclasses LinkedIn:- https://www.linkedin.com/company/bigclasses Google+: https://plus.google.com/+Bigclassesonline Python Course Page:- https://bigclasses.com/python-online-training.html Contact us: - India +91 800 811 4040 USA +1 732 325 1626 Email us at: - info@bigclasses.com

More Related