From 0976d2b5cc9097cbc2c71847b475dcf9e29d47dc Mon Sep 17 00:00:00 2001 From: abregman Date: Sun, 20 Oct 2019 10:27:57 +0300 Subject: [PATCH] Add a couple of new questions --- README.md | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 58 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4b17ec9..a08897a 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,11 @@ :information_source:  This repository contains interview questions on various DevOps related topics -:bar_chart:  There are currently **257** questions +:bar_chart:  There are currently **264** questions :warning:  You don't need to know how to answer all the questions in this repo. DevOps is not about knowing all :) -:exclamation:  Some questions are more for testing your own knowledge than actual valid interview questions - -:exclamation:  For interviewers, I suggest focusing on 3 things: the resume of the candidate, scenario questions and technical concepts. Don't have an interview of only specific technical questions +:page_facing_up:  Different interviewers focus on different things. Some will focus on your resume while others might focus on scenario questions or specific technical questions. In this repository I tried to cover different types of questions for you to practice and test your knowledge :pencil:  You can add more questions & answers by submitting pull requests :) @@ -712,6 +710,8 @@ hard link can be created only within the same file system. * /usr/local +##### Processes +
How to run a process in the background and why to do that in the first place?
@@ -768,10 +768,18 @@ Zombie How to change the priority of a process? Why would you want to do that?
+
+Can you explain how network process/connection is established and how it's terminated?>
+
+
What are system calls? What system calls are you familiar with?
+
+What does strace does?
+
+
Find all the files which end with '.yml' and replace the number 1 in 2 in each file
@@ -1379,6 +1387,10 @@ Shortest way is str[::-1] 3. As a general purpose "throwaway" variable name. For example: x, y, _ = get_data() (x and y are used but since we don't care about third variable, we "threw it away").
+
+How to write to a file?
+
+
Sort a list of lists by the second item of each nested list
@@ -1412,6 +1424,14 @@ Shortest way is: my_string[::-1] but it doesn't mean it's the most Write a function to determine if a given string is a palindrome
+
+How to sort a dictionary by values?
+
+ +
+How to sort a dictionary by keys?
+
+
Explain what is GIL
@@ -1420,6 +1440,27 @@ Shortest way is: my_string[::-1] but it doesn't mean it's the most What is a generator? Why using generators?
+##### Time Complexity + +
+Describe what would be the time complexity of the operations access, search insert and remove for the following data structures:
+ + * Stack + * Queue + * Linked List + * Binary Search Tree +
+ +
+What is the complexity for the best, worst and average cases of each of the following algorithms?: + + * Quicksort + * Mergesort + * Bucket Sort + * Radix Sort +
+ + #### :star: Advanced @@ -1431,6 +1472,10 @@ Shortest way is: my_string[::-1] but it doesn't mean it's the most Can you show how to write and use decorators?
+
+Write a script which will determine if a given host is accessible on a given port
+
+
Are you familiar with Dataclasses? Can you explain what are they used for?
@@ -1448,7 +1493,15 @@ Shortest way is: my_string[::-1] but it doesn't mean it's the most
-You create a web page where a user can upload a document. But the function which reads the uploaded files, runs for a long time, based on the document size. How can you overcome this?
+Do you have experience with web scraping? Can you describe what have you used and for what?
+
+ +
+Can you implement Linked List in Python?
+
+ +
+You have created a web page where a user can upload a document. But the function which reads the uploaded files, runs for a long time, based on the document size and user has to wait for the read operation to complete before he/she can continue using the web site. How can you overcome this?
## Prometheus