Questions

Q:

In what city would you find the Kowloon peninsula?

Answer

Hong Kong

Report Error

View answer Workspace Report Error Discuss

Subject: World Geography

0 2422
Q:

Write a c program for merge sort.

Answer

#include
#define MAX 50

void mergeSort(int arr[],int low,int mid,int high);
void partition(int arr[],int low,int high);

int main(){
  
    int merge[MAX],i,n;

    printf("Enter the total number of elements: ");
    scanf("%d",&n);

    printf("Enter the elements which to be sort: ");
    for(i=0;i<n;i++){
         scanf("%d",&merge[i]);
    }

    partition(merge,0,n-1);

    printf("After merge sorting elements are: ");
    for(i=0;i<n;i++){
         printf("%d ",merge[i]);
    }

   return 0;
}

void partition(int arr[],int low,int high){

    int mid;

    if(low<high){
         mid=(low+high)/2;
         partition(arr,low,mid);
         partition(arr,mid+1,high);
         mergeSort(arr,low,mid,high);
    }
}

void mergeSort(int arr[],int low,int mid,int high){

    int i,m,k,l,temp[MAX];

    l=low;
    i=low;
    m=mid+1;

    while((l<=mid)&&(m<=high)){

         if(arr[l]<=arr[m]){
             temp[i]=arr[l];
             l++;
         }
         else{
             temp[i]=arr[m];
             m++;
         }
         i++;
    }

    if(l>mid){
         for(k=m;k<=high;k++){
             temp[i]=arr[k];
             i++;
         }
    }
    else{
         for(k=l;k<=mid;k++){
             temp[i]=arr[k];
             i++;
         }
    }
  
    for(k=low;k<=high;k++){
         arr[k]=temp[k];
    }
}


Sample output:

Enter the total number of elements: 5
Enter the elements which to be sort: 2 5 0 9 1
After merge sorting elements are: 0 1 2 5 9

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2421
Q:

Which city is the venue of the 9th International Conference on Micro Irrigation ?

A) Aurangabad B) Ahmedabad
C) Allahabad D) None of the above
 
Answer & Explanation Answer: A) Aurangabad

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2421
Q:

What does FIFA stand for

Answer

FIFA stand for Federation Internationale de Football Association.


what_does_fifa_stand_for1549624513.jpg image

Report Error

View answer Workspace Report Error Discuss

Subject: General Awareness Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2421
Q:

How long is a term in the house of representatives?

A) 5 B) 2
C) 4 D) 6
 
Answer & Explanation Answer: B) 2

Explanation:

Members of the House of Representatives serve two-year terms and are considered for reelection every even year.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

2 2421
Q:

In the following question, out of the four alternatives, select the alternative which is the best substitute of the words/sentence.

Expel someone from a property, especially with the support of the law

A) Genial B) Evict
C) Cordial D) Convivial
 
Answer & Explanation Answer: B) Evict

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: CAT , GRE , TOEFL
Job Role: Bank Clerk , Bank PO

0 2421
Q:

Deficiency of which minerals causes goiter?

A) Magnesium B) Calcium
C) Iodine D) Sulphur
 
Answer & Explanation Answer: C) Iodine

Explanation:

Deficiency of Iodine cause Goiter also called Enlarged Thyroid. It doesn't give any pain but difficult to swallow and breath are its causes.

Report Error

View Answer Report Error Discuss

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

13 2421
Q:

The question below consists of a set of labelled sentences. Out of the four options given, select the most logical order of the sentences to form a coherent paragraph. Integrating diversity

P: governance which is firmly grounded

Q: in international human rights law

R: goes hand in hand with

A) QPR B) RPQ
C) PRQ D) QRP
 
Answer & Explanation Answer: B) RPQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2421