Showing posts with label .net interview. Show all posts
Showing posts with label .net interview. Show all posts

Try and catch block Interview questions


Try and catch block


Difference btw throw end throw ex.

I am writing this post someone asked to me and I never heard earlier before.
I thought both are same, and one of them give an error, but both are wrong,
Now I have try to give you a proper answer


Similarities:
Let’s first see what is similar in both.

  • Both are used to throw exception in catch block to log message
  • Both contains same message of exception

Difference:
Now let’s see what is difference.

·         throw is used to throw current exception while throw(ex) mostly used to create a wrapper of exception.
  • throw(ex) will reset your stack trace
                            I.        so error will appear from the line where throw(ex) written
                         II.        while throw does not reset stack trace and you will get information about original exception.
  • In MSIL code when you use throw(ex) it will generate code as throw and if you use throw it will create re throw.





Notes: throw will get information about original exception point line no 13 as well as line where throw ex written







Can we have multiple try catch block

Yes, we can write multiple try catch block, but
·         if you write main catch (Exception ex) at the top the in .net other you cannot write it’s show a compile time error to you
·         Every try has at least one catch block



Can we have multiple try block

Yes, we can write multiple try block, but
·         Every try has at least one catch block



Can we skip catch block after try.

No , see above question it will help you  

Can we have same exception class

No, see the below image it will help you 



What happen if we have multiple catch blocks in a class




What happen if we write a finally block after catch blocks in a class









Download PDF
Share:

UHG Interview question For RPA & .Net Profile



7- June-2019

UHG Interview question

First Round Is Telephonic: In telephonic round they have asked similar question, that asked in 2nd round

Second Round:

SQL:

1

What is Primary Key

2
Can we pass call a store procedure in a query? For e.g. Select * from Store procedure

3
Can we pass call a Function in a query? For e.g. Select * from Function

4
What type of parameter you have pass in Store procedure?

5
Can we get a table from a store procedure and store procedure don’t have any return type

6
Can we create a store procedure that have some parameter, but during the call of parameter we don’t pass any parameter?

7
What is View.

8
Why View comes in practice?

9
Which kind of information we have performed with the view.

10
What is RANK function in View.

11
Is there any way to make a store procedure that is not readable for other person?

12
Whenever we have created a database what are the primary file create in SQL

13
Have you heard about MDF file? What is the role of that file?

14
What is trigger

15
Suppose you have a view, can you pass a parameter in the select query of that view.

16
What is Temp DB in SQL

17
What IS DML And DDL Commands
18








C# Inter View Question
1
What is Optional parameter in

2
Can we create a array that store diff data type value

3
What is Generic

4
Difference in list and Array List

5
Delegate in C#.

6
Have you ever used delegate in your project?

7
What is Multi-Threading in C#

8
What is PARAM  

9
OOPS concept

10
Difference Between Abstraction and Inheritance

11
How abstraction can achieve?

12
Interface in C#  

13



3rd Round with Manager
1.       Write a program of number swapping without using third variable
2.       Find out the second highest salary from Employee Salary Table
3.       Write a multi-threading program and Explain
4.       What Kind of project you are working On RPA
5.       Can we call a Exe from RPA  


Share:

EY company interview questions on RPA with .Net profile








Hi Friends

I am sharing my experience.

RPA:

1. How we use Rest API in AA.
2. How to use .net DLL in AA.
3. How to fetch Excel data in AA.
4. Can we store all Excel data in a single variable ,or can we hold all Excel data in AA.
5 How we get all Excel row and last row of Excel in AA.
6 supposed you have a excle data in

Prod.| Quantity| price | total price
Pen.      5                  10
 
Now you have to calculate total price and finally result should be store in database and final report ssrs report should be generated.


Condition:
Looping and travesing is only the best way .
Either put formula in Excel last row .

Which one is better.-

7.Genreic in RPA
----------------------------------------------

MVC

What is MVC
WHAT is modal view controller
Route config and app config
How there is a communication between all three.

How route config code work.

Supposed previous problem you have how you can read the data .
How can you do this exercise in MVC
Loos coupling and tight coupling

======================={
Bootsrap



What type of control u used
How to set dynamic control
Can a control change Dynamic




Share:

Popular

Tags

Mobile

Recent Posts