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 4164
Q:

Can you explain how to insert an image in table in oracle?

Answer

Insert image into a table


Create the following table:


      create table pics_table (


      bfile_id number,


      bfile_desc varchar2(30),


      bfile_loc bfile,


      bfile_type varchar2(4))


      TABLESPACE appl_data


      storage (initial 1m next 1m pctincrease 0) 


Insert Query:


      INSERT INTO pics_table


      VALUES(4,'test image',bfilename('GIF_FILES','Test.JPG'),'JPEG'); 

Report Error

View answer Workspace Report Error Discuss

Subject: Oracle

4 4162
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 4152
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 4150
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 4145
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 4144
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 4140
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 4140