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

Metastasis is the process by which _________

A) Cell divide rapidly under the influence of drugs B) Cancer cell spread through the blood or lymphatic system to other site or organs
C) The Chromosome in cell nuclei are attached to the soindle before moving to the anaphase poles D) Cancer cells are successfully inhibited to divide any further
 
Answer & Explanation Answer: B) Cancer cell spread through the blood or lymphatic system to other site or organs

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

4 2397
Q:

Nucleotides are attached by bonds between the

A) phosphates and sugars B) nitrates and sugars
C) nitrates and phosphates D) sugars and hydrates
 
Answer & Explanation Answer: A) phosphates and sugars

Explanation:

In DNA, adjacent nucleotides are linked by a phosphodiester bond: a covalent bond is formed between the 5' phosphate group of one nucleotide and the 3'-OH group of another.

 

Hence, in this manner, each strand of DNA has a "backbone" of phosphate-sugar-phosphate-sugar-phosphate.

Report Error

View Answer Report Error Discuss

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

1 2397
Q:

What literary period is the beat generation aligned with?

A) Postmodernism B) Naturalism
C) Modernism D) Realism
 
Answer & Explanation Answer: A) Postmodernism

Explanation:

Postmodernism is the literary period, the beat generation aligned with. Postmodernism refers to mid to late 20th century.

Report Error

View Answer Report Error Discuss

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

7 2396
Q:

What is the difference between microprocessor and micro-controller?

Answer

In microprocessor more op-codes, few bit handling instrucitons. But in Microcontroller. fewer op-codes, more bit handling Instruction, and also it is defined as a device that includes micro processor, memory, & input / output signal lines on a single chip.


the basic architectual difference is that microcontroller has an programmable memory while it is not the case with mivroprocessors.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2396
Q:

What valley is the site of the Earth's highest-ever recorded temperature, 134°F?

Answer

Death Valley

Report Error

View answer Workspace Report Error Discuss

Subject: World Geography

2 2395
Q:

Which is the following is not an effect of volcanoes

A) Africa B) Australia
C) North America D) South America
 
Answer & Explanation Answer: B) Australia

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

0 2394
Q:

Which of the following industries most closely approximates pure competition?

A) Steel B) Clothing
C) Eectronic D) Agriculture
 
Answer & Explanation Answer: D) Agriculture

Explanation:

Agriculture would be a good example of a purely competitive industry.

Report Error

View Answer Report Error Discuss

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

4 2394