Interview Questions

Q:

Write a c program for bubble sort.

Answer

#include<stdio.h>
int main(){

  int s,temp,i,j,a[20];

  printf("Enter total numbers of elements: ");
  scanf("%d",&s);

  printf("Enter %d elements: ",s);
  for(i=0;i<s;i++)
      scanf("%d",&a[i]);

  //Bubble sorting algorithm
  for(i=s-2;i>=0;i--){
      for(j=0;j<=i;j++){
           if(a[j]>a[j+1]){
               temp=a[j];
              a[j]=a[j+1];
              a[j+1]=temp;
           }
      }
  }

  printf("After sorting: ");
  for(i=0;i<s;i++)
      printf(" %d",a[i]);

  return 0;
}

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 4155
Q:

Which of the following is a function of inventory?

A) to take advantage of quantity discounts B) to decouple various parts of the production process
C) to provide a selection of goods for anticipated customer demand and to separate the firm from fluctuations in that demand D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

All the above given statements are functions of Inventory.

 

Inventory or stock is the goods and materials that a business holds for the ultimate goal of resale. Inventory management is a discipline primarily about specifying the shape and placement of stocked goods.


The primary function of inventory is to use marketing and production to increase profitability, to get the maximum amount for the business' investment. There are other functions of inventory, such as balancing supply and demand, improving efficiency, establishing a safety stock and geographical specialization.

Report Error

View Answer Report Error Discuss

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

0 4152
Q:

How can we distinguish between an online and batch program in IMS environment?

Answer

If in application program IO-PCB is there then it is a online program. In ENTRY statement IO-PCB must be listed first and then DB-PCB.

Report Error

View answer Workspace Report Error Discuss

1 4146
Q:

What does inheriatance allows you to do?

A) create a class B) access methods
C) create a hierarchy of classes D) None of the mentioned
 
Answer & Explanation Answer: C) create a hierarchy of classes

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: C++

1 4143
Q:

Default constructor accepts how many arguments?

A) one B) two
C) three D) None
 
Answer & Explanation Answer: D) None

Explanation:

Default constructors has no arguments

Report Error

View Answer Report Error Discuss

Filed Under: C++

1 4140
Q:

Suspense account group is defined under

A) Assets B) Income
C) Expenditure D) Liabilities
 
Answer & Explanation Answer: D) Liabilities

Explanation:
Report Error

View Answer Report Error Discuss

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

1 4137
Q:

What is ‘Bill Purchase’?

Answer

In ‘Bill Purchase’ the loan will be created for the full value of the draft and the interest will be recovered when the actual payment comes. For example, a ‘Sight draft’ is presented for which the loan is created for 100% of the draft value. The money is received after 7 days, and then the interest will be recovered for 7 days along with the principal amount.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Bank Interview

0 4135
Q:

Which Bank has obtained RBI approval to open representative offices in Kuwait and Singapore?

A) SBI B) Federal Bank
C) HDFC D) ICICI
 
Answer & Explanation Answer: B) Federal Bank

Explanation:

Federal Bank has obtained RBI approval to open representative offices at Kuwait and Singapore.

The bank has been the preferred banker for NRI's and the NRI friendly measures have resulted in increasing inflow of foreign remittances.

The bank already has its representative offices in Abu Dhabi and Dubai and it has tied up with 110+ overseas banks/remittance partners.

Report Error

View Answer Report Error Discuss

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

6 4132