Accenture
10+ Active India Holidays Interview Questions and Answers
Q1. How can we pass multiple values from controller to view in asp.net core MVC?
In ASP.NET Core MVC, multiple values can be passed from a controller to a view using ViewData, ViewBag, or a strongly-typed model.
Use ViewData: Pass values as key-value pairs. Example: ViewData['Message'] = 'Hello World!';
Use ViewBag: Similar to ViewData but uses dynamic properties. Example: ViewBag.Title = 'My Page';
Use a ViewModel: Create a class to hold multiple properties. Example: public class MyViewModel { public string Name; public int Age; }
Return a Tuple: Return mult...read more
Q2. Dependency injection and use of entity framework for connecting our asp.net MVC web app to database.
Q3. Linq queries for left, right and inner join?
LINQ queries allow for efficient data manipulation and retrieval using left, right, and inner joins in C#.
Inner Join: Combines records from two collections where there is a match. Example: var result = from a in collectionA join b in collectionB on a.Id equals b.AId select new { a, b };
Left Join: Returns all records from the left collection and matched records from the right. Example: var result = from a in collectionA join b in collectionB on a.Id equals b.AId into temp from...read more
Q4. What are SOLID principals?
Q5. Treemap and hashmap difference?
Treemap is a sorted map based on natural ordering of keys, while hashmap is an unordered map.
Treemap stores key-value pairs in sorted order based on the natural ordering of keys.
Hashmap does not guarantee any specific order of key-value pairs.
Treemap uses a red-black tree for storage and retrieval, while hashmap uses hash table.
Treemap is slower than hashmap for most operations due to the sorting overhead.
Example: TreeMap
treeMap = new TreeMap<>(); HashMap hashMap = new HashM...read more
Q6. Regular expressions in C# .net?
Q7. Hashmap internal working?
HashMap is a data structure that stores key-value pairs and uses hashing to efficiently retrieve values based on keys.
HashMap internally uses an array of linked lists to store key-value pairs.
When a key-value pair is added, the key is hashed to determine the index in the array where the pair will be stored.
If multiple keys hash to the same index, a linked list is used to handle collisions.
Retrieving a value involves hashing the key to find the correct index and then traversin...read more
Q8. Stream api in java 8?
Stream API in Java 8 provides a functional approach to processing collections of objects.
Stream API allows for processing collections of objects in a functional style.
It supports operations like filter, map, reduce, and collect.
Streams can be sequential or parallel, allowing for efficient processing of large datasets.
Example: List
names = Arrays.asList("Alice", "Bob", "Charlie"); names.stream().filter(name -> name.startsWith("A")).forEach(System.out::println);
Q9. Different types of SDLC
SDLC stands for Software Development Life Cycle. There are different types including Waterfall, Agile, Iterative, Spiral, V-Model, etc.
Waterfall: Sequential approach with distinct phases
Agile: Iterative and incremental development
Iterative: Repeating cycles of development
Spiral: Risk-driven approach with multiple iterations
V-Model: Corresponding testing phase for each development phase
Q10. microservices vs monolithic
Microservices allow for modular and scalable architecture, while monolithic is simpler but can be harder to maintain.
Microservices break down applications into smaller, independent services that communicate through APIs.
Monolithic architecture involves building the entire application as a single unit.
Microservices offer flexibility, scalability, and fault isolation.
Monolithic applications are easier to develop and deploy initially.
Examples of microservices include Netflix, Am...read more
More about working at Accenture
Interview Process at Active India Holidays
Reviews
Interviews
Salaries
Users/Month