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

In which city Indian Railways has installed Asia’s largest Solid State Interlocking (SSI) system?

A) Kolkata B) Lucknow
C) Hyderabad D) Kharagpur
 
Answer & Explanation Answer: D) Kharagpur

Explanation:
Report Error

View Answer Report Error Discuss

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

7 2598
Q:

What Is EBIDTA?

Answer

EBITDA stands for earnings before interest, taxes, depreciation, and amortization. EBITDA came into wide use among private capital firms, wanting to calculate what they should pay for a business.

Report Error

View answer Workspace Report Error Discuss

Subject: Finance

0 2597
Q:

How many periods in National Hockey League?

A) 2 B) 3
C) 4 D) 5
 
Answer & Explanation Answer: B) 3

Explanation:

National Hockey League game is divide into 3 Periods each of 20 minutes. During the regular season, if the game ends in a tie, a 5 minute, sudden death overtime is played. In the playoffs, the overtime is 20 minutes long.

Report Error

View Answer Report Error Discuss

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

12 2597
Q:

The act of formally approving something is known as Arbitration.

A) TRUE B) FALSE
Answer & Explanation Answer: B) FALSE

Explanation:

The act of formally approving something is known as Ratification.

Report Error

View Answer Workspace Report Error Discuss

2 2596
Q:

Where does hair not grow on the human body?

A) sole of feet B) palms
C) lips D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Hair grows everywhere on the skin except palms, sole of feet and lips on the human body. Hair is modified type of skin.

where_does_hair_not_grow_on_the_human_body1544865865.jpg image

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

Which the smallest among all the birds?

A) Ostrich B) Humming Bird
C) King Fisher D) Sparrow
 
Answer & Explanation Answer: B) Humming Bird

Explanation:

humming Bird is the smallest among all the birds

Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

1 2595
Q:

Which of the following vitamins are water soluble?

A) Vitamins B & C B) Vitamins K, D & C
C) Vitamins A, D & K D) Vitamins A, K, B, C & D
 
Answer & Explanation Answer: A) Vitamins B & C

Explanation:

Vitamins are essential nutrients found in foods. They perform specific and vital functions in a variety of body systems, and are crucial for maintaining optimal health.

 

The two different types of vitamins are fat-soluble vitamins and water-soluble vitamins.

 

Fat-soluble vitamins :

 Vitamins A, D, E and K — dissolve in fat before they are absorbed in the bloodstream to carry out their functions. Excesses of these vitamins are stored in the liver, and are not needed every day in the diet.

 

Water-soluble vitamins :

Vitamins dissolve in water and are not stored by the body. Since they are eliminated in urine, we require a continuous daily supply in our diet. The water-soluble vitamins include the vitamin B-complex group and vitamin C.

 

Water-soluble vitamins are easily destroyed or washed out during food storage or preparation.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration

0 2595