Posts

Showing posts with the label Interview Questions

Write a C# program to print the noofcharacters , noof words,noof lines from a text file?

Q2. And also write a program to read the file from current directory and do the same operation  //namespaces  using System.IO; using System; class Program {     static void Main()     {         Console.WriteLine("Hello, World!");        //below code line is used to get all filenames from the current directory         string[] _fileNamesInDirectory = Directory.GetFiles(Directory.GetCurrentDirectory());        foreach(var item in _fileNamesInDirectory)         {        //below code is used to get the filepath for each file using directory and filename         string filepath = Path.Combine(Directory.GetCurrentDirectory(), item);          if(!string.IsNullOrEmpty(filepath))           {         //here we are getting the file extension ...

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?

Interview Questions-2

 output of following program and if any errors what should be the correct syntax class baseclass {​​​​​​​​​      public void func1() {​​​​​​​​ Console.WriteLine ("Base Fun1()")​}​​​​​​​​​      public virtual void func2() {​​​​​​​​ Console.WriteLine ("Base Fun2()")​}​​​​​​​​​      public virtual  void func3() {​​​​​​​​​ Console.WriteLine ("Base Fun3()")}​​​​​​​​​ }​​​​​​​​​ class derivedclass :baseclass {​​​​​​​​​      new public void func1() {​​​​​​​​ Console.WriteLine ("derived Fun1()")​}​​​​​​​​​      public override void func2() {​​​​​​​​ Console.WriteLine ("derived Fun2()")​}​​​​​​​​​      public new void func3() {​​​​​​​​ Console.WriteLine ("derived Fun3()")​}​​​​​​​​​ }​​​​​​​​​ class Program {​​​​​​​​​      static void Main(string[] args)      {​...

Top MNC Interview Questions- Full Stack Developer

Common Questions: What is Reflection? What is data integrity In SQL Server? Different types of relationships in SQL Server? Different b/w Union, Union All, Minus, Intersect? When we use the method overloading concept in c#? Real-time example for oops concepts? Why we go for Interfaces when we have abstract Classes? (Note: Provide Reason other than multiple inheritances, and abstraction concept). What is the Bundling and Minification Concept? What are the different options available in google chrome developer tools? Can we call the same request again from the network tab in the google chrome developer tab? What are ACID properties in SQL Server? What is CTE? Where we can use it and why? What are the components of ado.net? Types of Cookies in MVC and how the memory allocated? Diff. b/w array.clone() and array.copyto()? Why we need relations in SQL? Diff. b/w Task and Thread? How do you implement dependency injection in MVC .net standard f/w? Async and Await? Task and Task<T>? Diffe...