Premium Employer

Fareportal

3.4
based on 703 Reviews
Filter interviews by

10+ Medi-Infotec Interview Questions and Answers

Updated 9 Feb 2024
Q1. What is the default access modifier in C#?
Ans.

The default access modifier in C# is 'private'.

  • Default access modifier is applied if no access modifier is specified for a class member

  • It restricts the access to the member within the same class

  • Example: private int myVariable = 10;

Add your answer
Q2. What is a base class?
Ans.

A base class is a class that is used as a starting point for creating other classes. It can be inherited by other classes.

  • Base class provides common attributes and methods that can be inherited by other classes

  • Derived classes can extend or override the functionality of the base class

  • Example: Animal can be a base class with attributes like name and methods like eat, sleep

View 1 answer
Q3. What is a singleton design pattern?
Ans.

Singleton design pattern ensures a class has only one instance and provides a global point of access to it.

  • Used to restrict the instantiation of a class to one object

  • Commonly used in logging, caching, thread pools, database connections

  • Implemented by creating a static instance of the class and a private constructor to prevent external instantiation

Add your answer
Q4. What are the different access modifiers in C#?
Ans.

Access modifiers in C# control the visibility and accessibility of classes, methods, and other members.

  • Public - accessible from any other class or assembly

  • Private - accessible only within the same class

  • Protected - accessible within the same class or derived classes

  • Internal - accessible within the same assembly

  • Protected Internal - accessible within the same assembly or derived classes

Add your answer
Discover Medi-Infotec interview dos and don'ts from real experiences

Q5. What is aingleton and how it ia thread safe?

Ans.

Singleton is a design pattern that restricts the instantiation of a class to one object and provides a global point of access.

  • Singleton ensures that only one instance of a class is created and provides a way to access it globally.

  • It is thread-safe because the instance is created only once and accessed through a synchronized method or block.

  • Singleton can be implemented using different approaches such as eager initialization, lazy initialization, and enum.

  • Example: Java's Runtim...read more

Add your answer

Q6. What ia base class of class in c#?

Ans.

Object class is the base class of all classes in C#.

  • Object class provides basic functionalities like ToString(), GetHashCode(), and Equals() to all classes.

  • All classes in C# implicitly inherit from Object class.

  • Object class is defined in System namespace.

  • Example: class MyClass : Object { }

Add your answer

Q7. Default aceess modifiers?

Ans.

Default access modifiers are public, protected, and private.

  • Public: accessible from anywhere

  • Protected: accessible within the class and its subclasses

  • Private: accessible only within the class

Add your answer

Q8. Access modifiers in c#

Ans.

Access modifiers in C# control the visibility and accessibility of class members.

  • Public: accessible from anywhere

  • Private: accessible only within the class

  • Protected: accessible within the class and derived classes

  • Internal: accessible within the same assembly

  • Protected Internal: accessible within the same assembly and derived classes

  • Example: public int age; private string name;

  • Example: protected void DoSomething(); internal bool IsEnabled;

Add your answer

Q9. Components of service

Ans.

Components of a service include functionality, reliability, availability, and performance.

  • Functionality: The service should perform the intended tasks and meet the requirements.

  • Reliability: The service should consistently deliver the expected results.

  • Availability: The service should be accessible and operational when needed.

  • Performance: The service should perform efficiently and meet performance expectations.

Add your answer

Q10. Lifecycles of web api

Ans.

The lifecycle of a web API refers to the stages it goes through from development to retirement.

  • The lifecycle typically includes stages like planning, development, testing, deployment, and retirement.

  • During planning, the requirements and design of the API are defined.

  • Development involves writing the code and implementing the functionality.

  • Testing ensures the API works as expected and meets the requirements.

  • Deployment involves making the API available for use by clients.

  • Retirem...read more

Add your answer

More about working at Fareportal

HQ - New York, New York, United States (USA)
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Medi-Infotec

based on 1 interviews
Interview experience
4.0
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Software Engineer Interview Questions from Similar Companies

3.7
 • 28 Interview Questions
4.4
 • 16 Interview Questions
3.1
 • 12 Interview Questions
3.5
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter