Questions

Q:

Write a c program for insertion sort.

Answer

#include<stdio.h>
int main(){

  int i,j,s,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=1;i<s;i++){
      temp=a[i];
      j=i-1;
      while((temp<a[j])&&(j>=0)){
      a[j+1]=a[j];
          j=j-1;
      }
      a[j+1]=temp;
  }

  printf("After sorting: ");
  for(i=0;i<s;i++)
      printf(" %d",a[i]);

  return 0;
}

Output:
Enter total elements: 5
Enter 5 elements: 3 7 9 0 2
After sorting:  0 2 3 7 9

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2831
Q:

The functional unit of the nervous system is the

A) Nephrons B) Axons
C) Neurons D) All of the above
 
Answer & Explanation Answer: C) Neurons

Explanation:

Neurons are the functional units of the nervous system in the body.

the_functional_unit_of_the_nervous_system_is_the1535026518.png image

Report Error

View Answer Report Error Discuss

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

3 2831
Q:

What does submissive mean in a relationship?

Answer

Being submissive to somebody is to acknowledge somebody to be in a greater authority than you are.


Submissive mean in a relationship is you obey that person without complaining or arguing about it.


 


In short, a submissive is a person who enjoys giving control of themselves to their life partners.

Report Error

View answer Workspace Report Error Discuss

0 2830
Q:

The act of formally approving something is known as

A) Ratification B) Delegation
C) Arbitration D) Representation
 
Answer & Explanation Answer: A) Ratification

Explanation:

The act of formally approving something is known as Ratification.

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 , Database Administration , IT Trainer

1 2830
Q:

What is the main component of biogas and natural gas?

A) Carbon dioxide B) Butane
C) Hydrogen Sulphide D) Methane
 
Answer & Explanation Answer: D) Methane

Explanation:

Methane is the main component of biogas and natural gas.

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

5 2830
Q:

The decadal growth in the population of India during 1991-2001 is close to 

A) 13% B) 17%
C) 21% D) 25%
 
Answer & Explanation Answer: C) 21%

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

1 2830
Q:

The concept of carbon credit originated from

A) G-8 Summit, Hciligendamm B) Earth Summit, Rio de Janeiro
C) Montreal Protocol D) Kyoto Protocol
 
Answer & Explanation Answer: D) Kyoto Protocol

Explanation:

The concept of carbon credit for manufacturers originated with the Kyoto Agreement (Protocol) of 1997.

Report Error

View Answer Report Error Discuss

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

7 2829
Q:

Which structure is not part of the Endomembrane System?

A) Chloroplast B) Plasma membrane
C) Nuclear envelope D) Golgi apparatus
 
Answer & Explanation Answer: A) Chloroplast

Explanation:

The endomembrane system is composed of the different membranes that are suspended in the cytoplasm within a eukaryotic cell. These membranes divide the cell into functional and structural compartments or organelles. In eukaryotes, the organelles of the endomembrane system include the nuclear membrane, the endoplasmic reticulum, the Golgi apparatus, lysosomes, vesicles, endosomes and the cell membrane, among others.

Report Error

View Answer Report Error Discuss

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

2 2828