Interview Questions

Q:

What is the difference between stack and array?

Answer

Stack:


 - Stack is a ordered collection of items


 - Stack is a dynamic object whose size is constantly changing as items are pushed and popped .


 - Stack may contain different data types


Array:


- Array is an ordered collection of items


- Array is a static object i.e. no of item is fixed and is assigned by the declaration of the array


- It contains same data types.

Report Error

View answer Workspace Report Error Discuss

Subject: C++ - Technology Exam Prep: GATE

24 13122
Q:

Explain what is BRS?

Answer

BRS - Bank Reconciliation Statement


 


A bank reconciliation statement is a statement prepared by organizations to reconcile the balance of cash at bank in a company's own records with the bank statement on a particular date.


 


The differences may arise because of the following reasons:


 


     - Cheques deposited into bank but not yet collected by bank


 


     - Cheques issued by the organization but not yet presented for payment


 


     - Cheques directly deposited by customers into the bank


 


     - Bank charges debited by bank


 


     - Interest credited or some receipts directly collected by bank based on org. request.


 


     - Some payments directly made by bank based on the organizations request.


 


So, the statement shows the reasons as what are the reasons for difference in balance.

Report Error

View answer Workspace Report Error Discuss

16 12944
Q:

Which is more effective while calling the functions?

A) call by value B) call by reference
C) call by pointer D) none
 
Answer & Explanation Answer: B) call by reference

Explanation:

In the call by reference, it will just copy the address of the variable to access it, so it will reduce the memory in accessing it.

Report Error

View Answer Report Error Discuss

Filed Under: C++ - Technology

9 12567
Q:

try { int x = Integer.parseInt("two"); }

Which could be used to create an appropriate catch block?

A) ClassCastException B) IllegalStateException
C) NumberFormatException D) None
 
Answer & Explanation Answer: C) NumberFormatException

Explanation:

C is correct. 'Integer.parseInt' can throw a NumberFormatException, and IllegalArgumentException is its superclass 

Report Error

View Answer Report Error Discuss

Filed Under: Java - Technology

1 12225
Q:

What is the difference between debenture and preference share ?

Answer

The difference between Debentures and Preferential Shares is as follows:

1) Person holding debentures has owed money to a company, while Preferential Shareholder could be considered as a partial owner of the company.

2) A Preference shareholder earns dividends if the company is making profits, however a debenture holder needs to be paid irrespective of making profits or losses.

3) A debenture holder would be paid the capital invested at the end of a stipulated term. A preference shareholder is not promised return of capital invested; instead he earns dividends till the time the company exists and is profitable.

4) A debenture holder earns interest on the capital invested till the capital is not returned, while a preference shareholder is paid dividends till the time the company exists.

Report Error

View answer Workspace Report Error Discuss

4 11894
Q:

What is the role of the JIT compiler in .NET Framework?

Answer

The JIT compiler is an important element of CLR, which loads MSIL on target machines for execution. The MSIL is stored in .NET assemblies after the developer has compiled the code written in any .NET-compliant programming language, such as Visual Basic and C#.

JIT compiler translates the MSIL code of an assembly and uses the CPU architecture of the target machine to execute a .NET application. It also stores the resulting native code so that it is accessible for subsequent calls. If a code executing on a target machine calls a non-native method, the JIT compiler converts the MSIL of that method into native code. JIT compiler also enforces type-safety in runtime environment of .NET Framework. It checks for the values that are passed to parameters of any method.

For example, the JIT compiler detects any event, if a user tries to assign a 32-bit value to a parameter that can only accept 8-bit value.

Report Error

View answer Workspace Report Error Discuss

Subject: .NET - Technology

8 11785
Q:

What is the difference between agglomerative and divisive Hierarchical Clustering?

Answer

- Agglomerative Hierarchical clustering method allows the clusters to be read from bottom to top and it follows this approach so that the program always reads from the sub-component first then moves to the parent. Whereas, divisive uses top-bottom approach in which the parent is visited first then the child. 


- Agglomerative hierarchical method consists of objects in which each object creates its own clusters and these clusters are grouped together to create a large cluster. It defines a process of merging that carries on till all the single clusters are merged together into a complete big cluster that will consists of all the objects of child clusters. Whereas, in divisive the parent cluster is divided into smaller cluster and it keeps on dividing till each cluster has a single object to represent.

Report Error

View answer Workspace Report Error Discuss

4 11261
Q:

What are the types of Collision Resolution Techniques and the methods used in each of the type?

Answer

Open addressing (closed hashing),


The methods used include: Overflow block,


 Closed addressing (open hashing)


The methods used include: Linked list, Binary tree…

Report Error

View answer Workspace Report Error Discuss

Subject: Java - Technology

16 10940