0% found this document useful (0 votes)
12 views

Dot Net Interview Question Practice Text

Uploaded by

ankush rawat
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Dot Net Interview Question Practice Text

Uploaded by

ankush rawat
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

S.

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);

void RefTest(ref int a)


{
a = a + 10;
}

void OutTest(out int b)


{
b = 0;
b = b + 10;
}

#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

string str = "" Hello, World "";


var trimString = str.Trim();
string[] strArr = str.Split(',');
string strSubString = str.Substring(8, 5);
string strJoin = String.Join("","", strArr);
string stringJoin = String.Join(""My "", ""Name "", "" Is"");
bool isStringContain = str.Contains(""World"", StringComparison.OrdinalIgnoreCase);
string stringReplace = str.Replace(""World"", ""Universe"");
int indexOfWordFirstCharacter = str.IndexOf(""World"");
string result = string.Concat(""My "", ""Name "", "" Is"");
char firstChar = str[0];
int strLength = str.Length;
foreach (string word in strArr)
{
Console.WriteLine(word);
}

#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

Difference between Precision and Recall? How to select features? What’s


p-value?
Difference between WCF and webservices
Why CRM
Banking Domain Experience
MVC lifecycle "MVC lifecycle involves request routing, controller
execution, view rendering, and response generation.

Request is received by the routing engine which determines the appropriate


controller and action method to handle the request.

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.

Response is sent back to the client for display in the browser."

3 GurugramA Struct in c# is value type or reference type


Filters in MVC
oops
how to return JSON from WEB API
find missing element in an array , find repeating element
socket.io vs api and mogoDb queries.
delete a record in sql
Provided N you have to find out the Nth Fibonacci Number.
Graph Question

"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"

Actual Round Question protected and private


Multiple inheritance why not possible in abstract class "Class A has
virtual method,
class B and class C both having same base class A
Apart from that Class B & class C is overriding Class A method,
Now Class D has base class B,C
so now whether class D instance will call method of B or C
it will create ambiguity to avoid such ambiguity multiple inheritance is not
possible for class
B:A, C:A, D:B,C
A has method"
temp table and table partial ans
sql query "1 query stuck 2 done

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 2 Authentication for WebAPI


httpGet and httpPost difference

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

4 Noida Confidence level, hands on knowledge less, enthusiasm


low
Round 1 What is Microservice
Implementation Of Request Delegate in Middleware
Implementation Authentication in .NetCore, RazorPage
Entity Framework , Code first Approach, Model First Approach
implementation till insertion, deletion, update
.Netcore 6.0 and .Netcore 8.0 difference
Ado .net implementation
Update Api creation and implementation

5 NoidaC
".NET Core Consultant-.
NET application
development, Support"

a. Rest and soa difference


b. Type input support in httpRequest
c. Solid Principle
d Life expectency in dependancy injection
e where and what service to use singleton, transient
f linq in entity framework for primeno., odd no. fetch "1 to 15
prime no.
List<int> lst = new List<lst>();

var primeno = lst.where(o=>o%2 != 0);"


g Palindrome string coding "string str = ""ama"";

int n = str.Length;

public static int main(string[] args){

var ans = Palindrome(0,n-1,str);


return ans;

public int Palindrome(int i, int j , string str){


if(i>=j){
return 1;
}
if( str[i] == str[j] ){
i ++;
j--;
Palindrome(i,j,str);
}
return 0;
}"
h Asynchronous connection break
i unit testing how to do
j Threading
k Authentication oAuth
l ci/cd
m Git reset and revert difference
n. design pattern
j. Types of break point in visual studio

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

Bundling and minification


finalize , dispose
stack and queue
thread and task difference
Type of traversal - in order, pre order ,post order , levelorder
traversal

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

You might also like