Interview Questions

Q:

Which of the following are incorrect form of StringBuffer class constructor  ?

A) StringBuffer(int size , String str) B) StringBuffer(int size)
C) StringBuffer(String str) D) StringBuffer()
 
Answer & Explanation Answer: A) StringBuffer(int size , String str)

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: Database Administration , IT Trainer

3 6450
Q:

Which two method you need to implement for key Object in HashMap ?

Answer

In order to use any object as Key in HashMap, it must implements equals and hashcode method in Java.

Report Error

View answer Workspace Report Error Discuss

4 6424
Q:

What is the user-defined header file extension in c++?

A) cpp B) h
C) hf D) none of these
 
Answer & Explanation Answer: B) h

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: C++

1 6419
Q:

What is the data structures used to perform recursion?

Answer

Stack. Because of its LIFO (Last In First Out) property it remembers its ‘caller’ so knows whom to return when the function has to return. Recursion makes use of system stack for storing the return addresses of the function calls. Every recursive function has its equivalent iterative (non-recursive) function. Even when such equivalent iterative procedures are written, explicit stack is to be used.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

3 6398
Q:

What do you understand by Intercompany Settlement?

Answer

A key functional area of SAP for Utilities that supports cross-company exchange of settlement data based on international standards such as EDI, XML, and Microsoft Excel.


Intercompany data exchange manages data transfer between retailers, distributors, and independent service operators with special regard to the requirements in deregulated markets.

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable

2 6380
Q:

How to read and write a file using javascript?

Answer

Files can be read and written by using java script functions – fopen(),fread() and fwrite().


The function fopen() takes two parameters – 1. Path and 2. Mode (0 for reading and 3 for writing). The fopen() function returns -1, if the file is successfully opened.


Ex: file=fopen(getScriptPath(),0);


 


The function fread() is used for reading the file content.


Ex: str = fread(file,flength(file));


 


The function fwrite() is used to write the contents to the file.


Ex(): file = fopen("c:\MyFile.txt", 3);// opens the file for writing


fwrite(file, str);// str is the content that is to be written into the file.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 6336
Q:

How does the payment mechanism work?

Answer

The open items of an account can only be cleared once you post an identical offsetting amount to the account. In other words, the balance of the items assigned to each other must equal zero.During clearing, the system enters a clearing document number and the clearing date in these items. In this way, invoices in a vendor account are indicated as paid, and items in a bank clearing account are indicated as cleared.

You generally use the payment program to clear invoices. Manual clearing of open items is therefore not usually necessary. However, you will sometimes have to clear items manually if, for example, you receive a refund from your vendor or you have set up a direct debit procedure.

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable

3 6312
Q:

How does cloud architecture overcome the difficulties faced by traditional architecture?

Answer

Cloud architecture provide large pool of dynamic resources that can be accessed any time whenever there is a requirement, which is not being given by the traditional architecture. In traditional architecture it is not possible to dynamically associate a machine with the rising demand of infrastructure and the services. Cloud architecture provides scalable properties to meet the high demand of infrastructure and provide on-demand access to the user.

Report Error

View answer Workspace Report Error Discuss

Subject: Cloud Computing

1 6294