Interview questions on string functions in c#
DevEnvExe.Com Blog
by
4M ago
 What are the differences between String and StringBuilder in C#? String is immutable, meaning its value cannot be changed after creation. Operations like concatenation create new strings. StringBuilder is mutable and designed for efficient string manipulation. It allows modifications without creating new instances. How do you check if two strings are equal in C#? Use the Equals() method or == operator to compare strings for equality. For instance: string str1 = "Hello"; string str2 = "Hello"; bool areEqual = str1.Equals(str2); // or bool areEqual = (str1 == str2); Explain the d ..read more
Visit website
Object-Oriented Programming, C#, ADO.NET, and SQL Interview Questions
DevEnvExe.Com Blog
by
4M ago
1. What are the main components in OOP? Object-Oriented Programming (OOP) has four main components: 1. Encapsulation: It is the bundling of data and the methods that operate on that data into a single unit or class. 2. InheritanceIt allows a class (subclass/derived class) to inherit properties and behaviors from another class (base class/par ent class). 3. Polymorphism:It allows objects of different types to be treated as objects of a common type, often achieved through method overloading and method overriding. 4. Abstraction: It is the concept of hiding the complex reality while expos ..read more
Visit website
Basic information and short cut keys about visual studio
DevEnvExe.Com Blog
by
5M ago
  What is Visual Studio? Visual Studio is an integrated development environment (IDE) created by Microsoft. It supports various programming languages and provides tools for software development, debugging, testing, and deployment. Name some key features of Visual Studio. Features include a code editor with IntelliSense, debugging capabilities, project templates, integrated version control, support for multiple programming languages, extensibility through extensions, and a wide range of productivity tools. Explain the difference between Debug and Release mode in Visual Stud ..read more
Visit website
  What is a partial class in C#? A partia...
DevEnvExe.Com Blog
by
5M ago
  What is a partial class in C#? A partial class in C# allows splitting the definition of a class across multiple source files. When compiled, all parts of the partial class are combined into a single class definition. Why would you use a partial class? Partial classes are useful in scenarios where a class is extensive or generated by a designer. They enable separation of concerns, allowing different developers to work on different parts of the class without interfering with each other. Can a class be split into multiple partial classes across different assemblies? No, all p ..read more
Visit website
ASP.NET MVC Interview Questions and Answers: Routing, Action Results, and Error Handling
DevEnvExe.Com Blog
by
9M ago
  What is action result in ASP.NET MVC? In ASP.NET MVC, an action result is a type that represents the result of an action method. It encapsulates the data that should be sent back to the client as a response. The action result can be a view, a file, a redirect, or any other type of data that needs to be returned. How can you specify different routing for different action methods in ASP.NET MVC? You can specify different routing for different action methods in ASP.NET MVC by using the `Route` attribute. This attribute can be applied to individual action methods or to the controller its ..read more
Visit website
Top Interview questions and answers for .NET Core layouts and the `ActionLink` method
DevEnvExe.Com Blog
by
9M ago
What is a Layout in .NET Core? A Layout in .NET Core is a shared template that defines the common structure and design of multiple web pages in an application. It typically includes elements such as the HTML structure, header, footer, navigation, and other components that remain consistent across multiple pages. Views can specify a Layout to inherit from, allowing them to provide content within the defined structure. How do you define a Layout in a Razor View? To define a Layout in a Razor View, you can use the `@layout` directive at the top of the View file. For example:  @{   &nb ..read more
Visit website
C# commonly used variable types & Naming standards
DevEnvExe.Com Blog
by
9M ago
 In C#, there are different types of variables based on their data types and storage requirements. Here are some commonly used variable types: Value Types: `int`: Represents whole numbers. `double`: Represents floating-point numbers with double precision. `bool`: Represents boolean values (true or false). `char`: Represents single Unicode characters. `enum`: Represents a set of named values. `struct`: Represents a lightweight data structure. Reference Types: `string`: Represents a sequence of characters. `object`: Represents a base type for all other types. `class`: Represents a re ..read more
Visit website
C# Interview questions and answers Data Type Variable
DevEnvExe.Com Blog
by
9M ago
What is C#? C# is a modern, object-oriented programming language developed by Microsoft as part of the .NET platform. What are the different types of variables in C#? Value types: int, double, bool, char, enum, struct. Reference types: string, object, class, interface. Other types: var, dynamic. Explain the difference between value types and reference types. Value types store the actual data, while reference types store references to the data. Value types are stored on the stack, while reference types are stored on the heap. Value types are passed by value, while reference types are pa ..read more
Visit website
C# Collections Interview Questions and Answers & Tips
DevEnvExe.Com Blog
by
9M ago
What is an ArrayList in C#? Provide a code snippet demonstrating its usage. An ArrayList is a dynamically resizable array that can store objects of any type. It is part of the `System.Collections` namespace. Here's a code snippet demonstrating the usage of ArrayList: What is a BitArray in C#? Provide an example of how it can be used. A BitArray in C# represents a collection of bits as a compact array of Boolean values. It provides a memory-efficient way to manipulate individual bits. Here's an example of how BitArray can be used: What is StringCollection in C#? How is it different fro ..read more
Visit website
C# Collection Best practices and tips to keep in mind
DevEnvExe.Com Blog
by
9M ago
Best practices and tips to keep in mind: Use the appropriate collection type: Choose the collection type that best suits your needs based on the specific requirements of your application. For example, use ArrayList for a dynamically resizable array, Hashtable for a collection of key-value pairs, or LinkedList for efficient insertion and removal operations. Specify the collection type explicitly: When declaring and working with non-generic collections, it's a good practice to explicitly specify the collection type. For example, instead of using the non-generic `ArrayList`, use the generic `L ..read more
Visit website

Follow DevEnvExe.Com Blog on FeedSpot

Continue with Google
Continue with Apple
OR