{"id":3038,"date":"2023-12-22T06:50:51","date_gmt":"2023-12-22T06:50:51","guid":{"rendered":"https:\/\/www.kaashivinfotech.com\/blog\/?p=3038"},"modified":"2025-07-22T11:16:19","modified_gmt":"2025-07-22T11:16:19","slug":"dotnet-programming-interview-questions-and-answers","status":"publish","type":"post","link":"https:\/\/www.kaashivinfotech.com\/blog\/dotnet-programming-interview-questions-and-answers\/","title":{"rendered":"Dotnet Programming Interview Questions and Answers"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3038\" class=\"elementor elementor-3038\">\n\t\t\t\t<div class=\"elementor-element elementor-element-cbf0d05 e-flex e-con-boxed e-con e-parent\" data-id=\"cbf0d05\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b67294b elementor-widget elementor-widget-heading\" data-id=\"b67294b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Introduction<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-56e1d99 e-flex e-con-boxed e-con e-parent\" data-id=\"56e1d99\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-41e8507 elementor-widget elementor-widget-text-editor\" data-id=\"41e8507\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The\u00a0<a href=\"https:\/\/www.kaashivinfotech.com\/blog\/dotnet-full-stack-interview-questions-for-fresher-with-answers\/\"><strong>DOTNET<\/strong><\/a>\u00a0is a\u00a0software framework. It is developed by\u00a0Microsoft. It includes a large\u00a0library\u00a0and also provides\u00a0language inter-operability across some\u00a0programming languages. Language inter-operability refers the capability of two different languages to interact and operate on the same kind of data structures.<\/p><p>The programs written for\u00a0<a href=\"http:\/\/bigclasses.com\/dot-net-online-training.html\" target=\"_blank\" rel=\"noopener\"><strong>DOT NET<\/strong><\/a>\u00a0execute in a software environment. The name of the software environment is Common Language Runtime (CLR). It is the virtual machine component. The compiled code is converted into machine code at first. Then it is executed by computer\u2019s CPU. The CLR provides additional services like exception handling, memory management, type safety, garbage collection, thread management etc.<\/p><p>The DOT NET Framework\u2019s\u00a0Base Class Library\u00a0offers\u00a0user interface,\u00a0database connectivity,\u00a0data access, cryptography,\u00a0web application\u00a0development, numeric\u00a0algorithms, network communications etc. Programmers produce software by combining their own\u00a0source code\u00a0with the\u00a0 DOT NET Framework and other libraries. The DOT NET Framework is projected to be used by most new applications created for the Windows platform. Microsoft also produces an integrated\u00a0largely for DOT NET software called\u00a0Visual Studio.<\/p><p>&#8220;Explore a comprehensive collection of .NET programming interview questions and expertly crafted answers. Whether you&#8217;re a seasoned developer or preparing for a job interview, this resource covers essential topics in C# and .NET development. Dive into discussions on key concepts, design patterns, ASP.NET, and more. Elevate your knowledge and ace your next .NET programming interview with confidence.&#8221;<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-b69e75b e-flex e-con-boxed e-con e-parent\" data-id=\"b69e75b\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-28e478b elementor-widget elementor-widget-heading\" data-id=\"28e478b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Dotnet Programming Interview Questions<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3da18ba elementor-widget elementor-widget-accordion\" data-id=\"3da18ba\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"accordion.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-accordion\">\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-6461\" class=\"elementor-tab-title\" data-tab=\"1\" role=\"button\" aria-controls=\"elementor-tab-content-6461\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">1. Occurance of a string ? ( get the string from user)<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-6461\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"1\" role=\"region\" aria-labelledby=\"elementor-tab-title-6461\"><ul><li>In .NET, you can use the\u00a0<strong>string.IndexOf()<\/strong>\u00a0method to find the first occurrence of a specific string within another string. The method returns the index of the first occurrence of the specified string, or -1 if the specified string is not found.<\/li><li>Here is an example of how to use the\u00a0<strong>IndexOf()<\/strong>\u00a0method to find the first occurrence of the string entered by the user in the input string:<\/li><\/ul><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">Console.WriteLine(&quot;Enter the input string:&quot;);<br\/>string inputString = Console.ReadLine();<br\/>Console.WriteLine(&quot;Enter the search string:&quot;);<br\/>string searchString = Console.ReadLine();<br\/>int index = inputString.IndexOf(searchString);<br\/>if (index != -1)<br\/>    Console.WriteLine(&quot;The first occurrence of &#039;&quot; + searchString + &quot;&#039; is at index &quot; + index);<br\/>else<br\/>    Console.WriteLine(&quot;The string &#039;&quot; + searchString + &quot;&#039; was not found in the input string.&quot;);<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>You can also use the\u00a0<strong>LastIndexOf()<\/strong>\u00a0method to find the last occurrence of a specific string within another string.<\/li><li>Additionally, you can use the\u00a0<strong>string.Contains()<\/strong>\u00a0method to check if a string contains a specific substring or not, it returns a boolean value.<\/li><\/ul><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">Console.WriteLine(&quot;Enter the input string:&quot;);<br\/>string inputString = Console.ReadLine();<br\/>Console.WriteLine(&quot;Enter the search string:&quot;);<br\/>string searchString = Console.ReadLine();<br\/>bool check = inputString.Contains(searchString);<br\/>if (check)<br\/>    Console.WriteLine(&quot;The input string contains &#039;&quot; + searchString + &quot;&#039;.&quot;);<br\/>else<br\/>    Console.WriteLine(&quot;The input string does not contain &#039;&quot; + searchString + &quot;&#039;.&quot;);<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>Please note that in both examples\u00a0<strong>Console.ReadLine()<\/strong>\u00a0is used to get the input from the user.<\/li><\/ul><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-6462\" class=\"elementor-tab-title\" data-tab=\"2\" role=\"button\" aria-controls=\"elementor-tab-content-6462\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">2. Pattern program ? (reversed pyramid)<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-6462\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"2\" role=\"region\" aria-labelledby=\"elementor-tab-title-6462\"><p>Here is one way to create a reversed pyramid pattern using C# in the .Net framework:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">using System;<br\/>class Program<br\/>{<br\/>    static void Main(string[] args)<br\/>    {<br\/>        int n = 5;<br\/>        for (int i = n; i &gt;= 1; i--)<br\/>        {<br\/>            for (int j = 1; j &lt;= n - i; j++)<br\/>            {<br\/>                Console.Write(&quot; &quot;);<br\/>            }<br\/>            for (int j = 1; j &lt;= 2 * i - 1; j++)<br\/>            {<br\/>                Console.Write(&quot;*&quot;);<br\/>            }<br\/>            Console.WriteLine();<br\/>        }<br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>This program uses nested loops to create the pattern. The outer loop controls the number of rows in the pyramid, and the inner loops control the number of spaces and asterisks (*) in each row. The number of spaces before the asterisks is calculated based on the current row number.<\/li><\/ul><p>This will Output :<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">*********<br\/> *******<br\/>  *****<br\/>   ***<br\/>    *<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>Note:\u00a0<strong>Console.Write()<\/strong>\u00a0is used to print the characters in the same line,\u00a0<strong>Console.WriteLine()<\/strong>\u00a0is used to print the characters in the new line.<\/li><\/ul><p><br \/><br \/><\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-6463\" class=\"elementor-tab-title\" data-tab=\"3\" role=\"button\" aria-controls=\"elementor-tab-content-6463\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">Accordion Title<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-6463\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"3\" role=\"region\" aria-labelledby=\"elementor-tab-title-6463\">Accordion Content<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-6464\" class=\"elementor-tab-title\" data-tab=\"4\" role=\"button\" aria-controls=\"elementor-tab-content-6464\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">3. OOPS concept definition with program ?<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-6464\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"4\" role=\"region\" aria-labelledby=\"elementor-tab-title-6464\"><ul><li>In object-oriented programming (OOP), encapsulation is one of the four fundamental principles, along with inheritance, polymorphism, and abstraction. Encapsulation refers to the practice of hiding the implementation details of an object and exposing only the necessary information to the outside world through interfaces and methods. This allows for greater flexibility and maintainability of the code, as the implementation details can be changed without affecting the code that uses the object.<\/li><\/ul><p>Here is an example of how encapsulation is used in C#:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">using System;<br\/><br\/>class BankAccount<br\/>{<br\/>    private decimal balance;<br\/>    private string accountNumber;<br\/><br\/>    public BankAccount(string accountNumber)<br\/>    {<br\/>        this.accountNumber = accountNumber;<br\/>    }<br\/><br\/>    public void Deposit(decimal amount)<br\/>    {<br\/>        balance += amount;<br\/>    }<br\/><br\/>    public void Withdraw(decimal amount)<br\/>    {<br\/>        if (amount &gt; balance)<br\/>        {<br\/>            throw new Exception(&quot;Insufficient funds&quot;);<br\/>        }<br\/>        balance -= amount;<br\/>    }<br\/><br\/>    public decimal GetBalance()<br\/>    {<br\/>        return balance;<br\/>    }<br\/>}<br\/><br\/>class Program<br\/>{<br\/>    static void Main(string[] args)<br\/>    {<br\/>        var account = new BankAccount(&quot;123456&quot;);<br\/>        account.Deposit(100);<br\/>        Console.WriteLine(&quot;Balance: &quot; + account.GetBalance());<br\/>        account.Withdraw(50);<br\/>        Console.WriteLine(&quot;Balance: &quot; + account.GetBalance());<br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>In this example, the BankAccount class encapsulates the balance and account number properties, as well as the Deposit, Withdraw, and GetBalance methods. The balance and account number properties are marked as private, meaning that they cannot be accessed directly by code outside of the BankAccount class. Instead, code outside of the class can use the Deposit, Withdraw, and GetBalance methods to interact with the balance and account number.<\/li><\/ul><p>This will Output :<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">Balance: 100<br\/>Balance: 50<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-6465\" class=\"elementor-tab-title\" data-tab=\"5\" role=\"button\" aria-controls=\"elementor-tab-content-6465\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">4. Reverse string program ?<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-6465\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"5\" role=\"region\" aria-labelledby=\"elementor-tab-title-6465\"><p>Here is a simple program to reverse a string in C#:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">using System;<br\/><br\/>namespace ReverseString<br\/>{<br\/>    class Program<br\/>    {<br\/>        static void Main(string[] args)<br\/>        {<br\/>            Console.WriteLine(&quot;Enter a string to reverse: &quot;);<br\/>            string input = Console.ReadLine();<br\/><br\/>            char[] charArray = input.ToCharArray();<br\/>            Array.Reverse(charArray);<br\/>            string reversedString = new string(charArray);<br\/><br\/>            Console.WriteLine(&quot;Reversed string: &quot; + reversedString);<br\/>            Console.ReadKey();<br\/>        }<br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>In this program, we first get a string input from the user using the\u00a0<strong>Console.ReadLine()<\/strong>\u00a0method. Then, we convert the string into a character array using the\u00a0<strong>ToCharArray()<\/strong>\u00a0method.<\/li><li>Next, we use the\u00a0<strong>Array.Reverse<\/strong>\u00a0method to reverse the order of elements in the character array. Finally, we create a new string from the reversed character array using the\u00a0<strong>string<\/strong>\u00a0constructor, and print it to the console.<\/li><\/ul><p>This will Output :<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">Enter a string to reverse:<br\/>hello<br\/>Reversed string: olleh<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-6466\" class=\"elementor-tab-title\" data-tab=\"6\" role=\"button\" aria-controls=\"elementor-tab-content-6466\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">5. Odd or Even numbers program ?<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-6466\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"6\" role=\"region\" aria-labelledby=\"elementor-tab-title-6466\"><p>Here is an example of how to check whether a number is even or odd in C#:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">using System;<br\/><br\/>class Program<br\/>{<br\/>    static void Main(string[] args)<br\/>    {<br\/>        int number = 5;<br\/>        if (number % 2 == 0)<br\/>        {<br\/>            Console.WriteLine(&quot;The number &quot; + number + &quot; is even.&quot;);<br\/>        }<br\/>        else<br\/>        {<br\/>            Console.WriteLine(&quot;The number &quot; + number + &quot; is odd.&quot;);<br\/>        }<br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>In this example, the\u00a0<strong>if<\/strong>\u00a0statement checks whether the remainder of the division of the\u00a0<strong>number<\/strong>\u00a0variable by 2 is equal to 0. If it is, the number is even, otherwise it is odd.<\/p><p>This will Output :<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">The number 5 is odd.<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-6467\" class=\"elementor-tab-title\" data-tab=\"7\" role=\"button\" aria-controls=\"elementor-tab-content-6467\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">6. Occurence of string ? (count and print 'pp' from the string \"apple\")<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-6467\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"7\" role=\"region\" aria-labelledby=\"elementor-tab-title-6467\"><ul><li>To count the number of occurrences of a specific substring in a string in C#, you can use the\u00a0<strong>string.IndexOf()<\/strong>\u00a0method to search for the substring in the main string and then iterate through the main string until no more occurrences of the substring are found.<\/li><\/ul><p>Here&#8217;s an example of counting the number of occurrences of the substring &#8220;pp&#8221; in the string &#8220;apple&#8221;:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">string input = &quot;apple&quot;;<br\/>int count = 0;<br\/>int index = input.IndexOf(&quot;pp&quot;);<br\/>while (index != -1)<br\/>{<br\/>    count++;<br\/>    index = input.IndexOf(&quot;pp&quot;, index + 1);<br\/>}<br\/>Console.WriteLine(&quot;&#039;pp&#039; appears {0} times in &#039;{1}&#039;&quot;, count, input);<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>In this example, we use the\u00a0<strong>IndexOf()<\/strong>\u00a0method to find the first occurrence of &#8220;pp&#8221; in the input string. If an occurrence is found, the value of the index variable is updated and the while loop continues. The loop continues to execute as long as the value of index is not -1, which means that an occurrence of the substring was found.<\/li><\/ul><p>The output of the above code will be<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">&#039;pp&#039; appears 1 times in &#039;apple&#039;<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>If you want to print the &#8216;pp&#8217; from the string &#8220;apple&#8221; then you can use the following code<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">string input = &quot;apple&quot;;<br\/>int index = input.IndexOf(&quot;pp&quot;);<br\/>if (index != -1)<br\/>{<br\/>    Console.WriteLine(&quot;&#039;pp&#039; found in &#039;{0}&#039; at index {1}&quot;, input, index);<br\/>}<br\/>else<br\/>{<br\/>    Console.WriteLine(&quot;&#039;pp&#039; not found in &#039;{0}&#039;&quot;, input);<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>This will Output :<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">&#039;pp&#039; found in &#039;apple&#039; at index 1<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-6468\" class=\"elementor-tab-title\" data-tab=\"8\" role=\"button\" aria-controls=\"elementor-tab-content-6468\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">7. Occurence of a string with user defined not to use static ?<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-6468\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"8\" role=\"region\" aria-labelledby=\"elementor-tab-title-6468\"><ul><li>In C#, to check for the occurrence of a string without using the\u00a0<strong>static<\/strong>\u00a0keyword, you can create an instance of a class and use its method to check for the occurrence of a string.<\/li><\/ul><p>Here is an example:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">class StringChecker<br\/>{<br\/>    public int OccurrenceCount(string originalString, string searchString)<br\/>    {<br\/>        int count = 0;<br\/>        int index = 0;<br\/>        while ((index = originalString.IndexOf(searchString, index)) != -1)<br\/>        {<br\/>            index++;<br\/>            count++;<br\/>        }<br\/>        return count;<br\/>    }<br\/>}<br\/><br\/>class Program<br\/>{<br\/>    static void Main()<br\/>    {<br\/>        StringChecker sc = new StringChecker();<br\/>        string originalString = &quot;This is a test string&quot;;<br\/>        string searchString = &quot;is&quot;;<br\/>        int count = sc.OccurrenceCount(originalString, searchString);<br\/>        Console.WriteLine(&quot;The string &#039;{0}&#039; occurs {1} times in the original string.&quot;, searchString, count);<br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>In this example, the\u00a0<strong>StringChecker<\/strong>\u00a0class has a method\u00a0<strong>OccurrenceCount<\/strong>\u00a0that takes two strings as input and returns the number of times the second string occurs in the first string. The\u00a0<strong>Main<\/strong>\u00a0method creates an instance of the\u00a0<strong>StringChecker<\/strong>\u00a0class, and calls the\u00a0<strong>OccurrenceCount<\/strong>\u00a0method to check for the occurrence of the string &#8220;<strong>is<\/strong>&#8221; in the original string &#8220;<strong>This is a test string<\/strong>&#8220;. The result is then printed to the console.<\/li><\/ul><p>When you run this program, it will output:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">The string &#039;is&#039; occurs 2 times in the original string.<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-6469\" class=\"elementor-tab-title\" data-tab=\"9\" role=\"button\" aria-controls=\"elementor-tab-content-6469\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">8. Pattern program in Star ?<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-6469\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"9\" role=\"region\" aria-labelledby=\"elementor-tab-title-6469\"><p>Here is an example of a star pattern program in C#:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">using System;<br\/><br\/>namespace StarPattern<br\/>{<br\/>    class Program<br\/>    {<br\/>        static void Main(string[] args)<br\/>        {<br\/>            Console.WriteLine(&quot;Enter number of rows: &quot;);<br\/>            int rows = int.Parse(Console.ReadLine());<br\/><br\/>            for (int i = 1; i &lt;= rows; i++)<br\/>            {<br\/>                for (int j = 1; j &lt;= i; j++)<br\/>                {<br\/>                    Console.Write(&quot;*&quot;);<br\/>                }<br\/>                Console.WriteLine();<br\/>            }<br\/>        }<br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>This program will prompt the user to enter the number of rows, and then it will print a triangle pattern of stars, with each row containing one more star than the previous row.<\/li><\/ul><p>When you run this program, it will output:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">Enter number of rows:<br\/>3<br\/>*<br\/>**<br\/>***<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-64610\" class=\"elementor-tab-title\" data-tab=\"10\" role=\"button\" aria-controls=\"elementor-tab-content-64610\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">9. String Concatenation Program ?<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-64610\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"10\" role=\"region\" aria-labelledby=\"elementor-tab-title-64610\"><p>Here&#8217;s an example of string concatenation in C#:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">using System;<br\/><br\/>class Program<br\/>{<br\/>    static void Main(string[] args)<br\/>    {<br\/>        string firstName = &quot;John&quot;;<br\/>        string lastName = &quot;Doe&quot;;<br\/><br\/>        string fullName = firstName + &quot; &quot; + lastName;<br\/><br\/>        Console.WriteLine(&quot;Full name: &quot; + fullName);<br\/><br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>In this example, two strings,\u00a0<strong>firstName<\/strong>\u00a0and\u00a0<strong>lastName<\/strong>, are defined and concatenated using the + operator to create a full name string,\u00a0<strong>fullName.<\/strong>\u00a0The concatenated string is then displayed on the console using\u00a0<strong>Console.WriteLine.<\/strong><\/li><\/ul><p>This will Output :<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">Full name: John Doe<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-64611\" class=\"elementor-tab-title\" data-tab=\"11\" role=\"button\" aria-controls=\"elementor-tab-content-64611\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">10. String length Program ?<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-64611\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"11\" role=\"region\" aria-labelledby=\"elementor-tab-title-64611\"><p>Here&#8217;s an example of how to find the length of a string in C#:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">using System;<br\/><br\/>class Program<br\/>{<br\/>    static void Main(string[] args)<br\/>    {<br\/>        string message = &quot;Hello World&quot;;<br\/>        int length = message.Length;<br\/><br\/>        Console.WriteLine(&quot;The length of the string &#039;&quot; + message + &quot;&#039; is: &quot; + length);<br\/><br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>In this example, a string\u00a0<strong>message<\/strong>\u00a0is defined and its length is found using the\u00a0<strong>Length<\/strong>\u00a0property of the\u00a0<strong>string<\/strong>\u00a0type. The length of the string is then displayed on the console using\u00a0<strong>Console.WriteLine.<\/strong><\/li><\/ul><p><strong>This will Output<\/strong><\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">The length of the string &#039;Hello World&#039; is: 11<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-64612\" class=\"elementor-tab-title\" data-tab=\"12\" role=\"button\" aria-controls=\"elementor-tab-content-64612\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">11. Even number only printing Program ?<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-64612\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"12\" role=\"region\" aria-labelledby=\"elementor-tab-title-64612\"><p>Here&#8217;s an example of printing only even numbers in C#:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">using System;<br\/><br\/>class Program<br\/>{<br\/>    static void Main(string[] args)<br\/>    {<br\/>        for (int i = 1; i &lt;= 10; i++)<br\/>        {<br\/>            if (i % 2 == 0)<br\/>            {<br\/>                Console.WriteLine(i);<br\/>            }<br\/>        }<br\/><br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>In this example, a\u00a0<strong>for<\/strong>\u00a0loop is used to iterate from 1 to 10. For each iteration, the value of i is checked to see if it is even using the modulo operator (<strong>%<\/strong>). If the result of\u00a0<strong>i % 2<\/strong>\u00a0is 0, then i is even and its value is printed on the console using\u00a0<strong>Console.WriteLine.<\/strong><\/li><\/ul><p>This will Output :<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">2<br\/>4<br\/>6<br\/>8<br\/>10<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-64613\" class=\"elementor-tab-title\" data-tab=\"13\" role=\"button\" aria-controls=\"elementor-tab-content-64613\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">12. Arrays with program ?<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-64613\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"13\" role=\"region\" aria-labelledby=\"elementor-tab-title-64613\"><p>Here&#8217;s an example of using arrays in C#:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">class Program<br\/>{<br\/>    static void Main(string[] args)<br\/>    {<br\/>        int[] numbers = new int[5];<br\/><br\/>        numbers[0] = 1;<br\/>        numbers[1] = 2;<br\/>        numbers[2] = 3;<br\/>        numbers[3] = 4;<br\/>        numbers[4] = 5;<br\/><br\/>        Console.WriteLine(&quot;The numbers in the array are:&quot;);<br\/>        for (int i = 0; i &lt; numbers.Length; i++)<br\/>        {<br\/>            Console.WriteLine(numbers[i]);<br\/>        }<br\/><br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>In this example, an array\u00a0<strong>numbers<\/strong>\u00a0of type\u00a0<strong>int<\/strong>\u00a0is declared and initialized with 5 elements. The elements of the array are assigned values one by one. Then, a\u00a0<strong>for<\/strong>\u00a0loop is used to iterate over the elements of the array and print their values on the console using\u00a0<strong>Console.WriteLine.<\/strong><\/li><\/ul><p>This will Output :<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">The numbers in the array are:<br\/>1<br\/>2<br\/>3<br\/>4<br\/>5<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-64614\" class=\"elementor-tab-title\" data-tab=\"14\" role=\"button\" aria-controls=\"elementor-tab-content-64614\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">13. Print Numbers from 1 to 10 Program ?<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-64614\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"14\" role=\"region\" aria-labelledby=\"elementor-tab-title-64614\"><p>Here&#8217;s an example of printing the numbers from 1 to 10 in C#:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">using System;<br\/><br\/>class Program<br\/>{<br\/>    static void Main(string[] args)<br\/>    {<br\/>        Console.WriteLine(&quot;Numbers from 1 to 10:&quot;);<br\/>        for (int i = 1; i &lt;= 10; i++)<br\/>        {<br\/>            Console.WriteLine(i);<br\/>        }<br\/><br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>In this example, a\u00a0<strong>for<\/strong>\u00a0loop is used to iterate from 1 to 10. For each iteration, the value of\u00a0<strong>i<\/strong>\u00a0is printed on the console using\u00a0<strong>Console.WriteLine.<\/strong><\/li><\/ul><p>This will Output :<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">Numbers from 1 to 10:<br\/>1<br\/>2<br\/>3<br\/>4<br\/>5<br\/>6<br\/>7<br\/>8<br\/>9<br\/>10<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-64615\" class=\"elementor-tab-title\" data-tab=\"15\" role=\"button\" aria-controls=\"elementor-tab-content-64615\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">14. Leap year program ?<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-64615\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"15\" role=\"region\" aria-labelledby=\"elementor-tab-title-64615\"><p>Here&#8217;s an example of a program to check if a year is a leap year in C#:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">using System;<br\/><br\/>class Program<br\/>{<br\/>    static void Main(string[] args)<br\/>    {<br\/>        Console.WriteLine(&quot;Enter a year:&quot;);<br\/>        int year = Convert.ToInt32(Console.ReadLine());<br\/><br\/>        if (DateTime.IsLeapYear(year))<br\/>        {<br\/>            Console.WriteLine(year + &quot; is a leap year.&quot;);<br\/>        }<br\/>        else<br\/>        {<br\/>            Console.WriteLine(year + &quot; is not a leap year.&quot;);<br\/>        }<br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>In this example, the user is prompted to enter a year using\u00a0<strong>Console.WriteLine<\/strong>\u00a0and\u00a0<strong>Console.ReadLine.<\/strong>\u00a0The input year is then converted to an integer using\u00a0<strong>Convert.ToInt32.<\/strong>\u00a0The\u00a0<strong>DateTime.IsLeapYear<\/strong>\u00a0method is used to check if the year is a leap year. If it is, a message indicating that it is a leap year is displayed on the console using\u00a0<strong>Console.WriteLine.<\/strong>\u00a0If it is not, a message indicating that it is not a leap year is displayed.<\/li><\/ul><p>The output of the code will be:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">Enter a year:<br\/>2020<br\/>2020 is a leap year.<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><p>\u00a0<\/p><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-accordion-item\">\n\t\t\t\t\t<div id=\"elementor-tab-title-64616\" class=\"elementor-tab-title\" data-tab=\"16\" role=\"button\" aria-controls=\"elementor-tab-content-64616\" aria-expanded=\"false\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon elementor-accordion-icon-left\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-closed\"><svg class=\"e-font-icon-svg e-fas-plus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t<span class=\"elementor-accordion-icon-opened\"><svg class=\"e-font-icon-svg e-fas-minus\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z\"><\/path><\/svg><\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-accordion-title\" tabindex=\"0\">15. Prime Number program ?<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"elementor-tab-content-64616\" class=\"elementor-tab-content elementor-clearfix\" data-tab=\"16\" role=\"region\" aria-labelledby=\"elementor-tab-title-64616\"><p>Here&#8217;s a simple program in C# that checks whether a number is a prime number or not:<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">using System;<br\/><br\/>namespace PrimeNumber<br\/>{<br\/>    class Program<br\/>    {<br\/>        static void Main(string[] args)<br\/>        {<br\/>            Console.WriteLine(&quot;Enter a number: &quot;);<br\/>            int num = int.Parse(Console.ReadLine());<br\/><br\/>            bool isPrime = true;<br\/><br\/>            for (int i = 2; i &lt;= Math.Sqrt(num); i++)<br\/>            {<br\/>                if (num % i == 0)<br\/>                {<br\/>                    isPrime = false;<br\/>                    break;<br\/>                }<br\/>            }<br\/><br\/>            if (isPrime)<br\/>                Console.WriteLine(num + &quot; is a prime number.&quot;);<br\/>            else<br\/>                Console.WriteLine(num + &quot; is not a prime number.&quot;);<br\/>        }<br\/>    }<br\/>}<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><ul><li>The program first prompts the user to enter a number. It then uses a for loop to check if the number is divisible by any number other than 1 and itself. If the number is divisible by any other number, it means that it is not a prime number. Finally, the program displays a message indicating whether the number is a prime number or not.<\/li><\/ul><p>This will Output :<\/p><div class=\"code-embed-wrapper\"> <pre class=\"language-csharp code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-csharp code-embed-code\">Enter a number:<br\/>7<br\/>7 is a prime number.<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Introduction The\u00a0DOTNET\u00a0is a\u00a0software framework. It is developed by\u00a0Microsoft. It includes a large\u00a0library\u00a0and also provides\u00a0language inter-operability across some\u00a0programming languages. Language inter-operability refers the capability of two different languages to interact and operate on the same kind of data structures. The programs written for\u00a0DOT NET\u00a0execute in a software environment. The name of the software environment is Common [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[724,3203],"tags":[804,806,799,800,833,801,803,1033,811,1031,834,1104,1105],"class_list":["post-3038","post","type-post","status-publish","format-standard","hentry","category-interview-questions","category-programming","tag-net-interview-questions","tag-net-interview-questions-and-answers","tag-asp-net-interview-questions","tag-asp-net-interview-questions-and-answers","tag-asp-net-mvc-interview-questions-and-answers","tag-c-interview-questions","tag-c-interview-questions-and-answers","tag-c-interview-questions-and-answers-for-experienced","tag-c-interview-questions-with-answers","tag-interview-questions-and-answers","tag-mvc-interview-questions-and-answers","tag-oops-interview-questions-and-answers","tag-programming-interview-questions-and-answers"],"_links":{"self":[{"href":"https:\/\/www.kaashivinfotech.com\/blog\/wp-json\/wp\/v2\/posts\/3038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kaashivinfotech.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kaashivinfotech.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kaashivinfotech.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kaashivinfotech.com\/blog\/wp-json\/wp\/v2\/comments?post=3038"}],"version-history":[{"count":0,"href":"https:\/\/www.kaashivinfotech.com\/blog\/wp-json\/wp\/v2\/posts\/3038\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kaashivinfotech.com\/blog\/wp-json\/wp\/v2\/media?parent=3038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kaashivinfotech.com\/blog\/wp-json\/wp\/v2\/categories?post=3038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kaashivinfotech.com\/blog\/wp-json\/wp\/v2\/tags?post=3038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}