Sponsored Ad

Thursday, July 15, 2010

Royal Bank of Scotland Interview Questions – Telephonic - .NET

 

Here is some questions asked during the interview process of Royal Bank of Scotland (RBS) for .NET opening.

 

Question. Tell me something about yourself?

Answer. Give a small introduction about professional background.

Question. Tell me about current project and technology used?

Answer. As per your current project.

Question. Rate your self for .NET, C#, Oracle?
Answer.
.NET - 7
C# - 8
Oracle - 7

Question. Lets start with .NET, What is .NET framework?
Answer. Its a platform to run .NET application, where .net applications can use .net resources.

Question. What is DLL?
Answer. Dynamic link libraries, kind of exe file.

Question. What is manifest?
Answer. Contains Details about assembly. like reference, versions, resources and type.

Question. What types of assemblies are there and what is difference?
Answer. Private and public
private is private to application and kept in local application folder
public assemblies are shared among the applications and kept in GAC.

Question. Suppose there is two versions of a assembly, how your application will decide which version to use?
Answer. In web.config under binding give old version and new version

Q. Any other way to do versioning in GAC?
Answer. Find it out.

Q. What is strong type and loose type ?
Answer. its a language property. The language who provide variable data type declaration called loose type like vb and JavaScript provide var type variable declaration while C# not. so C# is strong type language.

 

C# interview Questions

Question. What collection type you used?
Answer. ArrayList

Question. What is difference between arraylist and array?
Answer. Array can store single data type and inserting will cost more, while in array list you can store multiple datatypes and inserting and removing element is easy.

Question. What are delegates?
Answer. it is function to pointer.

Question. What are events?
Answer. events are used with delegate to fire a method on any event occurrence?

Question. What is use of delegate?
Answer. Used of delegate to call a function.

Question. any other use of delegate?
Answer. Find out.

Question. What is difference between list and arraylist.
Answer. list is interface while arraylist is implementation.

Question. What is dataset?
Answer. can contains tables and their relations.

Question. What is datareader?
Answer. Read one row at a time , forward only.

Question. How will you fill dropdown values using datareader?
Answer.
While(datareader.read())
{
bind every value to dropdown
}

or construct a dataset from datareader inside loop and assign to dropdown

Question. What is abstraction?
Answer. Representing complex word in simplified manner.

Question. what is OOPs ?
Answer. programming language fully supported by objects

Question. What is Objects?
Answer. by using Objects we can represent real word easily.

Question. what are the features of objects oriented programming?
encapsulation
overloading
overriding
abstraction
association
generalization
inheritance
data hiding

Question. Have you worked on multithreaded application?
Answer. yes

Question. Describe the multithreaded application ?
Answer. Describe a demo multithread application and why using multithreading.

Question. What is Strongly typed dataset?
Answer. Strongly typed dataset is simple dataset containing the property to have datatype associated with columns and can access column values by using the column names.

Tuesday, July 13, 2010

Rsystems Interview Questions .NET

 

Question. What is Deep copy and shallow copy?
Answer. Deep copy, copy the whole object and make a different object, it means it do not refer to the original object while in case of shallow copy the target object always refer to the original object and changes in target object also make changes in original object.

Question. how to Create custom collection?
Answer. using System.Collections namespace we can create the our custom collection classes.

Question. how to Bind grid with business obj?
Answer.  return the dataset or datatable from business object and assign to datasource of grid.

Question. What is Singleton and how to implement locking in singleton pattern?
Answer. Singleton pattern usage a class which can contain only one object through out the application.

class my_Singleton
  {
    private static my_Singleton obj;
    protected my_Singleton
    {
    }
    public static my_Singleton Instance()
    {
      lock{
      if (obj == null)
      {
        obj= new my_Singleton();
      }
    }
      return obj;
    }
  }

Question. What is Typed dataset?
Answer. typed dataset is a normal dataset having property to data type check for Colum values and can access the columns by column names.

Question. What is Using keyword?
Answer. using keyword can be used in two format
1. include the namespace in file
2. handle the idisposable objects inside using block.

iFace obj = new myclass()

Myclass obj1 = new myclass()

Obj.hey();
Obj1.hey();

is the above code is valid?
yes

Question. What is difference between lock vs static locks?
Answer. static lock is applicable to static methods and variables.

Question. What is suppressfinalize?
Answer. We use this method to not to call the finalize method while disposing the objects.

