0% found this document useful (0 votes)
32 views2 pages

Accenture DotNet React SQL Interview QA

This is for preparation of. Net interview for accenture.

Uploaded by

kumar mrinal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views2 pages

Accenture DotNet React SQL Interview QA

This is for preparation of. Net interview for accenture.

Uploaded by

kumar mrinal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Accenture Interview Preparation – .

NET, React,
SQL, ADO.NET (3 Yrs Exp)
Q: What is the difference between .NET Framework and .NET Core?
A: .NET Framework is Windows-only, mature, and used for legacy enterprise apps. .NET Core
(now .NET 6/7+) is cross-platform, open-source, modular, and better for microservices and cloud
apps.

Q: Explain delegates and events in C#.


A: Delegates are type-safe function pointers used to reference methods at runtime. Events are
based on delegates and provide a publish-subscribe mechanism (e.g., Button.Click event).

Q: How does garbage collection work in .NET?


A: .NET GC manages memory automatically by releasing unused objects. It uses generations (Gen
0, Gen 1, Gen 2) to optimize performance and compacts memory to reduce fragmentation.

Q: What is dependency injection in .NET?


A: Dependency Injection (DI) is a design pattern to achieve loose coupling. Instead of creating
objects manually, dependencies are provided by the framework (e.g., ASP.NET Core built-in DI
container).

Q: What are async and await in .NET?


A: Async/await enable asynchronous programming. 'async' marks a method as asynchronous, and
'await' pauses execution until a task completes, preventing thread blocking (used for I/O-bound
tasks).

Q: What is ADO.NET and how is it different from Entity Framework?


A: ADO.NET provides low-level access to databases using DataReader, DataSet, SqlCommand,
etc. Entity Framework is an ORM that maps database tables to C# objects, reducing boilerplate
SQL code.

Q: How do you prevent SQL Injection in ADO.NET?


A: By always using parameterized queries with SqlCommand. Example:
cmd.Parameters.AddWithValue('@id', id). This prevents malicious SQL from being injected.

Q: Explain types of joins in SQL.


A: INNER JOIN: returns matching rows. LEFT JOIN: all rows from left + matches from right. RIGHT
JOIN: all rows from right + matches from left. FULL JOIN: all rows from both tables.

Q: Explain React hooks like useState and useEffect.


A: useState allows functional components to hold state. useEffect handles side effects like fetching
data, subscriptions, DOM updates. Example: useEffect(() => { fetchData(); }, []).

Q: What is the difference between controlled and uncontrolled components in


React?
A: Controlled: input values managed by React state. Uncontrolled: DOM itself manages input state
via refs. Controlled gives better validation & predictability.
More Q&A; will cover Architecture, Coding, Behavioral, and Scenario-based questions.

You might also like