Faced Interview Questions Nov-Dev 2022

@Scope in sql (Id)


https://dzone.com/articles/common-challenges-of-net-application-development
https://www.hackertrail.com/talent/backend/net-core-interview-questions-answers/

- single interface with 2 or more implementation class  dependency injection ?

https://www.c-sharpcorner.com/article/how-to-implement-caching-in-the-net-core-web-api-application/

- memory caching in .net core api ( handle lot of requests)
- static & private constructer  ?
- 5 objects only allowed for a class how ?
- abstract realtime use in project  ?
- cross object purpose & reverse cross object  ?
- c# extension methods ?



- challenges you've faced ?
 implementing security checks for api 
- implementing 3'rd party api
- implementing PostgreSQL without stroed procedure 
- admin project .net core 6 without model class


- middlewares

-------------------------
In process & Out 
Kestrel & IIS 




--------------------
app.Use & run


- cors
- lot of things about constructer 
- 2 constructer , private cons .. user , public use , static const.. use 

-------------


-----


using System;

class Geek {
   
  // Method 1
  public void M1() 
  {
      Console.WriteLine("Method Name: M1");
  }
   
  // Method 2
  public void M2()
  {
      Console.WriteLine("Method Name: M2");
  }
   
  // Method 3
  public void M3()
  {
      Console.WriteLine("Method Name: M3");
  }
    
 }
 // This class contains M4 and M5 method
// Which we want to add in Geek class.
// NewMethodClass is a static class
static class NewMethodClass {
  
    // Method 4
    public static void M4(this Geek f)
    {
        Console.WriteLine("Method Name: M4");
    }
  
    // Method 5
    public static void M5(this Geek f, string str)
    {
        Console.WriteLine(str);
    }
}


public class HelloWorld
{
    public static void Main(string[] args)
    {
                Geek f = new Geek();
      
        f.M4();
        f.M5("Method Name: M5");

        Console.WriteLine ("Hello Mono World");
    }
}


Json Serialization ?

Product product = new Product();

product.Name = "Apple";
product.ExpiryDate = new DateTime(2008, 12, 28);
product.Price = 3.99M;
product.Sizes = new string[] { "Small", "Medium", "Large" };

string output = JsonConvert.SerializeObject(product);
//output 
//{
//  "Name": "Apple",
//  "ExpiryDate": "2008-12-28T00:00:00",
//  "Price": 3.99,
//  "Sizes": [
//    "Small",
//    "Medium",
//    "Large"
//  ]
//}
--------------------

middleware ?

--------------------

configure vs configureservice ?

--------------------

sql local and global variable ?

Local variable:

  • A user declares the local variable.
  • By default, a local variable starts with @.
  • Every local variable scope has the restriction to the current batch or procedure within any given session.

Global variable:

  • The system maintains the global variableA user cannot declare them.
  • The global variable starts with @@
  • It stores session related information

vue js two data binding ?

--------------------

v-model property

--------------------

vue - data model ?

--------------------

Event in c# ?

--------------------

dependency injection ?

--------------------

write singleton program ?


--------------------

swap letters program ?

    StringBuilder newString = new StringBuilder(s.Length);

foreach(var ch in s)
{
    if (ch == 'A') newString.Append('B');
    else if (ch == 'B') newString.Append('A');
    else newString.Append(ch);
}

s = newString.ToString();

Various Storage Usage in project ?


    Local Storage -  for storing application business data (like values to display some set of records)

    Cookies  -  to store environment values , token values like that

--------------------------------------------------------------------------------------


- - select * from a,b - (a-5 clms , b- 2 clms) it will return value ?

            Yes it will return values. all columns will be in single row

        
- how, where they host (from which tool )

    - with aws for production

- how authentication you using in project ?
- if encryption with key that also in project you can see password ?
- jwt vs bearer uses ?
- singleton pattern?

https://www.youtube.com/watch?v=DcbxFugk5pM


- difference between vue.js , anugular ,react
- what you using in local storage , cookie , session
- - aws used in projects
- oops basic explanations



- how to connect two database in dotnet core
- in authorized vs not found more code
- how to make bundle in dotnet core
- as , is different in c#
- linq types
- serialization and deserialization
- continue statement
-
- IWebHostBuilder
- forign key null values
- how Constructors In Abstract works
- Hashtable
-
- Partial view append values from model
- basics of oops with programing practice
- [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
-Can we insert null values in foreign key
- what are assembly files available
-jQuery get second element out input element without ID class name
-we cannot insert values get in get method
-how to add a dependency injection implementation fully
-what is IOC how its works
-voice record your interview every time

HTML forms provide three methods of encoding.

application/x-www-form-urlencoded (the default)
multipart/form-data
text/plain


-tuple
-var , dynamic
-IEnumerable Vs IQueryable
- Yield Return in C#
- readonly and const keyword in C#
- First() And FirstOrDefault()
- Design Patterns In C#
- Execution Plan sql
-Html.Partial() and Html.RenderPartial()
- outer div jquery
- datatables in jquery
- jquery-or- $ selector


- more strong on sql concepts , jquery , css , c#
- Middleware
- What is CORS (What is CORS err)
- Tuples c# , Extension Method
- swap sql column value
- jquery object to array
- jquery sort an array
- ajax async , sync
- Var, let and const
-
- - receiving api from two projects one is authorized another is unauthorized
isolation
filter index
dif index
comp index
cte
composite index
javascript
memory allocation actionfilter
diff action filters , filters
ajax proload , extra
how to sort array in jquery





https://wakeupandcode.com/wp-content/uploads/2020/03/middleware-pipeline-1024x427.png

Comments

Popular Posts