Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0

C# Technical Question!


Hello All, I am little bit nervous to facing my upcoming interviews. I have good knowledge about C# programming and I wants to know which types of latest question will ask by interviewer. This is my first experience to ask my question in forum. One of my friend was suggested me to put our query in this forum. So if anyone know the some tips and some guideline, it will helps me.  

Share this post

Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Here are the important question which you need to prepare:

1. What is a generic class?

A generic class is utilized to generate classes or objects that do not have a precise type of data. However, the data type can be assigned anytime while using the program.

2. List some of the basic string operation

Some of the basic string operations are:

  • concatenate
  • modify
  • compare
  • search

3. Write a code using Regular expression

static void Main (string[] args)
string[] languages = { “C#”, “Python”, “Java”)
foreach (string s in languages)
if (System.Text.RegularExpressions.Regex.IsMatch(s, “Python”))
Console.WriteLine(“Match found”);

4. What are some characteristics of an array?

Some characteristics of an array class are Length, IsFixedSize, IsReadOnly.

5. Give some examples of commonly used I/O classes

Some examples of I/O classes are:

  • File: used in manipulating a file
  • StreamWriter: used for writing different characters into a stream
  • StreamReader: used for reading characters off a stream
  • StringWriter: used for reading from a string buffer
  • StringReader: used for writing into a string buffer
  • Path: used for execution of different operations that are related to a path data

6. Describe the process of “exception handling implementation” in C#

Exception handling can be implemented in C# using the following keywords:

  • try
  • catch
  • finally
  • throw

7. Explain the process of Polymorphism with an example.

Polymorphism is the process when the same method is applied using different implementation techniques. Polymorphism is of two types:

Compile time polymorphism: when an operator is overloaded.

Runtime polymorphism: when an operator is overridden

For example – If a particular class has Void Add (), then polymorphism can be accomplished by the overload technique, then the Void Add() becomes Void Add(int a, int b) and Void Add(int add).

8. Explain the process of Abstraction with an example

Abstraction is the process that is used to highlight an important feature of the class that can hide the irrelevant information.

For example – A driver of a car ought to know the details of the car such as its brand name, color, gear, brake, etc. However, the information that is not of importance to him are details of the car such as the exhaust system, internal engine, etc. Thus, the process of abstraction helps in identification and extraction of the information that is relevant to the user and not needed from the outside world. A number of parameters such as with the usage of “private” keyword can help in hiding internal information.

9. List the steps in code compilation in C#.

The four steps involved in code compilation in C# are:

  • Compilation of the source code by a C# compiler into the code.
  • Compilation of the newly generated code into the assemblies.
  • Loading of the common language runtime.
  • Execution of the assembly by the common language runtime.

10. Enlist the different types of classes in C#.

The four types of classes in C# are:

  • Partial class: Allows its associates to be separated or shared with different.cs documents. It is indicated by the keyword “Partial”.
  • Sealed class: It is a class, which cannot be acquired. To get to the member from a fixed class, we have to make the object of the class. It is indicated by the keyword “Sealed”.
  • Abstract class: It is a class where the object cannot be instantiated. This class can be acquired; however, it should have at least one technique. It is indicated by the keyword “conceptual”.
  • Static class: It is a class, which does not permit legacy. The members of the class are additionally static. It is indicated by the keyword “static”. This keyword advises the compiler to check for any unplanned instances in the static class.

11. List the fundamental OOP concepts.

The fundamentals of an OOP concept are:

  • Encapsulation: The internal portrayal of the object is concealed from the predators view from the definition of the object. Only the information that is required can be retrieved whereas the rest of the data is kept hidden.
  • Abstraction: It is a procedure of distinguishing the basic conduct and information of an object and disregarding the insignificant details.
  • Inheritance: It is the ability to make new classes from a different class. It is carried out by retrieving, altering and broadening the conduct of the objects in the parent class.
  • Polymorphism: It implies one name with numerous structures. It is accomplished by having numerous techniques with a similar name with dissimilar usage.

12. Define a class and an object.

A class is an example of properties and techniques that utilize and characterize a continuous substance. It can represent information that unites each illustration into a single component. An Object is a sub-occurrence of a Class. In fact, it is only a square of memory assigned that can be put away as Variables, Array or a Collection.

13. What is C#?

C# is a programming language which is object-oriented developed by Microsoft. C# is designed and fabricated for a Common Language Infrastructure that constitutes an executable code and runtime, which allows the usage of different high – end languages for different platforms and design.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • This update features:

      Fixed broken hooks from today's update

      Fix wilderness level with RuneLite (Thanks @Todd)

      Add support for Kotlin .class files in scripts (Thanks @wastedbro)

      Overhaul Inventory API (Thanks @wastedbro)

      Add List support for common methods

      Change method grouping to make more sense (by functionality)

      Refactor methods to utilize Java 8 streams instead of cumbersome loops

      Recognize chatbox minimization (Thanks @JoeDezzy1)

      Fix Screen#isInViewport when NPC chat is open (Thanks @JoeDezzy1)

      Fix login bot bugs (Thanks @erickho123)

      Fix hint arrow return values (Thanks @Encoded)

      Fix depositAllExcept functionality (Thanks @wastedbro)

      Change containing box interface bound and adjust for Y values (Thanks @erickho123)
      • 151 replies
    • This release will:

      Fix prayers and world hopper API (Thanks @JoeDezzy1 and @erickho123)

      Improve banking API (Thanks @Encoded)

      Adds methods for returning and using Java Lists, rather than arrays

      Slightly randomizes some hardcoded behaviour

      Removes sleeps from waitConditions; the efficiency saving potential is negligible in these use-cases, therefore cleaner code is preferable

      Other back-end improvements

      Note: If you are using LG, please restart both the RS client and TRiBot.
      • 90 replies
    • This release will:

      Add new internal framework for capturing exceptions

      Fix issue with not selecting the last column in world hopper (Thanks @Todd)

      Add a message about pin usage in Banking#openBank (Thanks @Todd)

      Disable the firewall by default (Thanks @Todd)

      Fix handling of the welcome screen after login (Thanks @Encoded)

      Fix wrong amount bank withdrawal (Thanks @Encoded)

      Fix Screen#isInViewport

      Fix Game#isInViewport (Thanks @Encoded)

      Call onBreakEnd for ListenerManager Breaking Listeners (Thanks @Encoded)

      Fix Prayer#getPrayerPoints NumberFormatException (Thanks @JoeDezzy1)

      Note: If you are using LG, please restart both the RS client and TRiBot.
        • Like
      • 28 replies
    • This release will:

      Fix LG for both OSBuddy and RuneLite

      Fix issue where the resizable client isn't able to be made smaller (Thanks @JoeDezzy1)

      Fix detection of the logout game tab when resizable mode and side panels are enabled (Thanks @JoeDezzy1)

      Add initial support for Sentry to allow us to identify and easily debug exceptions happening with all TRiBot users

      Add methods to determine if the bank is actually loaded, and not just the overarching interface (Thanks @wastedbro)

      Upcoming updates:

      Improved CLI support

      Full Sentry support

      Much more
      • 64 replies
    • This release will:

      Fix NPE in Camera API (Thanks @wastedbro)

      Update deposit box interface ids (Thanks @Encoded)

      Add various bank methods (Thanks @wastedbro)




      Fix resizeable minimap bug (Thanks @wastedbro)

      Remove Java 8 requirement

      Please note: TRiBot is not yet fully compatible with Java 10+

      Fix the break handler issues by ensuring the break handler thread never gets paused

      Fix broken settings hooks

      Upcoming updates:

      Improved CLI support

      Much more

      Note: If you are using LG, please restart both the RS client and TRiBot
      • 68 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...