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 2465
Q:

Simla was founded as a hill station to use as strategic place for billeting troops, guarding frontier and launching campaign during the course of

A) Anglo-Maratha War B) Anglo-Burmese War
C) Anglo-Gurkha War D) Anglo-Afghan War.
 
Answer & Explanation Answer: C) Anglo-Gurkha War

Explanation:

History of Shimla goes back to the period of Anglo –Gurkha war in the year 1808-09. The British connection with the area developed only after this battle between the Sikh rulers of these hills and the Gurkhas from Nepal.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 2464
Q:

Fiords abound the coast of

A) Sweden B) France
C) Norway D) German
 
Answer & Explanation Answer: C) Norway

Explanation:

Fiords are along narrow inlets into the sea-coast with steep sides. It usually occurs along the coast of a mountainous region.It has been formed by glacial action.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

0 2464
Q:

Addis Ababa is the Capital city of

A) Angola B) Burundi
C) Chile D) Ethiopia
 
Answer & Explanation Answer: D) Ethiopia

Explanation:

The Capital city of Ethiopia is Addis Ababa.

 

Countries and Capital cities ::

Angola  -  Launda

Burundi  -  Bujumbura

Chile  -  Santiago

Report Error

View Answer Report Error Discuss

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

2 2464
Q:

Steel contains

A) no carbon B) < 2% of carbon
C) > 10% of carbon D) > 29% of carbon
 
Answer & Explanation Answer: B) < 2% of carbon

Explanation:

To make steel, iron ore is first mined from the ground. It is then smelted in blast furnaces where the impurities are removed and carbon is added.

In simple, steel is iron alloyed with carbon, usually 0 - 2%.

Report Error

View Answer Report Error Discuss

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

12 2464
Q:

Cold foods should be kept at a temperature of

A) < 5 deg Celcius B) > 18 deg Celcius
C) > 41 deg Celcius D) < -18 deg Celcius
 
Answer & Explanation Answer: A) < 5 deg Celcius

Explanation:

To reduce the risk of bacterial contamination, many foods must be stored in the refrigerator and thus kept below 5 degrees Celsius. These foods are often classified as ‘high-risk foods’ and include – meat, poultry, dairy, seafood, eggs, smallgoods and cooked rice and pasta. This also refers to ready-to-eat foods that have high-risk foods as ingredients and include – casseroles, quiche, pasta salad, pizza, sandwiches and many cakes.

 

By keeping these high-risk foods under 5 degrees Celsius it stops them from entering the ‘danger-zone’ – temperatures between 5 degrees Celsius and 60 degrees Celsius. The danger-zone is the temperature zone which provides bacteria with the perfect environment to rapidly grow and multiply to numbers that cause food poisoning.

 

Report Error

View Answer Report Error Discuss

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

2 2464
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 2463
Q:

Which of the following is a feature of ghrelin?

A) It stimulates appetite and energy storage B) It is released in high amounts from adipocytes during periods of excess energy intake
C) The blood level in the fasting state correlates directly with body weight D) It is a metabolic antagonist of leptin
 
Answer & Explanation Answer: A) It stimulates appetite and energy storage

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2463