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

What carries Blood back to the Heart?

A) Veins B) Arteries
C) Both A & B D) None
 
Answer & Explanation Answer: A) Veins

Explanation:

Veins carries Blood back from the body parts to the Heart.

 

We know that The circulatory system of our body is a loop. The Heart is the pump, the arteries and their smaller branches (arterioles) carry oxygen rich blood all through your body and the veins and their smaller branches (venules) carry oxygen depleted blood and waste products back.

Report Error

View Answer Report Error Discuss

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

3 2353
Q:

Sugar is a component of which of the following?

A) Lipids B) Nucleic acids
C) Carbohydrates D) Both B & C
 
Answer & Explanation Answer: C) Carbohydrates

Explanation:

Sugar is a component of Carbohydrates.

Report Error

View Answer Report Error Discuss

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

4 2353
Q:

Tertali is a folk dance of _____.

A) Chhattisgarh B) Madhya Pradesh
C) Manipur D) Karnataka
 
Answer & Explanation Answer: B) Madhya Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture
Exam Prep: Bank Exams

5 2353
Q:

Relationships among people are

A) not influenced by people's ideas and attitudes. B) something that must be maintained to stay healthy and strong.
C) one of two types—social or working. D) usually simple and easy to understand.
 
Answer & Explanation Answer: B) something that must be maintained to stay healthy and strong.

Explanation:

Relationships among people are to be maintained in such a way that the people must stay healthy and to become strong enough.

Report Error

View Answer Report Error Discuss

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

2 2353
Q:

Who has been appointed as an Executive Director in the World Bank in the US ?

A) S Aparna B) Ashok Lavasha
C) Rahul Verma D) S C Garg
 
Answer & Explanation Answer: A) S Aparna

Explanation:
Report Error

View Answer Report Error Discuss

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

5 2351
Q:

Which subatomic particle has no charge?

A) electron B) neutron
C) proton D) All of the above
 
Answer & Explanation Answer: B) neutron

Explanation:

An atom is composed of three subatomic particles. They are ::

 

1) Electron (-vely charged particle)

2) Proton (+vely charged particle)

3) Neutron (No charge particle)

 

Hence, Neutron is the subatomic particle which has no charge.

Report Error

View Answer Report Error Discuss

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

2 2351
Q:

Someone who loans money is called

A) Lender B) Borrower
C) Investee D) Investor
 
Answer & Explanation Answer: A) Lender

Explanation:

Someone who receives money in exchange for a promise to pay it back later is called a borrower1, and the person making the loan is the lender.

Report Error

View Answer Report Error Discuss

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

1 2351