Dot Net Interview Question Practice Text
Dot Net Interview Question Practice Text
No Company Round 1
1 NoidaA Theoritical Answer Code Answer Round1 Lack
a. What is Middleware and it's use in code ( in configure method
app.useservicefilename)
"b. Object lifeExpectency - DI not able to explain good (AddScope life)
DI Explain" Confidence Lacking
c. Delegates No Hands on (not good command on
implementation)
d. out and ref code implementation in code, done but expecting some
other example "#region REfAndOutCode
int a = 10;
int b = 5;
OutTest(out b);
Console.WriteLine(""After OutTest b: "" + b);
RefTest(ref a);
Console.WriteLine(""After RefTest a: "" + a);
#endregion"
"e. String defination and string polation and how it is stored in
heap , string find out india and print it
For loop for string not able to do
String class and it's method" "#region StringMethod
#endregion"
f. solid - d stands for confuse
"g. Solid principle explain
Open close code implementation not able to do- but he knew i know how to do using
factory pattern
Interface seggregation explain with code well"
h. .NetCore 8.0 and .NetCore 6.0, .NetCore7.0 difference
i. Project Explain and my role
"j. Abstract Class and interface difference
Can we create Abstract class instance?
Is multiple inheritance possible in abstract class and why"
k. Managed and Unmanaged Code
Expected Question
2 NoidaB Delegates
Abstract class and interface
Solid Principle
out and ref
string class and it's method and it's code
reverse string
Mysql join
Mysql subquery, aggregate
.net code program practice
kafka , rabbitmq
mongodb uses why over other and mongodb document size
Project explain
unique and primary key difference
Types of Join
ActionFilter
Boxing and UnBoxing
Caching And it's Type
What is dynamic Query? Type of indexes ? Query Optimization Technique
Controller executes the action method, interacts with the model to retrieve data,
and passes it to the view.
View renders the data received from the controller and generates the HTML response.
"hi
Table : Employee
Column : Name,Sal,City
Data :
Ram 1000 Noida
Sita 2000 Noida
Siya 2000 Delhi
Shyam 3000 Noida
Output :
Noida 6000
Delhi 2000
You
4:53?PM
select city, sum(sal) from employee group by city
Hover over a message to pin it
keep
You
4:55?PM
select city, sum(sal) from employee group by city having sum(sal) >5000
You
4:56?PM
select city, sum(sal) from employee group by city having sum(sal) >5000 and
sum(sal)<2001
You
5:01?PM
select city, sum(sal) from employee group by city having sum(sal) >5000 and
sal>2000 WRONG
select city, sum(sal) from employee where sal > 2000 group by city having sum(sal)
>5000 CORRECT"
hi
Table : Employee
Column : Name,Sal,City
Data :
Ram 1000 Noida
Sita 2000 Noida
Siya 2000 Delhi
Shyam 3000 Noida
Output :
Noida 6000
Delhi 2000
You
4:53?PM
select city, sum(sal) from employee group by city
Hover over a message to pin it
keep
You
4:55?PM
select city, sum(sal) from employee group by city having sum(sal) >5000
You
4:56?PM
select city, sum(sal) from employee group by city having sum(sal) >5000 and
sum(sal)<2001
You
5:01?PM
select city, sum(sal) from employee group by city having sum(sal) >5000 and
sal>2000 WRONG
select city, sum(sal) from employee where sal > 2000 group by city having sum(sal)
>5000 CORRECT"
abstraction
oops
index in sql
readonly and const
final block, multiple catch block
Round 3
Equilateral triangle * pattern coding question
"Join question-- T1 table 1000 rows, T2 table 800 rows find all column
for only non existing 200 rows in T2 table"
.net core 8.0 and .net core 6.0 difference
kafka use and advantage
5 NoidaC
".NET Core Consultant-.
NET application
development, Support"
int n = str.Length;
Expected Question
what is web services
linq queries
Base class, super class
Mvc lifecycle
Routing
how to connect web api and database server
primary key, foriegn key ,
1)Roles and responsibilities in project based on that questions were
asked. 2) Examples of Abstract and Interface class 3) WCF and WEAPI would be added
advantage if would you have worked on it. 4) Managed and unmanaged code difference
5) Exception Handling (try, catch and finally ) block 6) Boxing and unboxing
examples 7) ADO.NET examples 8) SQL queries scenario based questions 9) Overall
project architecture and deployment on production level
Round 2
6 BangaloreA
Round 1 difference in is and as
C# latest version
readonly and const
interface and abstract class
why multiple inheritance in interface not in class
new keyword uses
encapsulation
how to prevent overridden warning
access specifier internal
type of constructor
constructor creation in abstract class
what is enum
var and dynamic difference
serialization/deserialization
7 BangaloreB
Expected Question Q1. Questions - 1. Order of execution of query. 2. Join and
types of join. 3. Group by query. 4. Having vs where. 5. Left join tricky question
6. Self join tricky question. 7. Window function and comparison to Group by. 8.
Advance SQL.
Round 1
Prime no. Code
duplicate character in string remove duplicate string code
what is microservice and monolithic architechture
what is singleton, transient, scope
what is abstract and interface
virtual and abstract difference
expected output
static parameter, overriding method, static int, int in static method
8 GurugramD
Round 1
ui to api complete flow for basket
Middleware implementation and how did you manage if request can't log
somehow how will you log it then
if you are doing payment loan get canceled and redeemed some points
already how will you handle request of return amount request > actual amount
use of httpcontext
is it possible to write 10k data in one go in mongodb
how data retrieval done in mongodb and how is it fast
mongoclient implementation
Explain dependency injection
if one feature go down how you handle that
Round 2
difference in nosql and sql
difference in git fetch and git pull
git rebase
tier in blob storage
microservices 3 advantage and 2 disadvantage
what is message broker
how nosql read data fast
what is cache and can we use other than memory for caching
http and https
Web App work not done
Docker container
9
Noida E
Round 1
what is temporary table and constraint in temp table
Asynchronous method how to wait for n task and if we don't want to wait
100 size array if data insert in 50 index if found data not insert ,
insert in next index if again found then insert in next index
how to use recursion in storedprocedure
select use in ajax
use of constraint, default,
while inserting data there is mobile no. if mobileno, is not null then
insert , else update now want return what are updated and inserted count
ExecuteNonQuery uses and output
use out parameter
Dynamic Binding in UI