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

The term facultative anaerobe refers to an organism that

A) Uses oxygen or grows without oxygen. B) Requires less oxygen than is present in air.
C) Prefers to grow without oxygen. D) Is killed by oxygen.
 
Answer & Explanation Answer: A) Uses oxygen or grows without oxygen.

Explanation:

The term facultative anaerobe refers to an organism that which uses oxygen when it is present or grows without oxygen when it is not there.

Report Error

View Answer Report Error Discuss

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

2 2421
Q:

The process of depositing a layer of zinc on iron is called ___________

A) Galvanisation B) Crystallisation
C) Rusting D) Baking
 
Answer & Explanation Answer: A) Galvanisation

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

6 2421
Q:

Stoichiometry is based on

A) Law of conservation of energy B) Law of conservation of mass
C) Newton's 1st law D) Kepler's law
 
Answer & Explanation Answer: B) Law of conservation of mass

Explanation:

Stoichiometry is a branch of chemistry deals with the calculations on reactants and products. It is based on the Law of conservation of mass where total mass of reactants is equal to total mass of products.

Report Error

View Answer Report Error Discuss

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

2 2420
Q:

Microorganisms that cause disease are called

A) Pathogens B) Microbes
C) Infectees D) None of the above
 
Answer & Explanation Answer: A) Pathogens

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2420
Q:

"Relief of the disabled and unemployable" is listed in the __________ list given in the Seventh Schedule in the Constitution of India.

A) Union B) State
C) Global D) Concurrent
 
Answer & Explanation Answer: B) State

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 2420
Q:

Daisy wheel printer is a type of

A) Impact printer B) Laser printer
C) Manual printer D) Matrix printer
 
Answer & Explanation Answer: A) Impact printer

Explanation:

A daisy-wheel printer works on the same principle as a ball-head typewriter. Daisy wheel printer is a type of impact printer invented in 1969.

Daisy_wheel_printer_is_a_type_of1557315359.jpg image

The daisy wheel is a disk made of plastic or metal on which characters stand out in relief along the outer edge. To print a character, the printer rotates the disk until the desired letter is facing the paper.

Report Error

View Answer Report Error Discuss

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

2 2419
Q:

Improve the bracketed part of the sentence.
I (have done) my exercises when keshav came to see me.

A) had done B) done
C) doing D) No improvement
 
Answer & Explanation Answer: A) had done

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English

0 2419