Pages

Sunday, September 11, 2011

Basic Simple Programs for Interview

Hi Friends this time I am sharing you a very simple basic programs that generally asked at the time of interview. I used to asked it some times a very very simple programs ..we know that we can make it out those program but in interview time if you know how to do that then you can make it out very easyly and make a face that you are thinking about it ;) .. but you know already . and write it after some moments . ;) So just take a look before the interview ..!! All the best friends..!! Prog1:Retrun Vowel of Not. Solution: ======
public bool CheckVowel(object sender,KeyEventArgs e)
{
    if(e.KeyCode ==Keys.A||e.KeyCode ==Keys.E||e.KeyCode ==Keys.I||e.KeyCode ==Keys.O||e.KeyCode ==Keys.U)
    {    
    return true;
    }
    else
    return false;
}
Prog 2: Even Or Odd Solution: ======
public string EvenOrOdd( int Num)
{
    if(num%2 ==0)
    retrun "evenNumber";
    else
    return "OddNumber"
}
Prog3:PrimeNumber Soultion: ======
public string PrimeOrNot(int num)
{
    int i = 0;
    for (i = 3; i < num; i++)
    {
        if (num % i == 0)
        {
            Console.WriteLine("{0} is not a prime number", num);
            break;
        }
    }
    if (i == num)
    {
        Console.Writeline("{0} is a prime Number", num);
    }
}
Prog4:Fibonacci Series Solution: =======
public void FibonacciSeries(int number)
{
    int f_0 = 0;
    int f_1 = 1;
    int sum;
    Console.Write("{0} {1} ", f_0, f_1);
    for (int i = 2; i < number; i++)
    {
        sum = f_0 + f_1;
        f_0 = f_1;
        f_1 = sum;
        int value = f_0 + f_1;
        Console.Write("{0} ", value);
    }
}
Prog5: Factorial Solution: =======
public int Factorial(int number)
{
    int value = 1;
    for (int i = 1; i <= number; i++)
    {
        value = value * i;
    }
    return value;
}
Prog:6 Permutation (nPr) Solution: ====== Refrence Solution 5;
public double Permutation(int n, int r)
{
    double nPr = Factorial(n) / Factorial(n - r);
    return nPr;
}
 
Prog:7 Combination(nCr) Solution: ====== Refrence Solution 5;
public double Combination(int n , int r)
{
double nCr = Factorial(n)/Factorial(r)*(Factorial(n-r);
return nCr;
}
Prog8 : Add two numbers without using the plus operator Solution: ======
public int Add (int x , int y )
{
    return x-(-y);
}    
Prog9: Multiply two numbers without usering * operator Solution: =======
public int MulWithOutStarOperator( int x ,int y)
{
    for(int z= 1 ; z<=y ; z++)
    {
        int value = value +x;
    }
    return value;
} 
Prog:10 String Reverse Solution: =======
public string ReverseString(string str)
{
    int strLenght = str.Lenght;
    char strArray[] = new char[strLength];
    for ( int i = 0 ; i

Prog:11 Return multiple values from a function

Solution:
========

public int Add(int a,int b,out int c)
{
     c=a+1;
     return a+b;
}
Description : --------------- when we call the Add method we will get the sum of the a and b and can also use the value of c like int d=0; int e= Add(2,3,d) ; then the value of e will be 5 and the value of d will be 3.

120 comments:

  1. Replies
    1. Thanks.Nice article.
      If you want to know about latest technologies.visit below site.
      www.dotnetbasic.com

      Delete
  2. thanks for giving this much of information

    ReplyDelete
  3. Thank a lot.I think its look like c and c .Now i am doing BCA so i want to learn this for my future.

    ReplyDelete
  4. retrun "evenNumber";

    ReplyDelete
  5. This blog explains the details of most popular technological details. This helps to learn about what are all the different method is there. And the working methods all of that are explained here. Informative blog.
    Dotnet Training in Chennai

    ReplyDelete
  6. I already have collection of dotnet blogs which is useful for my career.it is also one ofmy fav blog because after refer your blog i can develop a frameworks quickly.


    Dotnet Training in Chennai

    ReplyDelete
  7. i got coding techniques and enough thing about dot net development. keep share more information about dot net programming and it methods.
    dot net training in chennai

    ReplyDelete
  8. Hello Sir,
    Thanks for the programs, I did used it in my interview and got the positive result. Well Explained, All the posts in your blog seems useful and also can learn Dot Net Training in Chennai

    ReplyDelete
  9. It was good very helpful to the new job seekers.....

    Best Dot net Training in Chennai

    ReplyDelete
  10. Really a good technical site,keep on writing good stuffs
    dot net training in chennai

    ReplyDelete
  11. Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role in every blog.i am expecting more updated posts from your hands.

    PSD to Wordpress
    wordpress website development

    ReplyDelete
  12. very good information. keep it up.
    if you want to know the technologies updates,visit below site.
    dot net and latest technologies Tutorials

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.

    rpa training in chennai
    rpa training in bangalore
    rpa course in bangalore
    best rpa training in bangalore
    rpa online training

    ReplyDelete
  15. I likable the posts and offbeat format you've got here! I’d wish many thanks for sharing your expertise and also the time it took to post!!
    python course in pune
    python course in chennai
    python course in Bangalore

    ReplyDelete
  16. Awesome article. It is so detailed and well formatted that i enjoyed reading it as well as get some new information too.
    python interview questions and answers
    python tutorials
    python course institute in electronic city

    ReplyDelete
  17. Excellant post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Devops Training in Bangalore
    Best Devops Training in pune
    Microsoft azure training in Bangalore
    Power bi training in Chennai

    ReplyDelete
  18. Thank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me.
    Data science course in bangalore | Data Science training with placement in Bangalore

    ReplyDelete
  19. Very nice post here and thanks for it .I always like and such a super contents of these post.
    Excellent and very cool idea and great content of different kinds of the valuable information's.

    Java training in Bangalore



    ReplyDelete
  20. Some us know all relating to the compelling medium you present powerful steps on this blog and therefore strongly encourage
    contribution from other ones on this subject while our own child is truly discovering a great deal.
    Have fun with the remaining portion of the year.

    Selenium training in bangalore | best selenium training in bangalore | advanced selenium training in bangalore | no.1 selenium training in bangalore

    ReplyDelete
  21. I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog. 
    microsoft azure training in bangalore
    rpa training in bangalore
    rpa training in pune
    best rpa training in bangalore

    ReplyDelete
  22. Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging..
    Webdesign

    ReplyDelete
  23. I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.

    business analytics course

    data analytics courses

    data science interview questions

    data science course in mumbai

    ReplyDelete
  24. С сумкой для дамы всё не так просто. Для девушки на первое место выходит то, как глядится аксессуар. Дама принимает решение вбухать много времени, чтобы привязаться к исключительной для себя сумочке в гардеробчике, но при этом произвести первое впечатление на родственников. В сумке женщины можно заметить косметику, телефон, аксессуары, перчатки. Реестр иногда гораздо больше, всё упираеться от величины взятого атрибута. В гардеробе леди сразу много сумочек разных принадлежностей и видов. Для похода на прогулок или рутинных будней мисс избирает маленькую сумку или кросс-боди, для стрелки с подругами на закате. Интересно, что женщине иногда одаривают сумку. Аксессуары дама выбирает единолично, а когда есть потребность, то предъявляет друзьям то, что она предпочитает в качестве желанного сувенира. Подарки и спонтанные приобретения здесь будут неуместны. Покупка инной вещи – это ответственное событие, но безумно приятное. Не смотря не на что делайте это как можно чаще тут сумка без .

    ReplyDelete
  25. Attend The Data Scientist Courses From ExcelR. Practical Data Scientist Courses Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Scientist Courses. Data Scientist Courses

    ReplyDelete
  26. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking Best data science courses in hyerabad

    ReplyDelete
  27. Ворожение разрешает увидеть, что вас ожидает в предстоящее время. Каждый хочет знать свое грядущее и воспринимает конкретные варианты гадания по максимуму достоверными. Гадание дзен Таро это шанс предсказать будущие явления непрерывно манил людей.

    ReplyDelete
  28. You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...
    Digital Marketing Training in Chennai

    Digital Marketing Course in Chennai


    ReplyDelete
  29. I think this is a standout amongst the most critical data for me. What"s more, i"m happy perusing your article. Be that as it may, ought to comment on some broad things ExcelR Business Analytics Courses

    ReplyDelete
  30. Very nice article!

    Thanks.
    Vikas(Dotnetbasic.com)

    ReplyDelete
  31. This post is so interactive and informative.keep update more information...
    German Classes in Velachery
    German Classes in chennai

    ReplyDelete
  32. Thanks for posting the best information and the blog is very good .data science course in udaipur

    ReplyDelete
  33. Basic simple programs for beginners typically include tasks like printing "Hello World," calculating factorials, creating a simple calculator, or reversing a string. These foundational exercises help grasp core programming concepts like loops, conditionals, functions, and basic input/output operations, building essential skills for more complex coding challenges later.
    Data science courses in Gurgaon

    ReplyDelete
  34. Nice compilation of basic simple programs for interviews
    Data Science Courses in Singapore

    ReplyDelete
  35. This topic is so important in today’s marketing landscape! I’d love to see a follow-up post on how to integrate new technologies into existing strategies.

    Data science courses in Gujarat

    ReplyDelete
  36. Excellent article about dotnet interviews. Am sure it will be helpful to many developers attending interviews. The examples given are simple to understand and follow. Thank you for sharing such an informative post.
    Data science courses in Kochi

    ReplyDelete
  37. thank you for posting simple programs for the interview. It will be very useful for me. and your work will be very useful for other people as well. Keep updating such blogs. Kindly write a blog on how to crack face to face interview as well.
    Online Data Science Course

    ReplyDelete
  38. These intersview questions were much needed. Such content are so helpful in todays time. Great job.
    Online Data Science Course

    ReplyDelete
  39. "I found this article on the Data Science Course in Dadar to be very enlightening!
    The course looks like it covers all the essential skills needed today.
    I’m particularly excited about the real-world projects.
    It’s fantastic to see quality education options available nearby!
    I’m definitely interested in enrolling!"

    ReplyDelete
  40. This collection of basic programs is a great resource for anyone preparing for coding interviews, especially for those just starting out. Covering fundamental concepts like checking vowels, even/odd numbers, prime numbers, and Fibonacci series helps reinforce core programming skills. Programs like string reversal, factorial calculation, and handling permutations/combinations are commonly asked in interviews and are great practice.
    Data science courses in Mysore

    ReplyDelete
  41. Managing entitled millennial employees effectively requires clear communication, empathy, and structure. Providing growth opportunities and showing appreciation can also reduce entitlement behaviors, as millennials tend to respond well to mentorship and recognition of their efforts.
    Thank you for the article.
    Data science Courses in Germany






    ReplyDelete
  42. These basic programs are a great resource for interview prep! It's always good to practice them to stay sharp. Thanks for sharing this list, it’s a helpful refresher!
    Data science course in Navi Mumbai

    NILANJANA B
    NBHUNIA8888@gmail.com
    Data science course in Navi Mumbai
    https://iimskills.com/data-science-courses-in-navi-mumbai/

    ReplyDelete
  43. Your simple examples make learning .NET so much easier. The clarity of your explanations, even for basic programs, is great for beginners. Looking forward to more posts that break down complex concepts
    Data science courses in pune

    ReplyDelete
  44. Thanks for sharing this treasure trove of basic interview programs! 😊 These are exactly the kind of practical examples that can boost confidence during interviews. digital marketing courses in delhi

    ReplyDelete
  45. Basic simple programs for interviews test problem-solving, logic, and coding skills. Examples include reversing strings, finding prime numbers, and sorting arrays. Practice these concepts to demonstrate an understanding of algorithms, data structures, and coding efficiency during technical interviews.
    digital marketing course in Kolkata fees

    ReplyDelete
  46. Wonderful post with industry oriented example programs. Very helpful while preparing for any entrances into IT companies.
    technical writing course

    ReplyDelete
  47. This topic is so important in today’s marketing landscape! I’d love to see a follow-up post on how to integrate new technologies into existing strategies.
    digital marketing course in coimbatore

    ReplyDelete
  48. Excellent article about dotnet interviews. Am sure it will be helpful to many developers attending interviews. The examples given are simple to understand and follow. Thank you for sharing such an informative post.
    Data Science Courses in Micronesia

    https://iimskills.com/data-science-courses-in-micronesia/

    Data Science Courses in Micronesia

    ReplyDelete
  49. .NET is a versatile framework for building applications, supporting multiple languages, cross-platform development, cloud integration, security, scalability, and robust performance.Medical Coding Course

    ReplyDelete
  50. Thanks for sharing these basic simple programs! They're perfect for beginners looking to get started with programming.
    Medical Coding Courses in Chennai

    ReplyDelete
  51. This dotnet drive blog gives us basic and simple programs for an interview.
    Medical Coding Courses in Bangalore

    ReplyDelete
  52. Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role in every blog.i am expecting more updated posts from your hands.
    Medical Coding Courses in Kochi

    ReplyDelete
  53. Some us know all relating to the compelling medium you present powerful steps on this blog and therefore strongly encourage
    contribution from other ones on this subject while our own child is truly discovering a great deal.
    Have fun with the remaining portion of the year.

    Medical Coding Course in Hyderabad

    ReplyDelete
  54. Thanks for sharing these interview programs! They're simple yet essential for building strong coding fundamentals. Perfect for quick prep before interviews!
    Medical coding courses in Delhi/

    ReplyDelete
  55. Innovation drives progress—embracing new tools and techniques can enhance efficiency. Medical Coding Courses in Delhi

    ReplyDelete
  56. "I can totally relate to what you’re saying here. It’s nice to see someone else share the same thoughts!" Medical Coding Courses in Delhi

    ReplyDelete
  57. This was super useful! I’ll definitely save this.
    Medical Coding Courses in Delhi

    ReplyDelete
  58. You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...
    https://iimskills.com/medical-coding-courses-in-bangalore/

    ReplyDelete
  59. Great post! I’ve been exploring ways to build Part Time Income, and recently came across Udyogdhan. It’s been super helpful in developing practical digital skills that actually lead to real earning opportunities. If anyone’s looking to start something flexible and skill-based, it’s definitely worth checking out.

    ReplyDelete
  60. This resource sounds like a valuable tool for both recent graduates and experienced professionals looking to brush up on their fundamentals. Thanks for compiling this!
    Data Science Courses in India

    ReplyDelete
  61. Great help for interviews. Thanks for another valuable post. Medical Coding Courses in Vadodara

    ReplyDelete
  62. This collection of basic programs is incredibly helpful for beginners starting with .NET. The examples are straightforward and easy to follow, which makes it a great resource for building foundational coding skills. Thanks for taking the time to put this together—looking forward to exploring more of your tutorials!
    Medical Coding Courses in Delhi

    ReplyDelete
  63. Thanks for sharing these basic programs. They're great for beginners who are just starting to learn .NET. Sometimes it’s the simple examples that really help build a strong foundation. Looking forward to exploring more from your blog.
    Medical Coding Courses in Delhi


    ReplyDelete
  64. A good starting point for beginners—thanks for sharing!

    Medical Coding Courses in Kochi

    ReplyDelete
  65. Nice roundup of quick-hit interview puzzles—having these basic checks on your fingertips can really boost confidence during coding rounds! Two-line wonders that pack a punch.
    Medical Coding Courses in Delhi

    ReplyDelete
  66. Your simple examples make learning .NET so much easier. The clarity of your explanations, even for basic programs, is great for beginners. Looking forward to more posts that break down complex concepts
    Medical Coding Courses in Delhi

    ReplyDelete
  67. Thanks for putting together this handy list of basic interview programs! These are great refreshers to quickly glance through before a technical interview. Keep sharing—this is useful stuff for brushing up on fundamentals! Medical Coding Courses in Kochi

    ReplyDelete
  68. Perfect for beginners! Simple programs explained clearly—great starting point for new .NET developers.
    Medical Coding Courses in Kochi

    ReplyDelete
  69. This gave me a lot to think about. Appreciate the clarity.
    Medical Coding Courses in Delhi

    ReplyDelete
  70. Great collection—your basic .NET programs are perfectly structured for beginners, offering clear examples for loops, conditionals, and input/output in C#. A solid foundation for anyone starting with .NET!
    Medical Coding Courses in Delhi

    ReplyDelete
  71. Nice collection of simple yet commonly asked interview programs! Great for quick revision before interviews—thanks for sharing these handy snippets.
    Medical Coding Courses in Delhi

    ReplyDelete
  72. This is a really useful collection of simple programs that are often asked in interviews .Covering basics like pattern printing, string manipulation, and number operations helps build a strong foundation for freshers. It would be great to see some added explanations or common variations interviewers ask.
    Medical Coding Courses in Delhi

    ReplyDelete
  73. Loved the way you explained these programs with clarity! Learning to handle such simple logic boosts confidence for interviews. Similarly, those looking to switch careers might find Medical Coding Courses in Delhi a useful starting point.

    ReplyDelete
  74. Very useful collection! These simple programs are great for brushing up on core concepts before interviews. Perfect for quick revision—thanks for sharing!

    Medical Coding Courses in Delhi

    ReplyDelete
  75. tHANKS FOR sharing you a very simple basic programs

    Medical Coding Courses in Delhi

    ReplyDelete
  76. Nice collection of basic C# programs, great for beginners to practice fundamentals like loops, conditionals, and simple logic! Do check out Medical Coding Courses in Delhi for more career opportunities.

    ReplyDelete
  77. These are essential C# programs often asked in interviews. Practice them to boost your confidence and coding clarity.
    Medical Coding Courses in Delhi

    ReplyDelete
  78. Your article is very informative. Thanks for sharing the valuable information.
    Medical Coding Courses in Delhi

    ReplyDelete
  79. You've created the ultimate guide! Nothing else compares in quality.
    Medical Coding Courses in Delhi

    ReplyDelete
  80. financial modeling courses in delhi
    "This post is super helpful for beginners! Sometimes it’s hard to know where to start, but having these basic programs in one place really makes it easier to practice and learn. I liked how each example is simple yet clear. Definitely bookmarking this for quick reference. Thanks for sharing!"


    ReplyDelete
  81. Useful information.I am actual blessed to read this article.thanks for giving us this advantageous information.I acknowledge this post.and I would like bookmark this post.
    financial modeling courses in delhi

    ReplyDelete
  82. This is a wonderful collection of basic programs for beginners in .NET. I like how you have covered simple, easy-to-understand code examples that new learners can use to get hands-on experience quickly. I believe foundational coding skills like these are essential before moving on to more complex application development. This approach helps build strong logic and a clear understanding of syntax. In today’s professional world, having both programming and analytical skills is vital, especially when combined with financial and business acumen. On that note, professionals often seek to upgrade themselves with tools that bridge tech and finance.
    financial modeling courses in delhi

    ReplyDelete
  83. “Thanks for sharing these basic interview programs! They’re great for quick practice and brushing up on fundamentals. Just a couple of quick tips — in Prog 2, there’s a small typo in return spelling, and in Prog 7, the Combination formula needs some parentheses adjustment to avoid calculation errors. Also, Prog 9’s multiplication logic might need initializing the value variable before the loop. Overall, very useful examples for anyone prepping for .NET interviews!”

    https://iimskills.com/financial-modelling-course-in-delhi/

    ReplyDelete
  84. This article provides a comprehensive overview of the data science project life cycle, emphasizing the importance of each phase from problem definition to deployment. The clear explanations and structured approach make it an invaluable resource for both beginners and seasoned professionals. A must-read for anyone looking to understand the end-to-end process of data science projects.
    financial modeling courses in delhi

    ReplyDelete
  85. This article is very helpful for the freshers who are preparing for the interview.
    financial modeling courses in delhi

    ReplyDelete
  86. These straightforward exercises on vowels, even and odd numbers, and prime detection provide a solid base for interview practice. They show how to use simple logic and C# syntax to solve common tasks quickly. Working through them helps prepare your mind to tackle new problems with calm. Thank you for compiling these examples. financial modeling courses in delhi

    ReplyDelete
  87. This article breaks down the data science project life cycle from start to finish, covering each phase from defining the problem to deployment. It explains every stage in simple terms, making the process easy to follow. The step-by-step approach helps beginners build a clear understanding and gives experienced professionals a solid reference. It’s an informative guide for anyone wanting to grasp how data science projects move from idea to delivery.
    financial modeling courses in delhi

    ReplyDelete
  88. Thanks for compiling these basic programs in one place. They may look simple, but during interviews it’s easy to get nervous and forget small details. Having examples for common questions like factorial, Fibonacci, and prime check really helps as a quick refresher before interviews.
    financial modeling courses in delhi

    ReplyDelete
  89. This collection of basic simple programs is perfect for interview preparation. The straightforward examples cover essential concepts, making it easier for candidates to practice and build confidence. A great resource for anyone gearing up for coding interviews!
    financial modeling courses in delhi

    ReplyDelete