Interview Questions

Q:

What is the difference between realloc() and free()?

Answer

The free subroutine frees a block of memory previously allocated by the malloc subroutine. Undefined results occur if the Pointer parameter is not a valid pointer. If the Pointer parameter is a null value, no action will occur. The realloc subroutine changes the size of the block of memory pointed to by the Pointer parameter to the number of bytes specified by the Size parameter and returns a new pointer to the block. The pointer specified by the Pointer parameter must have been created with the malloc, calloc, or realloc subroutines and not been deallocated with the free or realloc subroutines. Undefined results occur if the Pointer parameter is not a valid pointer.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 4995
Q:

How will you call the return code of JCL ?

Answer

Return Code in JCL can b obtained by the use of COND paramater...it is used to know the return codes of previous steps.

Report Error

View answer Workspace Report Error Discuss

2 4983
Q:

What will happen when an exception is not processed?

A) It will eat up lot of memory and program size B) Terminate the program
C) Crash the compiler D) None of the mentioned
 
Answer & Explanation Answer: A) It will eat up lot of memory and program size

Explanation:

As in the case of not using an exception, it will remain useless in the program and increase the code complexity.

Report Error

View Answer Report Error Discuss

Filed Under: C++

2 4982
Q:

What is the difference between EFT & Wire?

Answer

EFT-Electronic Funds Transfer is basically batch of payments are transferring from one bank to another bank with specified time lines.  EFT payments are also called as BACS if it is UK, ACH in US for domestic payments.  Foreign payments are called as SWIFT payments.


WIRE: Wire can be used to release payments for local or international, Different countries will be named in different ways viz., CHAPS for Local Payments made in UK, WIRE for all international payments made from UK and Local & foreign payments made in all other countries

Report Error

View answer Workspace Report Error Discuss

Subject: Accounts Payable

5 4968
Q:

Controlling marketing activities :

What does monitoring and controlling marketing activities entail?

Answer

All those activities which have been planned out by the marketing department must be tried out in the market several times in order to be able to conclude if such activities are worthwhile or not. Such activities may be repeated several times over a period say six months or a year in order to be able to decide whether to stick to them or replace them with other better alternatives. Monitoring and controlling the marketing activities entails keeping proper records of the various activities and tracking them time and again particularly when it comes to the media, when to promote the product, cost factor, reach or the number of persons towards whom the promotions have been targeted, responses generated, sales generation and return on sales

Report Error

View answer Workspace Report Error Discuss

8 4959
Q:

Difference between Stack and Queue

Answer

Stack is a collection of objects that works in LIFO (Last in First out) mechanism while Queue is FIFO (First in First out). This means that the object that is inserted first is removed last in a stack while an object that is inserted first is removed first in a queue.

Report Error

View answer Workspace Report Error Discuss

Subject: C++

0 4950
Q:

Tell me about the most difficult or complex idea you have had to explain to someone.

Answer

When communicating complex ideas, you keep your message simple and straightforward – avoiding technical jargon and overusing statistics. You don’t expect people to have the same background knowledge as you and are careful to introduce your idea in clear, concise terms. You find that giving examples, using pictures and graphs helps clarify difficult concepts and can be useful as people have different learning styles. You always encourage questions and if somebody is having difficulty understanding, you are quick to adapt your style.

Report Error

View answer Workspace Report Error Discuss

Subject: Communication

8 4933
Q:

Can SQL Servers linked to other servers like Oracle?

Answer

SQL Server can be linked to any server provided it has OLE-DB provider from Microsoft to allow a link. E.g. Oracle has an OLE-DB provider for oracle that Microsoft provides to add it as linked server to SQL Server group.

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

0 4926