Skip to main content

Python real time Interview Questions and Answers


Q1).What is Python?
Ans1: Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it h
as fewer syntactical constructions than other languages.
Q2).Name some of the features of Python.
Ans2: Following are some of the salient features of python −
  • It supports functional and structured programming methods as well as OOP.
  • It can be used as a scripting language or can be compiled to byte-code for building large applications.
  • It provides very high-level dynamic data types and supports dynamic type checking.
  • It supports automatic garbage collection.
  • It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.
Q3).Do you have any personal projects?
Really?
Ans3:This shows that you are willing to do more than the bare minimum in terms of keeping your skillset up to date. If you work on personal projects and code outside of the workplace then employers are more likely to see you as an asset that will grow. Even if they don’t ask this question I find it’s useful to broach the subject.
Q4).Is python a case sensitive language?
Ans4: Yes! Python is a case sensitive programming language.
What are the supported data types in Python?
Python has five standard data types −
  • Numbers
  • String
  • List
  • Tuple
  • Dictionary 
Q5).What is the output of print str if str = ‘Hello World!’?
Ans5: It will print complete string. Output would be Hello World!.

Comments

Popular posts from this blog

Android Interview Questions and Answers

What is  Android ? It is an open-sourced operating system that is used primarily on mobile devices, such as cell phones and tablets. It is a Linux kernel-based system that’s been equipped with rich components that allows developers to create and run apps that can perform both basic and advanced functions. What Is the Google Android SDK? The Google Android SDK is a toolset that developers need in order to write apps on Android enabled devices. It contains a graphical interface that emulates an Android driven handheld environment, allowing them to test and debug their codes. >>Read more>>

Tableau Interview Questions and Answers

What is Data Visualization? A much advanced, direct, precise and ordered way of viewing large volumes of data is called data visualization. It is the visual representation of data in the form of graphs and charts, especially when you can’t define it textually. You can show trends, patters and correlations through various data visualization software and tools; Tableau is one such data visualization software used by businesses and corporates. What are the differences between Tableau desktop and Tableau Server? While Tableau desktop performs data visualization and workbook creation, Tableau server is used to distribute these interactive workbooks and/or reports to the right audience. Users can edit and update the workbooks and dashboards online or Server but cannot create new ones. However, there are limited editing options when compared to desktop. Tableau Public is again a free tool consisting of Desktop and Server components accessible to anyone. >>Read more>...

Data Science in Python Interview Questions and Answers

Q1). How can you build a simple logistic regression model in Python? Q2). How can you train and interpret a linear regression model in SciKit learn? Q3).Name a few libraries in Python used for Data Analysis and Scientific computations. Ans1.2.3:   NumPy, SciPy, Pandas, SciKit, Matplotlib, Seaborn   Q4).Which library would you prefer for plotting in Python language: Seaborn or Matplotlib? Ans4:   Matplotlib is the python library used for plotting but it needs lot of fine-tuning to ensure that the plots look shiny. Seaborn helps data scientists create statistically and aesthetically appealing meaningful plots. The answer to this question varies based on the requirements for plotting data.   Q5).What is the main difference between a Pandas series and a single-column DataFrame in Python? Q6). Write code to sort a DataFrame in Python in descending order. Q7). How can you handle duplicate values in a dataset for a variable in Python? Q8). Which Random F...