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

What is Executive in Windows NT?

Answer

In Windows NT, executive refers to the operating system code that runs in kernel mode.

Report Error

View answer Workspace Report Error Discuss

1 2446
Q:

All the organisms on your campus make up

A) a community B) a group
C) an ecosystem D) None of the above
 
Answer & Explanation Answer: A) a community

Explanation:

All the organisms on your campus make up a community.

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

The reverse effect of X-ray emission is

A) Raman effect B) Compton effect
C) Zeeman effect D) Photo-electric effect
 
Answer & Explanation Answer: D) Photo-electric effect

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

2 2446
Q:

Extensive plantation of trees is called

A) Deforestation B) Eforestation
C) Afforestation D) Agroforestry
 
Answer & Explanation Answer: C) Afforestation

Explanation:

Extensive plantation of trees to increase plants count is called Afforestation.

Report Error

View Answer Report Error Discuss

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

8 2446
Q:

Which of these best describes genetic drift?

A) Random fluctuations in the gene frequencies within a population Eliminate B) The combining of alleles to create more genetic variations within a population
C) The movement of alleles between population D) A planned method to reduce the number of inferior genes in a population
 
Answer & Explanation Answer: A) Random fluctuations in the gene frequencies within a population Eliminate

Explanation:

Random fluctuations in the gene frequencies within a population Eliminate is the one which best describes genetic drift.

Report Error

View Answer Report Error Discuss

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

1 2446
Q:

Which of the following is present in a prokaryotic cell?

A) Ribosomes B) Chloroplast
C) Mitochondria D) None
 
Answer & Explanation Answer: A) Ribosomes

Explanation:

Ribosomes are present in prokaryotic cells. These are organelles which consist of two subunits. They are present in both Eukaryotic and Prokaryotic cells. They are made up of RNA and proteins and present in the cytoplasm and on the membranes and are involved in protein synthesis.

Report Error

View Answer Report Error Discuss

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

1 2445
Q:

Gestalt psychology attempted to discover

A) the overall patterns of perceptions and thoughts B) the unconscious motivations for human functioning
C) how the mind helped people adapt to the world D) the basic building blocks of consciousness
 
Answer & Explanation Answer: A) the overall patterns of perceptions and thoughts

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2445