SEW Private Limited
Umiya Steel Fabricators Interview Questions and Answers
Q1. var x=5; dynamic y = x; var z = y; What is the type of z?
The type of z is dynamic.
Variable z will have the type dynamic because it is assigned the value of y, which is also dynamic.
Dynamic type allows for late binding and can hold any type of value at runtime.
Q2. Can abstract class have parameterized constructor?
Yes, abstract class can have parameterized constructor.
Abstract class can have parameterized constructor to initialize the data members of the class.
The constructor of an abstract class can be used by its subclasses to initialize the abstract class.
Example: abstract class Shape { int sides; Shape(int s) { sides = s; } }
Q3. Difference between filters and middleware?
Filters and middleware are both used for processing requests in web applications, but filters are typically used for pre-processing while middleware is used for post-processing.
Filters are typically used for pre-processing requests before they reach the intended endpoint
Middleware is used for post-processing requests after they have been handled by the endpoint
Filters are specific to certain endpoints or routes, while middleware can be applied globally to all requests
Filters ...read more
Q4. What is record type in c#
Record type in C# is a reference type that is similar to a class but with a focus on immutability and value-based equality.
Record types are introduced in C# 9.0 and are used to create immutable data types.
They are defined using the 'record' keyword.
Record types automatically implement value-based equality, ToString(), and GetHashCode() methods.
They are ideal for representing data that should not be modified once created.
Example: record Person(string FirstName, string LastName...read more
Q5. Abstract class vs interface
Abstract class is a class that can have both abstract and non-abstract methods, while an interface is a contract that defines methods that a class must implement.
Abstract class can have constructor while interface cannot.
A class can implement multiple interfaces but can inherit only one abstract class.
Abstract class can have variables, while variables in interface are public, static, and final by default.
Q6. Brief the proposal writing process
The proposal writing process involves gathering requirements, creating a solution, writing the proposal, and presenting it to the client.
Gather requirements from the client
Create a solution that meets the client's needs
Write the proposal outlining the solution, benefits, and cost
Present the proposal to the client and address any questions or concerns
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month