{"id":217,"date":"2023-03-31T18:54:00","date_gmt":"2023-03-31T18:54:00","guid":{"rendered":"https:\/\/codeinterview.io\/blog\/?p=217"},"modified":"2023-11-27T06:00:28","modified_gmt":"2023-11-27T06:00:28","slug":"c-sharp-coding-interview-questions","status":"publish","type":"post","link":"https:\/\/codeinterview.io\/blog\/c-sharp-coding-interview-questions\/","title":{"rendered":"30 C# Coding Interview Questions for Beginner, Mid-Level and Expert Developers"},"content":{"rendered":"\n<p>C# is one of the leading programming languages from Microsoft. It is used not only in web applications but also for desktop and mobile applications. Since 2014, when it became open source, and after the arrival of .NET core 7, it has been gaining popularity and wide adoption by developers.&nbsp;<\/p>\n\n\n\n<p>Today&#8217;s article will present different coding challenges to evaluate C# developers. These coding challenges are divided into three categories, namely beginner, mid-level and expert programmers. Let&#8217;s start with the coding challenges for beginners.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-c-coding-interview-questions-for-beginners\"><strong>C# Coding Interview Questions for Beginners<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/codeinterview.io\/signup\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"196\" src=\"https:\/\/codeinterview.io\/blog\/wp-content\/uploads\/2023\/11\/CodeInterview-2.png\" alt=\"Developer Skill Assessment Tool\" class=\"wp-image-533\" srcset=\"https:\/\/codeinterview.io\/blog\/wp-content\/uploads\/2023\/11\/CodeInterview-2.png 1024w, https:\/\/codeinterview.io\/blog\/wp-content\/uploads\/2023\/11\/CodeInterview-2-300x57.png 300w, https:\/\/codeinterview.io\/blog\/wp-content\/uploads\/2023\/11\/CodeInterview-2-768x147.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Junior C# developers should have a strong grip on the basic concepts of the language and .NET framework. When designing coding challenges for junior developers, create questions around language syntax, object-oriented programming, CLR, data structure and collection types, error handling, async and await and asynchronous programming. Here are 10 sample questions in this regard:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-1\"><strong>Question 1<\/strong><\/h3>\n\n\n\n<p>What will be the output of the below code in a Unix-based system:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Runtime.InteropServices;\n &#91;DllImport(\"libc\", SetLastError = true)]\nprivate static extern int getpid();\n public static void Main()\n{\n\tint processId = getpid();\n    Console.WriteLine($\"Process ID: {processId}\");\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-2\"><strong>Question 2<\/strong><\/h3>\n\n\n\n<p>Guess the output of the below code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> using System;\n public static void Main()\n{\n\tvar coordinates = GetCoordinates();\n\t(double latitude, double longitude) = coordinates;\n    Console.WriteLine($\"Latitude: {latitude}, Longitude: {longitude}\");\n \n\t(double, double) GetCoordinates()\n\t{\n    \treturn (12.34, 56.78);\n\t}\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-3\"><strong>Question 3<\/strong><\/h3>\n\n\n\n<p>What is the issue with the use of HttpClient in the below code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n \npublic static async Task Main()\n{\n\tstring url = \"https:\/\/api.example.com\/data\";\n\tConsole.WriteLine(await GetDataAsync(url));\n}\n \npublic static async Task&lt;string&gt; GetDataAsync(string url)\n{\n\tusing HttpClient httpClient = new HttpClient();\n\tHttpResponseMessage response = await httpClient.GetAsync(url);\n\treturn await response.Content.ReadAsStringAsync();\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-4\"><strong>Question 4<\/strong><\/h3>\n\n\n\n<p>Design a basic bank account management system having the below features:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create an account<\/li>\n\n\n\n<li>Deposit money<\/li>\n\n\n\n<li>Withdraw money<\/li>\n\n\n\n<li>Display current account balance<\/li>\n<\/ul>\n\n\n\n<p>Implement a simple console application that shows the use of the bank account management system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-5\"><strong>Question 5<\/strong><\/h3>\n\n\n\n<p>What will be the output of the below code snippet:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Collections.Generic;\n Dictionary&lt;string, int&gt; dict = new() { &#91;\"one\"] = 1, &#91;\"two\"] = 2, &#91;\"three\"] = 3 };\nConsole.WriteLine(dict&#91;\"two\"]);<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-6\"><strong>Question 6<\/strong><\/h3>\n\n\n\n<p>Will the below code throw any error? If yes, identify the error.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> using System;\n string input = Console.ReadLine();\nint? number = int.TryParse(input, out int result) ? result : null;\nConsole.WriteLine(number);<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-7\"><strong>Question 7<\/strong><\/h3>\n\n\n\n<p>Implement a program that counts the number of vowels in a given string. The program should ask the user to input a string and then display the number of vowels in the string. Make sure that the program is case-sensitive.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-8\"><strong>Question 8<\/strong><\/h3>\n\n\n\n<p>Analyze the below code and suggest the output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> using System;\n object number = 42;\nstring message = number switch\n{\n\tint i when i &gt; 0 =&gt; \"Positive\",\n\tint i when i &lt; 0 =&gt; \"Negative\",\n\tint i =&gt; \"Zero\",\n\t_ =&gt; \"Not a number\"\n};\n \nConsole.WriteLine(message);<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-9\"><strong>Question 9<\/strong><\/h3>\n\n\n\n<p>Find the issue with the below code snippet:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>abstract class Animal\n{\n\tpublic abstract Animal Clone();\n}\n class Cat : Animal\n{\n\tpublic override Cat Clone()\n\t{\n    \treturn new Cat();\n\t}\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-10\"><strong>Question 10<\/strong><\/h3>\n\n\n\n<p>What issue exists in the below code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\n int number = int.Parse(Console.ReadLine());\nstring message = number switch\n{\n\t&gt; 0 and &lt;= 10 =&gt; \"Number is between 1 and 10\",\n\t&gt; 10 or &lt; 0 =&gt; \"Number is greater than 10 or negative\",\n\t_ =&gt; \"Number is 0\"\n};\n \nConsole.WriteLine(message);<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-c-coding-interview-questions-for-mid-level-engineers\">C# Coding Interview Questions for Mid-level Engineers<\/h2>\n\n\n\n<p>When designing interview questions for mid-level C# developers, you should prepare challenges keeping in mind the understanding of advanced C# concepts, strong analytical capabilities and design patterns. Some areas that should be evaluated include dependency Injection (DI) and Inversion of Control (IoC), SOLID principles, new features of C#11 and .NET 6, ASP Core, Entity framework core, CI\/CD and performance tuning. Find below 10 coding challenges which are suited to mid-level C# developers:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-1-0\"><strong>Question 1<\/strong><\/h3>\n\n\n\n<p>What is the issue in the below code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> public interface IProcessor\n{\n\tvoid Process();\n}\n public class TextProcessor : IProcessor\n{\n\tpublic void Process() { \/*...*\/ }\n}\n public static void InvokeProcessor(IProcessor processor)\n{\n    processor.Process();\n}\n public static void Main()\n{\n    InvokeProcessor(new());\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-2-0\"><strong>Question 2<\/strong><\/h3>\n\n\n\n<p>What will be the output of the below code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>record Point(int X, int Y);\n var original = new Point(1, 2);\nvar shifted = original with { X = original.X + 3, Y = original.Y - 1 };\nConsole.WriteLine(shifted);<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-3-0\"><strong>Question 3<\/strong><\/h3>\n\n\n\n<p>Develop a banking system with classes representing accounts, transactions and customers. Use init-only properties to make sure that instances of these classes are immutable once they are created.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-4-0\"><strong>Question 4<\/strong><\/h3>\n\n\n\n<p>Implement an application that uses target-typed new expressions to create instances of various classes, like repositories, services and DTOs. Design the classes so that they can be easily created using target-typed new expressions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-5-0\"><strong>Question 5<\/strong><\/h3>\n\n\n\n<p>What is the issue in the below code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class Employee\n{\n\tpublic string Name { get; init; }\n\tpublic int Age { get; init; }\n}\n public static void Main()\n{\n\tEmployee employee = new Employee { Name = \"John collen\", Age = 45 };\n\temployee.Age = 45;\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-6-0\"><strong>Question 6<\/strong><\/h3>\n\n\n\n<p>What will be the output of below code snippet:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\n int Add(int a, int b) =&gt; a + b;\nint Subtract(int a, int b) =&gt; a - b;\n \nConsole.WriteLine(Add(3, 4));\nConsole.WriteLine(Subtract(7, 2));<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-7-0\"><strong>Question 7<\/strong><\/h3>\n\n\n\n<p>The below code will throw an error. Can you spot that error?<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public static int MultiplyByFactor(int value)\n{\n\tint factor = 2;\n \tint Multiply(int x) =&gt; x * factor;\n \tif (value &gt; 10)\n\t{\n    \tint factor = 3;\n\t}\n \treturn Multiply(value);\n}\n public static void Main()\n{\n\tConsole.WriteLine(MultiplyByFactor(5));\n\tConsole.WriteLine(MultiplyByFactor(15));\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-8-0\"><strong>Question 8<\/strong><\/h3>\n\n\n\n<p>Implement a simple application that manages a list of users and their contact information. Use nullable reference types to ensure that the code handles null values correctly and minimize the risk of null reference exceptions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-9-0\"><strong>Question 9<\/strong><\/h3>\n\n\n\n<p>What is wrong with the below code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class User\n{\n\tpublic string? FirstName { get; set; }\n\tpublic string? LastName { get; set; }\n \tpublic string GetFullName()\n\t{\n    \treturn (FirstName, LastName) switch\n    \t{\n        \t(string first, string last) =&gt; $\"{first} {last}\",\n        \t(string first, null) =&gt; first,\n        \t(null, string last) =&gt; last,\n        \t(null, null) =&gt; \"Unknown\"\n    \t};<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-10-0\"><strong>Question 10<\/strong><\/h3>\n\n\n\n<p>Develop a simple web application that uses the minimal APIs feature in ASP.NET Core to expose a RESTful API for managing a list of items, like books or movies. Implement CRUD operations using the new minimal APIs feature.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-c-coding-interview-questions-for-expert-developers\"><strong>C# Coding Interview Questions for Expert Developers<\/strong><\/h2>\n\n\n\n<p>When preparing coding challenges for expert-level C# engineers, you should test the advanced features of the language and framework, architecture, CI\/CD, cloud services, performance optimization and unit testing. Some of the areas to evaluate include advanced language features, advanced .NET core and ASP.NET core features, advanced entity framework core, performance and diagnostics, design patterns, cloud and microservices. Below we have presented 10 coding challenges for expert C# developers:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-1-1\"><strong>Question 1<\/strong><\/h3>\n\n\n\n<p>Is there any security vulnerability in the below code? If yes, identify it and suggest a secure implementation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Data.SqlClient;\n public static void Main()\n{\n\tstring username = \"allen'; DROP TABLE users; --\";\n\tstring password = \"mypassword\";\n\tGetUser(username, password);\n}\n \npublic static void GetUser(string username, string password)\n{\n\tusing (SqlConnection connection = new SqlConnection(\"your_connection_string\"))\n\t{\n    \tconnection.Open();\n \n    \tstring query = $\"SELECT * FROM users WHERE username = '{username}' AND password = '{password}'\";\n    \tusing (SqlCommand command = new SqlCommand(query, connection))\n    \t{\n        \tSqlDataReader reader = command.ExecuteReader();\n        \t\/\/ ... Process the result\n    \t}\n\t}\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-2-1\"><strong>Question 2<\/strong><\/h3>\n\n\n\n<p>Identify the output of the below code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.Runtime.InteropServices;\n delegate int MyDelegate(int a, int b);\n &#91;DllImport(\"user32.dll\", CharSet = CharSet.Auto, SetLastError = true, CallingConvention = CallingConvention.StdCall)]\nprivate static extern IntPtr GetProcAddress(IntPtr hModule, string procedureName);\n \n&#91;DllImport(\"user32.dll\", CharSet = CharSet.Auto, SetLastError = true, CallingConvention = CallingConvention.StdCall)]\nprivate static extern IntPtr LoadLibrary(string fileName);\n private static MyDelegate GetFunctionPointer(string library, string function)\n{\n\tIntPtr libHandle = LoadLibrary(library);\n\tIntPtr funcPtr = GetProcAddress(libHandle, function);\n\treturn Marshal.GetDelegateForFunctionPointer&lt;MyDelegate&gt;(funcPtr);\n}\n public static void Main()\n{\n\tMyDelegate myFunction = GetFunctionPointer(\"msvcrt.dll\", \"strcmp\");\n\tint result = myFunction(10, 20);\n\tConsole.WriteLine($\"Result: {result}\");\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-3-1\"><strong>Question 3<\/strong><\/h3>\n\n\n\n<p>What is the possible performance issue in the below code? Also, suggest how to improve it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>using System;\nusing System.IO;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n \npublic static async Task Main()\n{\n\tstring&#91;] urls = { \"url1\", \"url2\", \"url3\", \"url4\", \"url5\" };\n\tawait DownloadFiles(urls);\n}\n public static async Task DownloadFiles(string&#91;] urls)\n{\n\tHttpClient httpClient = new HttpClient();\n \tforeach (string url in urls)\n\t{\n    \tusing MemoryStream memoryStream = await httpClient.GetStreamAsync(url);\n    \tusing FileStream fileStream = new FileStream(Path.GetFileName(url), FileMode.Create, FileAccess.Write);\n    \tawait memoryStream.CopyToAsync(fileStream);\n\t}\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-4-1\"><strong>Question 4<\/strong><\/h3>\n\n\n\n<p>Suggest the output of the below code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>record Point(int X, int Y);\n public static void Main()\n{\n\tobject shape = new Point(3, 4);\n    Console.WriteLine(GetSum(shape));\n}\n static int GetSum(object obj)\n{\n\treturn obj switch\n\t{\n    \tPoint (var x, var y) =&gt; x + y,\n    \t_ =&gt; 0\n\t};\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-5-1\"><strong>Question 5<\/strong><\/h3>\n\n\n\n<p>Using C# and Entity Framework Core, implement a simple caching strategy for a database query that is frequently executed. The caching strategy should store the results of a query in memory and return the cached data if it is available and not expired. If the cache is expired or unavailable, the implementation should execute the query against the database and update the response in the cache.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-6-1\"><strong>Question 6<\/strong><\/h3>\n\n\n\n<p>What is wrong with the below code?<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public interface ILogger\n{\n\tvoid Log(string message);\n\tvoid LogError(string message) =&gt; Log($\"Error: {message}\");\n}\n public class ConsoleLogger : ILogger\n{\n\tpublic void Log(string message)\n\t{\n        Console.WriteLine(message);\n\t}\n}\n public static void Main()\n{\n\tILogger logger = new ConsoleLogger();\n\tlogger.LogError(\"An error occurred.\");\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-7-1\"><strong>Question 7<\/strong><\/h3>\n\n\n\n<p>What will be the output of below code snippet?<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class Product\n{\n\tpublic string Name { get; init; }\n\tpublic decimal Price { get; init; }\n}\n \npublic static void Main()\n{\n\tProduct product = new Product { Name = \"Bowl\", Price = 1.99m };\n\t\/\/product.Name = \"New Bowl\"; \/\/ This line is commented\n    Console.WriteLine(product.Name);\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-8-1\"><strong>Question 8<\/strong><\/h3>\n\n\n\n<p>Using C# and SignalR, develop a real-time chat application. This chat application will allow multiple users to send and receive messages in a chat room. Users should be able to join and leave the chat room. Also, their messages should be broadcast to all connected users in real time.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-9-1\"><strong>Question 9<\/strong><\/h3>\n\n\n\n<p>What is wrong with the below code?<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> public static void Main()\n{\n\tint x = 5;\n\tint y = 10;\n\tint result = Add(x, y);\n\tConsole.WriteLine(result);\n \n\tstatic int Add(int a, int b)\n\t{\n    \treturn a + b + x;\n\t}\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-question-10-1\"><strong>Question 10<\/strong><\/h3>\n\n\n\n<p>Using C# and ASP.NET Core, implement a custom authentication middleware that checks for a specific token in the request header. If the token is found and it is valid, the middleware should allow the request to proceed. In case the token is missing or invalid, the middleware should return a 401 Unauthorized status.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>This article has provided a collection of C# coding challenges appropriate for novice, intermediate and expert developers. These challenges cover a wide variety of areas and concepts, catering to programmers of varying experience levels and allowing recruiters to test C# and .NET skills in candidates.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/codeinterview.io\/coding-tests\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"196\" src=\"https:\/\/codeinterview.io\/blog\/wp-content\/uploads\/2023\/11\/CodeInterview-3-1.png\" alt=\"Test assessment tool\" class=\"wp-image-539\" srcset=\"https:\/\/codeinterview.io\/blog\/wp-content\/uploads\/2023\/11\/CodeInterview-3-1.png 1024w, https:\/\/codeinterview.io\/blog\/wp-content\/uploads\/2023\/11\/CodeInterview-3-1-300x57.png 300w, https:\/\/codeinterview.io\/blog\/wp-content\/uploads\/2023\/11\/CodeInterview-3-1-768x147.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><em>Further reading: <\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/codeinterview.io\/blog\/java-coding-interview-questions\/\">Java Coding Interview Questions<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/codeinterview.io\/blog\/python-coding-interview-questions\/\">Python Coding Interview Questions<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/codeinterview.io\/blog\/reactjs-coding-interview-questions\/\">ReactJS Coding Interview Questions<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/codeinterview.io\/blog\/javascript-coding-interview-questions\/\">JavaScript Coding Interview Questions<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/codeinterview.io\/blog\/c-plus-plus-coding-interview-questions\/\">C++ Coding Interview Questions<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/codeinterview.io\/blog\/php-coding-interview-questions\/\">PHP Coding Interview Questions<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/codeinterview.io\/blog\/advanced-coding-interview-questions\/\">73 Advanced Coding Interview Questions<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>C# is one of the leading programming languages from Microsoft. It is used not only in web applications but also for desktop and mobile applications. Since 2014, when it became open source, and after the arrival of .NET core 7, it has been gaining popularity and wide adoption by developers.&nbsp; Today&#8217;s article will present different [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":218,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[22],"tags":[14],"class_list":["post-217","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-industry","tag-interview-questions"],"_links":{"self":[{"href":"https:\/\/codeinterview.io\/blog\/wp-json\/wp\/v2\/posts\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeinterview.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeinterview.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeinterview.io\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/codeinterview.io\/blog\/wp-json\/wp\/v2\/comments?post=217"}],"version-history":[{"count":0,"href":"https:\/\/codeinterview.io\/blog\/wp-json\/wp\/v2\/posts\/217\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeinterview.io\/blog\/wp-json\/wp\/v2\/media\/218"}],"wp:attachment":[{"href":"https:\/\/codeinterview.io\/blog\/wp-json\/wp\/v2\/media?parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeinterview.io\/blog\/wp-json\/wp\/v2\/categories?post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeinterview.io\/blog\/wp-json\/wp\/v2\/tags?post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}