Questions

Q:

Write a c program for selection sort.

Answer

include<stdio.h>
int main(){

  int s,i,j,temp,a[20];

  printf("Enter total elements: ");
  scanf("%d",&s);

  printf("Enter %d elements: ",s);
  for(i=0;i<s;i++)
      scanf("%d",&a[i]);

  for(i=0;i<s;i++){
      for(j=i+1;j<s;j++){
           if(a[i]>a[j]){
               temp=a[i];
              a[i]=a[j];
              a[j]=temp;
           }
      }
  }

  printf("After sorting is: ");
  for(i=0;i<s;i++)
      printf(" %d",a[i]);

  return 0;
}

Output:
Enter total elements: 5
Enter 5 elements: 4 5 0 21 7
The array after sorting is:  0 4 5 7 21

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2539
Q:

Landowners often complain that hunters

A) do not get written permission to hunt B) make too much noise
C) leave litter behind D) All of the above
 
Answer & Explanation Answer: A) do not get written permission to hunt

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2538
Q:

Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.

Another marvel on the far side of the lake was a little farm that felt like a secret in the city. Some of the gaunt Karnataka labourers even looked away when children came to dig and eat. But the greatest pleasure, this side of the lake, was the jamun tree. A few months back, Kalu and Sunil had a feast in the branches, shaking down a few berries for Mirchi.

That's when they came to know the second-coolest thing about the jamun tree : There were parrots nesting in it. Since then, some other road boys had been capturing the parrots one by one to sell at the Marol Market, but Sunil had brought Kalu around to the belief that the birds should be left as they were. Sunil listened for their squawks each morning, to make sure they hadn't been abducted in the night.

Kalu's expertise was in the recycling bins inside airline catering compounds. Private waste collectors emptied these dumpsters on a regular basis, but Kalu had mastered the trash truck's schedules. The night before pickup, Kalu would climb over the barbed-wire fences and raid the overflowing bins.

Kalu's routine had become known by the local police, however. He kept getting caught, until some constables proposed a different arrangement. Kalu could keep his metal scrap if he'd pass on information he picked up on the road about local drug dealers.


What did Sunil think of parrots?

A) That they should be captured and sold. B) That they had been abducted in the night.
C) That they should not be captured and sold. D) That they squawked every morning.
 
Answer & Explanation Answer: C) That they should not be captured and sold.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2538
Q:

Who described his policy of unification as one of 'blood and iron'?

A) Bismarck B) Napoleon
C) Mazzini D) Napoleon Bonaparte
 
Answer & Explanation Answer: A) Bismarck

Explanation:

With the failure of the revolution of 1848 to unify Germany, one phase in the struggle for unification came to an end. Now Germany was to be unified not into a democratic country by the efforts of revolutionaries but by the rulers into a militaristic empire. The leader of this policy Bismarck who belonged to a prussian aristocratic family. He wanted to preserve the predominance of the landed aristocrats and the army in the united German state and to achieve the unification of Germany under the leadership of Prussian monarchy. He described his policy of unification as one of 'blood and iron'. The policy of 'blood and iron' meant a policy of war.

Report Error

View Answer Report Error Discuss

Filed Under: World History

2 2537
Q:

What was the purpose of the double v campaign?

Answer

The Double V Campaign was used in World War II. The purpose of the double v campaign is to fight for victory and ending segregation at home.


It was aimed at African-Americans, and it first appeared in an African-American newspaper, the Pittsburgh Courier, in 1942. The Double V Campaign worked to have a victory over racism abroad and racism in the United States.

It stood so it gave a chance for Black Americans to fight in the war so they could achieve Victory at Home and Abroad- (Civil Rights then the war in the Atlantic and Pacific).

Report Error

View answer Workspace Report Error Discuss

Subject: World History Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 2537
Q:

Where do arteries carry blood?

A) Heart B) Lungs
C) Tissues D) Brain
 
Answer & Explanation Answer: A) Heart

Explanation:

Arteries carry oxygenated blood away from the heart to the tissues, except for pulmonary arteries, which carry blood to the lungs for oxygenation (usually veins carry deoxygenated blood to the heart but the pulmonary veins carry oxygenated blood as well).

Report Error

View Answer Report Error Discuss

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

4 2537
Q:

Which part of flower produces pollen grains that are generally yellowish in color?

A) Sepals B) Petals
C) Stamens D) Carpels
 
Answer & Explanation Answer: C) Stamens

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

0 2537
Q:

The outer protein coat of a virus is called a

A) Capsid B) Virion
C) Envelope D) None of the above
 
Answer & Explanation Answer: A) Capsid

Explanation:

The outer protein protective coat of a virus is called a Capsid.

Report Error

View Answer Report Error Discuss

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

5 2537