Add office photos
Employer?
Claim Account for FREE

AmpleLogic

3.9
based on 94 Reviews
Filter interviews by

Microsoft Corporation Interview Questions and Answers

Updated 3 Apr 2024

Q1. What is the Access modifier of the default constructor

Ans.

The access modifier of the default constructor is usually public.

  • The default constructor is a special constructor that is automatically generated by the compiler if no constructor is defined in the class.

  • The access modifier determines the visibility of the constructor.

  • By default, the access modifier of the default constructor is public, allowing it to be accessed from anywhere.

  • However, it can also be explicitly defined with other access modifiers like private or protected.

View 1 answer

Q2. Why we use concept of polymorphism and in overloading why we use virtual keyword

Ans.

Polymorphism allows objects of different classes to be treated as if they were the same type. Virtual keyword is used in overloading to enable dynamic binding.

  • Polymorphism enables code reuse and flexibility in object-oriented programming.

  • Virtual keyword is used in function overloading to allow the compiler to determine which function to call at runtime based on the type of object.

  • Without virtual keyword, the function called would be determined at compile-time based on the typ...read more

Add your answer

Q3. What is the difference between let and var

Ans.

let and var are both used to declare variables in JavaScript, but they have different scoping rules.

  • let has block scope, while var has function scope

  • let can be updated but not re-declared in the same scope, while var can be both updated and re-declared

  • let is a relatively new addition to JavaScript, while var has been around since the beginning

Add your answer

Q4. What is the use of Internal in Access modifier

Ans.

Internal access modifier limits the access to within the same assembly.

  • Internal members can be accessed only within the same assembly.

  • It is useful for hiding implementation details from other assemblies.

  • It is also useful for creating helper classes that are only used within the same assembly.

Add your answer
Discover Microsoft Corporation interview dos and don'ts from real experiences

Q5. What is abstract class

Ans.

An abstract class is a class that cannot be instantiated and is used as a base class for other classes.

  • An abstract class can have abstract and non-abstract methods.

  • Abstract methods have no implementation and must be implemented by the derived class.

  • An abstract class can have constructors, fields, and non-abstract methods.

  • An abstract class is declared using the 'abstract' keyword.

  • Example: abstract class Shape { abstract void draw(); }

Add your answer

Q6. What are the quality attributes that need to be ensure while validation

Ans.

Quality attributes that need to be ensured during validation include accuracy, reliability, consistency, and completeness.

  • Accuracy: Ensuring that the data or information being validated is correct and free from errors.

  • Reliability: Consistency in the results obtained during validation, indicating that the process is dependable.

  • Consistency: Ensuring that the validation process is carried out in a uniform and standardized manner.

  • Completeness: Making sure that all necessary aspec...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Microsoft Corporation

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

Top Interview Questions from Similar Companies

4.1
 • 2.1k Interview Questions
4.2
 • 237 Interview Questions
3.9
 • 200 Interview Questions
3.5
 • 166 Interview Questions
View all
Top AmpleLogic Interview Questions And Answers
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
70 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