Interview Questions 3

Level 4 company :

  • Explain the project structure and each significance?
  • Write a program to identify whether a given string is palindrome or not using recursion?
  • Program to print the repeated count of characters

string str=“hello”;

  • char c;

    for(int i=0;i<str.length();i++){


    int count=0;


    c=str[i];

    for(int j=1;j<str.length();j++){

    if(c==str[j]){

    count=count+1;

    }


    }

    console.write(c+“has repeated ”+count+”times”);

    count=0;

    }

  • and write the above program using linq?


Comments

Popular posts from this blog

Implement virtualisation in kendo drop down list using jquery ajax in mvc, aspx page

How to Create trigger to Update the NoofOrgs Count under each category in Category Table based on Temp Table in Sql Server

How to Preview the image and download which is in base64string format in mvc view using C#