AmpleLogic
Microsoft Corporation Interview Questions and Answers
Q1. What is the Access modifier of the default constructor
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.
Q2. Why we use concept of polymorphism and in overloading why we use virtual keyword
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
Q3. What is the difference between let and var
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
Q4. What is the use of Internal in Access modifier
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.
Q5. What is abstract class
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(); }
Q6. What are the quality attributes that need to be ensure while validation
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
Top HR Questions asked in Microsoft Corporation
Interview Process at Microsoft Corporation
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month