Questions

Q:

Igneous rocks are classified based upon their

A) composition B) texture
C) Both A & B D) None of the above
 
Answer & Explanation Answer: C) Both A & B

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2383
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 2382
Q:

What are the two types of pure substances?

Answer

An atom is the smallest particle of a substance. Chemical substances are divided into two major groups. They are


1. Pure Substances (and)


2. Mixtures.


 


There are two types of pure substances that are Elements and Compounds.


 


Elements : An element is a substance that is made up of only one kind of atoms and cannot be broken down into simpler substances by chemical means. Metals and Non- metals come under elements.


Examples of elements are Iron, Silver, Gold, Mercury etc.


 


Compounds : A Compound is a substance that is formed when two or more elements combine chemically.


Examples of compounds are Water, Carbon dioxide, methane, vinegar etc.


 


Mixtures : A Mixture is formed when two or more substances mixed together but not chemically combined.


Example: Air.

Report Error

View answer Workspace Report Error Discuss

Subject: Chemistry Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

0 2382
Q:

Who is the head of the RBI panel on MSME revival?

A) Manoj Das B) U K Sinha
C) Simba D) None of the above
 
Answer & Explanation Answer: B) U K Sinha

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

0 2381
Q:

After how many years Rajya Sabha is dissolved?

A) It is never dissolved B) 2 years
C) 5 years D) 6 years
 
Answer & Explanation Answer: A) It is never dissolved

Explanation:

Rajya Sabha is a permanent body and is not subject to dissolution. However, one third of the members retire every second year, and are replaced by newly elected members.

Report Error

View Answer Report Error Discuss

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

18 2381
Q:

The International Human Rights Convention adopted by the United Nations in 1990 relates to

A) Children B) Dasabled
C) Stateless Persons D) Migrant workers
 
Answer & Explanation Answer: A) Children

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

2 2381
Q:

What would be the output of the following program?

/* sample.c */

main ( int argc, char **argv )

{

     argc = argc - (argc -1);

     printf ("%s", argv[argc - 1]);

}

Answer

C: \SAMPLE.EXE

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2380
Q:

What separates Europe from Asia?

A) Caspian mountains B) Ural mountains
C) Himalayan mountains D) Carpathian mountains
 
Answer & Explanation Answer: B) Ural mountains

Explanation:

what_separates_europe_from_asia1555495995.jpg image

Europe from Asia are separated by Ural mountains.

Report Error

View Answer Report Error Discuss

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

2 2380