Questions

Q:

Improve the bracketed part of the sentence.
The workers are bent (on) getting a full months pay as bonus.

A) for B) upon
C) to D) no improvement
 
Answer & Explanation Answer: B) upon

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2407
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 2406
Q:

Which keyboard shortcut bolds selected text?

A) CTRL + I B) SHIFT + CTRL + S
C) CTRL + B D) CTRL + SHIFT + I
 
Answer & Explanation Answer: C) CTRL + B

Explanation:

CTRL + B is computer keyboard shortcut bolds selected text.

CTRL + I is used for making the selected text italic

SHIFT + CTRL + S used for SAVE AS option for any document or file.

Report Error

View Answer Report Error Discuss

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

4 2406
Q:

What is the unit of the physical quantity "Stress"?

A) newton second B) steradian
C) pascal D) joule
 
Answer & Explanation Answer: C) pascal

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams , CAT

1 2406
Q:

A kilowatt-hour is unit of

A) Power B) Electric charge
C) Energy D) Electric current
 
Answer & Explanation Answer: C) Energy

Explanation:

The kilowatt hour (kW⋅h) is a composite unit of energy equivalent to one kilowatt (1 kW) of power sustained for one hour.

One watt is equal to 1 J/s. One kilowatt hour is 3.6 megajoules.

 

Report Error

View Answer Report Error Discuss

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

14 2405
Q:

What natural factors contribute to global climate?

A) Forest Fires B) Solar Activity
C) Melting Permafrost D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

Global warming is the increase in the earth’s average temperature due to release of several greenhouse gases to the atmosphere by humans. Global warming is affecting many parts of the world.

 

Natural Causes include :

1. Solar Activity

2. Melting Permafrost

3. Forest Fires 

 

Human made causes include :

1. Deforestation

2. Overpopulation

3. Landfills

4. Mining

5. Fertilizer Use

Report Error

View Answer Report Error Discuss

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

2 2405
Q:

Hot springs are heated geothermally by underlying

A) water B) magma
C) mitula D) None of the above
 
Answer & Explanation Answer: B) magma

Explanation:

Magma is molten rocks beneath the earth's crust. Hot springs are heated geothermally by underlying magma.

Report Error

View Answer Report Error Discuss

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

2 2405
Q:

The goal of a statement of purpose is

A) To indicate what is expected to be accomplished in doing an experiment B) To calculate an average of two or more measurements
C) To list the materials needed for an experiment D) To demonstrate that a hypothesis is wrong
 
Answer & Explanation Answer: A) To indicate what is expected to be accomplished in doing an experiment

Explanation:

The goal of a statement of purpose is to indicate what is expected to be accomplished in doing an experiment.

Report Error

View Answer Report Error Discuss

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

1 2405