Add 5 python interview questions

This commit is contained in:
abregman 2019-12-05 00:54:25 +02:00
parent 3a2f0c64a6
commit 786cb7e195

View File

@ -2,7 +2,7 @@
:information_source:  This repository contains questions on various DevOps and SRE related topics :information_source:  This repository contains questions on various DevOps and SRE related topics
:bar_chart:  There are currently **582** questions :bar_chart:  There are currently **587** questions
:books:  To learn more about DevOps check the resources in [DevOpsBit.com](https://devopsbit.com) :books:  To learn more about DevOps check the resources in [DevOpsBit.com](https://devopsbit.com)
@ -2328,6 +2328,10 @@ Generally, every compiling process have a two steps.
<summary>Explain Exception Handling and how to use it in Python</summary><br><b> <summary>Explain Exception Handling and how to use it in Python</summary><br><b>
</b></details> </b></details>
<details>
<summary>What <code>//</code> is used for?</summary><br><b>
</b></details>
<details> <details>
<summary>Write a program which will revert a string (e.g. pizza -> azzip)</summary><br><b> <summary>Write a program which will revert a string (e.g. pizza -> azzip)</summary><br><b>
@ -2571,6 +2575,10 @@ def reverse_string(string):
<summary>Explain what is GIL</summary><br><b> <summary>Explain what is GIL</summary><br><b>
</b></details> </b></details>
<details>
<summary>What is an iterator?</summary><br><b>
</b></details>
<details> <details>
<summary>What is a generator? Why using generators?</summary><br><b> <summary>What is a generator? Why using generators?</summary><br><b>
</b></details> </b></details>
@ -2591,6 +2599,13 @@ def reverse_string(string):
<summary>How to combine list of strings into one string with spaces between the strings</summary><br><b> <summary>How to combine list of strings into one string with spaces between the strings</summary><br><b>
</b></details> </b></details>
<details>
<summary>Explain the following:
* zip()
* map()
* filter()</summary><br><b>
</b></details>
<details> <details>
<summary>What empty <code>return</code> returns?</summary><br><b> <summary>What empty <code>return</code> returns?</summary><br><b>
</b> </b>
@ -2664,6 +2679,16 @@ def sum(a, b):
<summary>Implement Hash table in Python</summary><br><b> <summary>Implement Hash table in Python</summary><br><b>
</b></details> </b></details>
##### Tests
<details>
<summary>What is your experience with writing tests in Python?</summary><br><b>
</b></details>
<details>
<summary>Explain mocks</summary><br><b>
</b></details>
<a name="python-advanced"></a> <a name="python-advanced"></a>
#### :star: Advanced #### :star: Advanced
@ -2806,6 +2831,10 @@ a = f()
<summary>Are you familiar with Dataclasses? Can you explain what are they used for?</summary><br><b> <summary>Are you familiar with Dataclasses? Can you explain what are they used for?</summary><br><b>
</b></details> </b></details>
<details>
<summary>You wrote a class to represent a car. How would you compare two cars instances if two cars are equal if they have the same model and color?</summary><br><b>
</b></details>
<details> <details>
<summary>Explain Context Manager</summary><br><b> <summary>Explain Context Manager</summary><br><b>
</b></details> </b></details>