Questions

Q:

The bar graph shows the number of employees working in the different departments of a company. Study the diagram and answer the following questions

Which department has the lowest number of employees?

A) C B) D
C) A D) B
 
Answer & Explanation Answer: B) D

Explanation:
Report Error

View Answer Report Error Discuss

1 2426
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 2426
Q:

Which countries launched a common digital currency "Aber"?

A) UAE & Saudi Arabia B) Saudi Arabia & Iraq
C) Iraq & UAE D) Malaysia & UAE
 
Answer & Explanation Answer: A) UAE & Saudi Arabia

Explanation:

The United Arab Emirates (UAE) central bank (UAECB) and the Saudi Arabian Monetary Authority (SAMA) have announced that the interbank digital currency they are co-developing will be called 'Aber.'

Report Error

View Answer Report Error Discuss

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

2 2426
Q:

The basic structural unit of the body is the

A) Organs B) Cell
C) Nerve D) Brain
 
Answer & Explanation Answer: B) Cell

Explanation:

Cells are the the basic structural unit of the body.

Report Error

View Answer Report Error Discuss

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

5 2426
Q:

Read the passage carefully and select the best answer to each question out of the given four alternatives.


The Amazon basin has been continuously inhabited for at least 10, 000 years, possibly more. Its earliest inhabitants were stone-age peoples, living in hundreds of far-flung tribes, some tiny, others numbering in the tens of thousands. It was from the west that Europeans explorers first arrived. In 1541 a Spanish expedition from Quito, led by Gonzalo Pizarro, ran short of supplies while exploring east of the Andes in what is today Peru. Pizarro’s cousin Francisco de Orellana offered to take 60 men along with the boats from the expedition and forage for supplies. De Orellana floated down the Rio Napo to its confluence with the Amazon, near Iquitos (Peru), and then to the mouth of the Amazon. Along the way his expedition suffered numerous attacks by Indians; some of the Indian warriors, they reported, were female, like the Amazons of Greek mythology, and thus the world’s greatest river got its name. No one made a serious effort to claim this sweaty territory, however, until the Portuguese built a fort near the mouth of the river at Belém in 1616, and sent Pedro Teixeira up the river to Quito and back between 1637 and 1639. During the 17th and 18th centuries, Portuguese bandeirantes (groups of roaming adventurers) penetrated ever further into the rain forest in pursuit of gold and Indian slaves, exploring as far as present-day Rondônia, and the Guaporé and Madeira river valleys. Amazonian Indians had long used the sap from rubber trees to make waterproof bags and other items. European explorers recognized the potential value of natural latex, but were unable to market it because it tended to grow soft in the heat, or brittle in the cold, and thus had limited appeal outside the rain forest. However, in 1842 American Charles Goodyear developed vulcanization (made natural rubber durable) and in 1890 Ireland’s John Dunlop patented pneumatic rubber tires. Soon there was an unquenchable demand for rubber in the recently industrialized USA and Europe, and the price of rubber on international markets soared. As profits skyrocketed, so did exploitation of the seringueiros, or rubber tappers, who were lured into the Amazon, mostly from the drought-stricken northeast, by the promise of prosperity only to be locked into a cruel system of virtual slavery dominated by seringalistas (owners of rubber-bearing forests). Rigged scales, hired guns, widespread illiteracy among the rubber tappers, and monopoly of sales and purchases all combined to perpetuate the workers’ debt and misery. In addition, seringueiros had to contend with jungle fevers, Indian attacks and all manner of deprivation.


In which year did the fort was built by Portuguese near the river Belem?

A) 1541 B) 1637
C) 1616 D) 1639
 
Answer & Explanation Answer: C) 1616

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2426
Q:

How many bits are in a MAC address?

A) 64 B) 48
C) 32 D) 16
 
Answer & Explanation Answer: B) 48

Explanation:

MAC - Media Access Control, address is a globally unique identifier assigned to network devices, and therefore it is often referred to as hardware or physical address.

 

MAC addresses are 6-byte (48-bits) in length, and are written in MM:MM:MM:SS:SS:SS format.

Report Error

View Answer Report Error Discuss

0 2425
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 2425
Q:

In the following question, out of the four alternatives, select the alternative which best expresses the meaning of the idiom/phrase.

 

The tail is wagging the dog

 

 

A) A situation where a small good thing makes everyone happy B) The less important or subsidiary factor, person, or thing dominates a situation  
C) A person who is always happy to meet you D) Even smaller tasks become important if the whole project is to succeed
 
Answer & Explanation Answer: B) The less important or subsidiary factor, person, or thing dominates a situation  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , CAT , GRE , TOEFL

11 2425