Questions

Q:

National Science Centre is located at

A) New Delhi B) Pune
C) Bangalore D) Hyderabad
 
Answer & Explanation Answer: A) New Delhi

Explanation:

National Science Centre is located at New Delhi.

national_science_centre_is_located_at1553943841.jpg image

Report Error

View Answer Report Error Discuss

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

0 2318
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 2317
Q:

Fohn is a localwind of _____

A) Canada B) Switzerland
C) Northern Italy D) West Africa
 
Answer & Explanation Answer: B) Switzerland

Explanation:

In Europe, Fohn winds are prevalent in Swiss Valleys

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 2317
Q:

The resolution of a printer is measured in

A) DPI B) Megabits
C) Hertz D) Inches
 
Answer & Explanation Answer: A) DPI

Explanation:

Dots per inch (DPI, or dpi) is a measure of spatial printing or video or image scanner dot density, in particular the number of individual dots that can be placed in a line within the span of 1 inch (2.54 cm).

Report Error

View Answer Report Error Discuss

1 2317
Q:

Major fructose sources include

A) breads and cereals B) beer and liquor
C) milk and cheese D) fruits and honey
 
Answer & Explanation Answer: D) fruits and honey

Explanation:
Report Error

View Answer Report Error Discuss

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

4 2316
Q:

What is FtDisk?

Answer

It is a fault tolerance disk driver for Windows NT.

Report Error

View answer Workspace Report Error Discuss

1 2316
Q:

The Microsoft Access wildcards are ____ and ____ .

A) asterisk (*); percent sign (%)   B) percent sign (%); underscore (_)  
C) underscore(_); question mark (?) D) question mark (?); asterisk (*)
 
Answer & Explanation Answer: D) question mark (?); asterisk (*)

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems
Exam Prep: Bank Exams
Job Role: IT Trainer

10 2316
Q:

Economic resources are also called

Answer

Economic resources include land, labour, capital and entrepreneurship. 


Entrepreneurship is also considered an economic resource because individuals are responsible for creating businesses and moving economic resources in the business environment.


 


These economic resources are also called as Factors of production.


 

Report Error

View answer Workspace Report Error Discuss

2 2316