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

What is the study of flags called

A) Vexillology B) Vexillography
C) Vexology D) None of the above
 
Answer & Explanation Answer: A) Vexillology

Explanation:

The study of flags is called Vexillology and the art of flag design is called as Vexillography. The man who studies flags is called as Vexillologist.

Report Error

View Answer Report Error Discuss

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

3 2399
Q:

Elastomers can extend upto

A) ten times their original dimensions B) seven times their original dimensions
C) five times their original dimensions D) three times their original dimensions
 
Answer & Explanation Answer: B) seven times their original dimensions

Explanation:

An elastomer is a polymer with viscoelasticity which have low youngs modulus with weak intermolecular forces when compared with other materials.

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

3 2399
Q:

Capital of Belarus -

A) Praia B) Minsk
C) Cairo D) Vienna
 
Answer & Explanation Answer: B) Minsk

Explanation:

Belarus is a European country whose capital city is Minsk.

Report Error

View Answer Report Error Discuss

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

10 2398
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 2398
Q:

which statement is true of the classical orchestra?

A) uses violin B) uses flute
C) uses clarinet D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

The classical orchestra uses violin, flute, clarinet, cello, piccolo, Bass,...

Report Error

View Answer Report Error Discuss

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

17 2398
Q:

Missing letters puzzle

Answer

Answer:  4


Explanation:   Splitting the diagram in half horizontally and vertically, each quarter contains the alphabet written in sequence, with the relative position of this sequence rotating 1/4 turn anti-clockwise as you move clockwise around the quarters.

Report Error

View answer Workspace Report Error Discuss

3 2397
Q:

Standing on your toes as in ballet, is an example of

A) plantar extension B) plantar flexion
C) adduction D) dorsiflexion
 
Answer & Explanation Answer: B) plantar flexion

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

1 2397