Excellon Software
20+ Trig Technology Solutions Interview Questions and Answers
Q1. Coding Question: Variable 1 = 10; Variable 2 = 20; Variable 3 = 0; Variable 3 = Variable 1 * Variable 2; Do Calculation without using Multiplication
Use bitwise operations to perform multiplication without using the * operator.
Use bitwise left shift operator to multiply Variable 1 by 2^n where n is the value of Variable 2.
Add the result of each left shift operation to get the final result.
Q2. What are HTML helpers? Can we create custom HTML Helpers?
HTML helpers are methods that help in rendering HTML in a view. Yes, we can create custom HTML helpers.
HTML helpers are methods that generate HTML markup in a view.
They help in reducing the amount of HTML code that needs to be written in a view.
Custom HTML helpers can be created by defining extension methods on the HtmlHelper class.
Custom HTML helpers can be useful for generating reusable HTML components or complex HTML markup.
Example: Creating a custom HTML helper to generat...read more
Q3. How to change layout page during runtime?
You can change the layout page during runtime by dynamically setting the layout property in the code behind.
Set the layout property in the code behind based on certain conditions or user input.
Use conditional statements to determine which layout page to use.
Example: if(userRole == 'admin') { Layout = '~/Views/Shared/_AdminLayout.cshtml'; } else { Layout = '~/Views/Shared/_UserLayout.cshtml'; }
Q4. What is method overloading and method overriding?
Method overloading is when multiple methods have the same name but different parameters. Method overriding is when a subclass provides a specific implementation of a method that is already provided by its parent class.
Method overloading allows a class to have multiple methods with the same name but different parameters.
Method overriding occurs in a subclass when a method has the same name and parameters as a method in its superclass.
Method overloading is resolved at compile t...read more
Q5. What is MVC? What is MVC page Life Cycle?
MVC stands for Model-View-Controller. It is a software architectural pattern for implementing user interfaces.
MVC separates the application into three main components: Model (data), View (UI), and Controller (logic)
MVC page life cycle involves the following stages: Routing, Controller Initialization, Action Execution, Result Execution, and Rendering
Q6. Find the second highest salary employee names in Employee table?
Use SQL query to find the second highest salary employee names in Employee table.
Use ORDER BY clause to sort the salaries in descending order.
Use LIMIT 1 OFFSET 1 to get the second highest salary.
Join the Employee table with itself to get the employee names corresponding to the second highest salary.
Q7. Can we have multiple Layout page?
Yes, we can have multiple Layout pages in ASP.NET MVC.
Multiple Layout pages can be created in ASP.NET MVC to provide different layouts for different sections of the website.
Each View can specify which Layout page to use by setting the Layout property in the View file.
Layout pages can be nested, allowing for a hierarchy of layouts to be used.
Example: _Layout.cshtml, _AdminLayout.cshtml, _UserLayout.cshtml
Q8. What are types of filters in MVC?
Types of filters in MVC include Authorization filters, Action filters, Result filters, and Exception filters.
Authorization filters restrict access to actions based on user roles or permissions.
Action filters execute code before and after an action method is called.
Result filters execute code before and after the result of an action method is executed.
Exception filters handle exceptions thrown during the execution of an action method.
Q9. What is String and StringBuilder?
String is a sequence of characters, while StringBuilder is a mutable sequence of characters used for efficient string manipulation.
String is immutable, meaning once created, it cannot be changed. StringBuilder is mutable, allowing for efficient modifications.
String concatenation creates a new string object each time, while StringBuilder allows for efficient appending of characters.
String is used for constant strings, while StringBuilder is used for dynamic string manipulation...read more
Q10. What is Partial View and View?
Partial View is a reusable view component in ASP.NET MVC, while View is a complete page or layout.
Partial View is a smaller, reusable view component that can be rendered within a View or another Partial View.
View is a complete page or layout that can contain multiple Partial Views and is typically returned by a controller action.
Partial Views are useful for rendering common elements like headers, footers, or sidebars across multiple pages.
Views are the main output of a contro...read more
Q11. What is Authentication?
Authentication is the process of verifying the identity of a user or system.
Authentication ensures that the user is who they claim to be before granting access to resources.
Common authentication methods include passwords, biometrics, security tokens, and multi-factor authentication.
Examples of authentication protocols include OAuth, SAML, and OpenID Connect.
Q12. What is Authorization?
Authorization is the process of determining if a user has the necessary permissions to access a resource or perform an action.
Authorization involves verifying the identity of a user and checking if they have the required permissions.
It is different from authentication, which is the process of verifying the identity of a user.
Authorization can be role-based, where permissions are assigned based on roles, or attribute-based, where permissions are based on specific attributes of...read more
Q13. What is View_Start class?
View_Start class is used to define common settings for all views in an ASP.NET MVC application.
View_Start class is a special class in ASP.NET MVC that is used to define common settings for all views in the application.
It is typically used to set properties like layout, master page, and other view-related settings.
By defining these settings in View_Start class, they are automatically applied to all views in the application.
This helps in maintaining consistency and reducing red...read more
Q14. What is Solid Principles?
SOLID principles are a set of five design principles that help developers create more maintainable, flexible, and scalable software.
S - Single Responsibility Principle: A class should have only one reason to change.
O - Open/Closed Principle: Software entities should be open for extension but closed for modification.
L - Liskov Substitution Principle: Objects of a superclass should be replaceable with objects of its subclasses without affecting the functionality.
I - Interface S...read more
Q15. What is ViewBag and ViewData?
ViewBag and ViewData are used in ASP.NET MVC to pass data from controller to view.
ViewBag is a dynamic property that allows you to pass data from controller to view.
ViewData is a dictionary object that allows you to pass data from controller to view.
ViewBag is a dynamic object while ViewData is a dictionary object.
ViewBag is easier to use but ViewData is type-safe.
Q16. What is IEnumerable?
IEnumerable is an interface in C# that represents a collection of objects that can be enumerated.
It is used to iterate over a collection of objects.
It is part of the System.Collections namespace.
It is the base interface for all non-generic collections in C#.
It is commonly used with LINQ queries to query data from collections.
Example: IEnumerable
numbers = new List { 1, 2, 3 };
Q17. What is collections?
Collections are classes in .NET that allow you to store and manage groups of objects.
Collections provide various data structures like lists, queues, stacks, dictionaries, etc.
They allow for easy manipulation and retrieval of data.
Examples include List
, Queue , Stack , Dictionary .
Q18. Use of c language, write code on array, which language is better c or java, write another code in HTML
C language is low-level and efficient, Java is high-level and platform-independent, HTML is used for web development.
C language is better for system programming due to its low-level nature and efficiency.
Java is better for cross-platform development and has a larger standard library.
Example C code: int numbers[] = {1, 2, 3, 4, 5};
Example Java code: String[] names = {"Alice", "Bob", "Charlie"};
HTML is used for creating web pages and structuring content on the internet.
Q19. Types of accounts, What is CRM, What is Lead, prospect etc.
Accounts in CRM can be of different types such as customer, partner, vendor, etc. A lead is a potential customer who has shown interest in your product or service.
Types of accounts in CRM include customer, partner, vendor, and competitor
CRM stands for Customer Relationship Management and is a software used to manage interactions with customers and potential customers
A lead is a potential customer who has shown interest in your product or service but has not yet made a purchas...read more
Q20. What is Autowired
Autowired is a feature in Spring Framework that allows automatic dependency injection.
Autowired annotation is used to automatically wire beans by type.
It eliminates the need for explicit bean configuration in XML or Java configuration.
Autowired can be used on fields, constructors, or methods.
It helps in achieving loose coupling between classes.
Q21. WHAT IS TESTING
Testing is the process of evaluating a system or software to identify defects or errors.
Testing involves executing a system or software with the intention of finding defects.
It is done to ensure that the system meets the specified requirements and functions as expected.
Testing can be performed at various levels such as unit testing, integration testing, and system testing.
Different testing techniques like functional testing, performance testing, and security testing are used....read more
Interview Process at Trig Technology Solutions
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month