PDA

View Full Version : Python Query



arjunkumar
03-18-2020, 10:14 AM
Hello Everyone, I am new here and I have completed my python course and have few interviews in the upcoming week. The interviewer said they will test my coding skills. So which types of questions should I expect?

BrianEtemad
03-19-2020, 11:26 AM
It's depend on your interviewer mood buddy.

khatrivijaysingh
03-26-2020, 10:39 AM
Hello Everyone, I am new here and I have completed my python course and have few interviews in the upcoming week. The interviewer said they will test my coding skills. So which types of questions should I expect?
Here I am sharing with you the list of question and go through with our blog post (https://hackr.io/blog/python-interview-questions) for getting the answer to these questions:

Question: Describe how multithreading is achieved in Python.
Question: Draw a comparison between the range and xrange in Python.
Question: Explain Inheritance and its various types in Python?
Question: Explain how is it possible to Get the Google cache age of any URL or webpage using Python.
Question: Give a detailed explanation about setting up the database in Django.
Question: How will you differentiate between deep copy and shallow copy?
Question: How will you distinguish between NumPy and SciPy?
Question: Observe the following code:
Question: Python has something called the dictionary. Explain using an example.
Question: Python supports negative indexes. What are they and why are they used?
Question: Suppose you need to collect and print data from IMDb top 250 Movies page. Write a program in Python for doing so. (NOTE: - You can limit the displayed information for 3 fields; namely movie name, release year, and rating.)
Question: Take a look at the following code:
Question: What do you understand by monkey patching in Python?
Question: What do you understand by the process of compilation and linking in Python?
Question: What is Flask and what are the benefits of using it?
Question: What is the map() function used for in Python?
Question: What is Pickling and Unpickling in Python?
Question: Whenever Python exits, all the memory isn’t deallocated. Why is it so?
Question: Write a program in Python for getting indices of N maximum values in a NumPy array.
Question: Write code to show randomizing the items of a list in place in Python along with the output.
Question: Explain memory managed in Python?
Question: What is the lambda function?
Question: What are Python decorators?
Question: Differentiate between list and tuple.
Question: How are arguments passed in Python? By value or by reference?
Question: What are the built-in types provided by the Python?
Question: How a file is deleted in Python?
Question: What are Python modules?
Question: What is the // operator? What is its use?
Question: What is the split function used for?
Question: Explain the Dogpile effect.
Question: What is a pass in Python?
Question: Is Python a case sensitive language?
Question: Define slicing in Python.
Question: What are docstring?
Question: What is [::-1} used for?
Question: Define Python Iterators.
Question: How are comments written in Python?
Question: How to capitalize the first letter of string?
Question: What is, not and in operators?
Question: How are files deleted in Python?
Question: How are modules imported in Python?
Question: What is monkey patching?
Question: Does Python supports multiple inheritances?
Question: What does the method object() do?
Question: What is pep 8?
Question: What is namespace in Python?
Question: Is indentation necessary in Python?
Question: Define a function in Python
Question: Define self in Python

adisharma
06-04-2021, 12:00 PM
It depends on your level of experience and your JD

Angel18
07-14-2021, 06:59 AM
I like python programmation

Angel18
07-14-2021, 07:04 AM
very good programme

Maja22
05-23-2024, 05:28 PM
Welcome to the community, and congratulations on completing your Python course! Preparing for coding interviews can be daunting, but knowing what to expect can help you focus your study and practice effectively. Here are some common types of questions and topics you might encounter in a Python coding interview:

1. Basic Python Concepts:
Data Types: Understand the different data types in Python (e.g., int, float, str, list, tuple, set, dict) and when to use them.
Control Structures: Be comfortable with loops (for, while) and conditionals (if, elif, else).
Functions: Know how to define and call functions, and understand the scope of variables.
2. Data Structures:
Lists: Operations like appending, inserting, removing elements, list comprehensions, slicing.
Tuples: Immutability, packing and unpacking.
Dictionaries: Adding, removing key-value pairs, iterating through keys and values.
Sets: Unique elements, set operations (union, intersection, difference).
3. Algorithms and Problem-Solving:
Sorting and Searching: Understand basic algorithms like bubble sort, merge sort, and binary search.
String Manipulation: Common operations such as reversing a string, checking for palindromes, and finding substrings.
Recursion: Writing recursive functions and understanding their time complexity.
Dynamic Programming: Basic problems like Fibonacci sequence, coin change problem.
Graph Algorithms: Basic understanding of graphs, traversals (BFS, DFS).
4. Object-Oriented Programming:
Classes and Objects: Defining classes, creating objects, and understanding self.
Inheritance and Polymorphism: Understanding parent-child relationships and method overriding.
Encapsulation: Using private and public methods and variables.
5. Advanced Python Features:
Generators and Iterators: Using yield, creating custom iterators.
Decorators: Writing and applying decorators to functions.
Context Managers: Using the with statement and creating custom context managers.
6. Libraries and Frameworks:
Standard Libraries: Familiarity with libraries like os, sys, datetime, collections.
Third-Party Libraries: Basic usage of popular libraries such as numpy, pandas, requests.
7. Coding Practice:
LeetCode: Solve problems on LeetCode, focusing on the easy and medium levels.
HackerRank: Participate in coding challenges and complete problems related to algorithms and data structures.
CodeSignal: Engage in timed coding tests to simulate the interview this (https://zumbaliciouscrew.com/en/zumba-online-class/) environment.