Question. Can we inherit a class from multiple interfaces?
Answer. yes

Question. suppose two interfaces have same method, so how will you  implement these methods in derive class?
Answer. by using interface name

Saturday, July 10, 2010

SIEMENS Interview Questions and WRITTEN TEST 2010 | Java

 

These questions are asked during the siemens walk-in held in Gurgaon. Here is some questions and their pattern asked in the interview and written test.

No Negative Marking

1- 20 Questions of Reasoning : The time to complete is 25 minutes Most of the Questions are from Series,Relation,Distance.

2- Java Questions : It incorporates three blocks

(a)- 20 java Questions(Compulsory).

(b)- 10 questions from Swing(It is Optional) .

(c)- 5 questions from fundamentals(compulsory).

This block have to complete within 30 minutes.

Java Questions:-The java Questions based on the concept of classes,Interface,Exception Object States,Threads concepts. Example:

1- How can we save object States?

ans:by Serialization.

2-program on class inheritance: what is the output of this program.

3- program on Interface.

Swing Question:- There are 10 swing questions which are optional.

Fundamental Question:- 5 Questions:

1- which layer of OSI is responsible for transportation of data on the network?

2- operating System Question.

3 and 4:- the questions are from DBMS.

5:- In which data structure we can add data from the beginning and at end not from middle?.

Friday, July 2, 2010

Indus Valley Partners (IVP) Technical Interview Questions - .NET

 

Question. Rate yourself in C#, ASP.NET, Oracle
Answer. C# - 8
ASP.NET - 7
Oracle - 7

Question. Lets start with .NET, What is CLR and what is the task perform by CLR?
Answer.  CLR stand for Common language runtime. it have the task like
1. running the garbage collector
2. Code verification
3. code access security
4. executing IL

Question. What is assembly? and what is difference between the .dll and .exe?
Answer.  Assembly is a basic unit of .net program and it contains the all .net code, resources, references and versions etc.
.exe and .dll are same while .exe contains executable code and is machine dependent.

Question. if dll and exe files are same it means you can deploy both the files in GAC?
Answer.  No, deploying a exe file does not mean anything because classes and method are exposed in dll only and exe file is pure executable, any application can not call the function of exe file.

Question. How will you deploy the dll file in GAC?
Answer.  first create the strong name for dll and add this sn name key into the application then use gacutil command to register the dll in GAC.

Question. How will you search for a dll in GAC before registering it?
Answer. use process explorer to check the dlls, if you have any other suggestion, Please comment.

Question. What is difference between IL and DLL ?
Answer. DLL contains the IL and other details (metadata) inside.

Question. is exe is machine dependent?
Answer. yes

Question. How to pass the arguments in thread?
by passing the arguments in start() method.

Answer. thread t1 = new thread(new threadstart(obj.abc));
t1.start(21);

Question. What changes will you do if you have to pass string instead of int in thread arguments?

Answer. no chnages in thread while we change the method to receive the string or abject variable.

Question. What are the properties of abstract class?
Answer. 1. abstract class can contain the prototype of method and/or implementation of methods.
2. Direct object of abstract class is not possible.
3. we need to inherit a class and make the object of derive class and can access the abstract class methods.
4. abstract classes can contains the abstract functions.

Question. can we have this definition in abstract class?

abstract class abc
{
abc obj;

}

Answer. yes, we can have same type of obj we can define in and instantiate to derive class.

Question. What pattern you used?
Singleton and facade

Question. describe the facade pattern and use in you project?
Answer. it is used to access the whole subsystem through a system. i used it in a customer class to access the subsystem like sales, billing, invoice etc.

Question. What is singleton pattern?
Answer. creating only one object of a class.

Question. How will you handle deadlock in singleton pattern?
Answer. use lock or monitor to access by single thread.

Question. What is difference between monitor.enter and monitor.tryenter functions?

Answer. monitor.enter waits for the lock until it does not get it.
while monitor.tryenter will request for lock and it return true if get the lock and return false if does not get it and process further statements.

Question. instead of creating a singleton class, suppose i create a static object of singleton class outside the class and use it though out the application, then what is use of singleton class?

Answer. singleton class is use that accidently programmer do not create the another object of the class. it is used in large systems where we expose class and functions though dlls and want to restrict programmer while using this dll do not creating multiple objects.

Question. Why forcing garbage collector to run is not recommended?
Answer. because it sometimes create performance issue and block other threads.

Sponsored Ad

Followers

Follow Us