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

CM is about managing the different items in the product, and changes in them.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

Configuration Management is a support for software in managing the different items in the product, and changes in them.

Report Error

View Answer Workspace Report Error Discuss

6 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:

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:

Production costs to an economist

A) reflect opportunity costs B) consist only of explicit costs
C) always reflect monetary outlays D) never reflect monetary outlays
 
Answer & Explanation Answer: A) reflect opportunity costs

Explanation:

Production costs to an economist reflect opportunity costs.

Report Error

View Answer Report Error Discuss

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

2 2420
Q:

Which among the following is not correctly matched?

A) Parachute: W H carothers B) Barometer: Torricelli
C) Cells: Robert Hooke D) X- Ray: W Roentgen
 
Answer & Explanation Answer: A) Parachute: W H carothers

Explanation:
Report Error

View Answer Report Error Discuss

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

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

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 2420