Interview Questions

Q:

What is function prototyping? What are its advantages?

Answer

Function prototyping is a function declaration statement that tells the compiler about the return type of the function and the number as well as type of arguments required by the function at the time of calling it.


Syntax:


return_type function_name( type1 arg1, type 2 arg2, ... );


 


Advantages of function prototype :


- It helps the compiler in determining whether a function is called correctly or not. Each time when a function is called, its calling statement is compared with its prototype. In case of any mismatch, compiler reports an error.


- A function must be defined before calling it. But prototyping allows a function to be called before defining it.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

37 22975
Q:

Which of the following gives the memory address of the first element in array?

A) array[0]; B) array[1];
C) array(2); D) array;
 
Answer & Explanation Answer: D) array;

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: C++

23 22238
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

6 21216
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

Subject: Accounts Receivable Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

24 20310
Q:

How many of the following will follow JavaBean Listener naming rules?

addListener

addMouseListener

deleteMouseListener

removeMouseListener

registerMouseListener

 

A) 1 B) 2
C) 3 D) 4
 
Answer & Explanation Answer: B) 2

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Java

0 20057
Q:

Which of the following statements are equal for a variable declared in the interface ?

1. int X=10
2. public int X=10
3. public static final int X=10

A) Only 1 and 2 are equal B) Only 2 and 3 are equal
C) All are unequal D) All are equal
 
Answer & Explanation Answer: D) All are equal

Explanation:

All the statements are equal because inside an interface a variable declared will be public static final by default 

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

0 19164
Q:

public abstract class Shape {

private int x;

private int y;

public abstract void draw();

public void setAnchor(int x, int y) {

this.x = x;

this.y = y;

}

}

Which two classes use the Shape class correctly?

A) public class Circle implements Shape { private int radius; B) public abstract class Circle extends Shape { private int radius; }
C) public class Circle extends Shape { private int radius; public void draw(); D) None
 
Answer & Explanation Answer: B) public abstract class Circle extends Shape { private int radius; }

Explanation:

Only B is true

Report Error

View Answer Report Error Discuss

Filed Under: Java

0 18718
Q:

Tally package is developed by

A) Tally Solutions B) Coral Softwares
C) Vedika Softwares D) Peutronics
 
Answer & Explanation Answer: A) Tally Solutions

Explanation:

Tally package is developed by Tally Solutions. 

 

Tally Solutions, then known as Peutronics, was co-founded in 1986 by Shyam Sunder Goenka and his son Bharat Goenka.

 

Report Error

View Answer Report Error Discuss

Filed Under: Bank Interview
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

16 18705